Question: simplify an expression with exp(ix) and exp(-ix)

How do I force maple to simplify an expression containing exp(ix) and exp(-ix) to an expression contating sin(x) and cos(x) (if possible). Example: I want maple to recognize a*exp(I*x)+a*exp(-I*x) as 2*a*cos(x) or (slightly more complicated) to recognize -I*(1-exp(-2*I*x))/(1+exp(-2*I*x)) as sin(x)/cos(x) or tan(x)
Please Wait...