You can put this solution on YOUR website! First we should keep in mind of where we are headed. We want an expression of the form:
It can be very help to keep your goal in mind. In fact we sometimes want to try to work backwards from the end toward the beginning.
So the next to last equation will look like:
What we have is
y = 12*sin(x) + 5*cos(x)
To get to
we will need to factor out some number, A, and have the 12 and 5 turn into the cos and sin on some angle called .
So what is this "magic" number that we can factor out that will 12 and 5 will turn into a cos and sin respectively. To figure this out it may help to draw a diagram. Draw a right triangle. Chose one of the acute angles to be . Make the side adjacent to a 12 and the side opposite to a 5. Use the Pythagorean Theorem to find the hypotenuse. You should find that the hypotenuse is 13. 13 is our magic number! Let's factor out a 13 from the right side of
y = 12*sin(x) + 5*cos(x)
and see how this works:
Take a moment to let this sink in. You are probably not used to factoring out a 13 from a 12 or a 5. As it turns out any number (except zero) can be factored out of any other number. To understand this better, think about using the Distributive Property to multiply this back out. Won't the 13's all cancel out?
And are 12/13 and 5/13 the cos and sin of some angle? Look back at the triangle you drew. The answer should clearly be yes. The only difficulty is: How do we express this angle. 12/13 and 5/13 are not special angle values. And since is not a special angle, any number we use to express will be just a decimal approximation. Instead of an approximation we could use inverse Trig functions to express . Either of the following could be used. (If you have trouble with these, look at the your triangle to help yourself understand.)
or
So here's the solution, from start to finish without much of the commentary from above:
y = 12*sin(x) + 5*cos(x)
Find and factor out the "magic" number, 13:
Replace the 12/13 and the 5/13 as a cos and sin of :
Use the sin(p+q) formula with "p" being "x" and "q" being