Question: I need to extract what I need after a division

I have two expression like,





where A1, A2, A3, A4 and A5 are some lengthy expressions.


I need to find the division of these two, namely exp3




in the form


exp3:=(A1/A5)+the rest


In other words, I need to extract the part which could be normalized by x*(k-p*x).

I tried using algsubs command to change all x*(k-p*x)'s with a name but the Maple could'nt find the all x*(k-p*x)'s, some of them are still there like x*b1*(k-p*x), where b1 is an expression.


Is there another way?

Please Wait...