HP Forums

Full Version: Trig functions in CAS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Working with some trigonometric expressions, I want to rewrite sin(6x) to sin(3x+3x)=2*cos(3x)*sin(3x)
How can I do that with the Prime ?
You probably just have to play around the CAS commands. I don't think there is a built in function that breaks down sin(6x) to sin(3x + 3x).

The trigexpand command will expand such expressions as cos(nx) and sin(nx) into a polynomial. Using tcollect I was able to go the other way:

tcollect(2*sin(3x)*cos(3x)) -> sin(6x)

trigexpand(sin(6x)) -> (32*cos^5 x - 32*cos^3 + 6*cos x)*sin x
Reference URL's