Question: expand product of sum and difference of two terms

Hi, friends:

 

Having an expression like this:

ee:=(c^2+a^2-b^2)*(a^2-c^2)^3*(a^2+c^2)^3;

 

What is the right way to get:

ee:=(c^2+a^2-b^2)*(a^4-c^4)^3 ?

 

I have tried:

ee:=applyrule((X::algebraic^k::integer + Y::algebraic^k::integer)^n::integer *
                     (X::algebraic^k::integer - Y::algebraic^k::integer)^n::integer = (X^(2*k)+Y(2*k))^n, ee) 

but ee is returned without changes. I have also tried with nonunit() but result is wrong.

Of course, k and n can also be algebraic instead of integers.

Thanks in advance.

Regards

C.L.

 

 

 

 

 

 

 

Please Wait...