Question: How can i get a variable time an expression?student

My question is very easy I have a^2+b^2*a+b+1 and I want b^2*((a^2)/(b^2)+1/b^2+a)  how could I ask this to maple?

In particular my expression is n^2*Pi^2-4*q1^2*a^2-4*q2^2*a^2+2*n^2*Pi^2*beta*q1^2+2*n^2*Pi^2*beta*q2^2

n^2*Pi^2-4*q1^2*a^2-4*q2^2*a^2+2*n^2*Pi^2*beta*q1^2+2*n^2*Pi^2*beta*q2^2and I want n^2*Pi^2( ...). My problem is also that I don't know what is the name of this operation neither in english.

I tried ,let's call it nq :

  • TmpQ := subs(Tmp = n^2*Pi^2, collect(algsubs(n^2*Pi^2 = Tmp, rq), Tmp))

But I don't get what I want.

 

any suggestion?

Thank You!!

Please Wait...