modifying slash simplifying trigonometric expression

I have an expression on the form

Code:

`a*sin(w)`^{3} + b*sin(w)

-------------------- (1)

c*cos(w)^{3} + d*cos(w)

a,b,c,d are constants different from 0. It should be possible to put it on the form

Code:

`p*tan(w) - q*tan(w)^3 `

---------------------- (2)

1 - r*tan(w)^2

where p,q,r are constants. Can anyone see how this can be done (if possible)?

Br

niaren

Re: modifying slash simplifying trigonometric expression

I finally found out myself by working backwards from (2) to (1)!