Question: Factorization of expression

Hello people in Mapleprimes,

I want to factor

g^((2*(-sigma+k+1))/(-1+sigma))-tau^2

as

(g^((-sigma+k+1)/(-1+sigma)) -tau)*(g^((-sigma+k+1)/(-1+sigma))+tau);

 

I know that the following code works:

subs(g^((2*(-sigma+k+1))/(-1+sigma))=(g^((-sigma+k+1)/(-1+sigma)))^2,g^((2*(-sigma+k+1))/(-1+sigma))-tau^2);

factor(%);

 

Isn't there another better way than this?

I will be very glad if you teach me about this.

Thanks in advance.

taro

Please Wait...