I have an expression

    expr=Derivative[1][A][\[Zeta]] + Derivative[2][A][\[Zeta]] + 
 Derivative[3][A][\[Zeta]] + Derivative[4][A][\[Zeta]]

I want to replace with the following:

enter image description here

where n>=2


1 Answer 1



expr /. {
Derivative[i_ /; i>=2&&EvenQ[i]][A][\[Zeta]] -> P [\[Zeta]], 
Derivative[i_ /; i>=2&&OddQ[i]][A][\[Zeta]] -> P' [\[Zeta]]}

$A'(\zeta )+P'(\zeta )+2 P(\zeta )$


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.