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

I have two expression like,

 

exp1:=A1*x*(k-p*x)+A2*x+A3*p+A4

exp2:=A5*x*(k-p*x)

 

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

 

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

 

exp3:=exp1/exp2

 

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...