Question: Question about 'Subs'

Dear everyone.
I'm trying to substitute expressions which are represented by square root into eq.
But, it doesn't work well as shown in the below figure.

First, the 'a' is only substituted into numerator. I'd like to know how 'a' can be also substituted into denominator.
Second, the 'b' can be substituted as I ordered to Maple.

Advice would be appreciated . Thank you !  (If you need my maple code, this will be referred in the below.)

maple code :

eq:=-sqrt(tau[a]^2*wn^2+1)*cos(wn*t[2]+arctan(1/(wn*tau[b])))*tau[b]^2*wn/(tau[b]^2*wn^2+1)^(3/2)+cos(wn*t[2]+arctan(1/(wn*tau[b])))*tau[a]^2*wn/(sqrt(tau[b]^2*wn^2+1)*sqrt(tau[a]^2*wn^2+1));

subs(sqrt(tau[a]^2*wn^2+1)=a, sqrt(tau[b]^2*wn^2+1)=b, eq);

 

Please Wait...