I have the following function:
Q[r_, f_, s0_] := Q[r, f, s0] = F[r, s0] D[f[s0], s0]
By calling
Q[r, Q[r, f, s0], s0]
I obtain the following result:
F[r,s0] ((F[r,s0] f'[s0])'[s0]+(F[r,s0] f''[s0]+f'[s0] F^(0,1)[r,s0])[s0])
when the desired answer is
F[r,s0](F[r,s0] f''[s0]+f'[s0] F^(0,1)[r,s0])
Could you please help me to obtain the correct answer?
Thank you in advance for all your help!