Question: about 'factor' during simplifying

Dear all,

The results I get from calcultion are usually not in compact forms, so I want to do some simplifying work. And I come up with some questions.

If I write the following expression, the factor command works:
> beta[c]^3/exp(I*omega[c]*tau)-beta[c]^2/(exp(I*omega[c]*tau))^2-2*beta[c]^2+2*beta[c]/exp(I*omega[c]*tau)+beta[c]*exp(I*omega[c]*tau)-1;
> factor(%);
   
However,when I write the above expressoin as following,  factor doesn't work
> -1+beta[c]*exp(I*omega[c]*tau)+2*exp(-I*omega[c]*tau)*beta[c]-2*beta[c]^2-beta[c]^2*exp(-(2*I)*omega[c]*tau)+beta[c]^3*exp(-I*omega[c]*tau);
> factor(%);
Question : Is there any way to solve these kind of problem when I want to simplify the expression?

> 2+2*x;
                            2 + 2 x
Question : How can I simplify the above expression in the form of  2(1+x)
 

Thank you very much!

Belief111

 

Please Wait...