Deriving the sum of sin and cos formula

Click For Summary
SUMMARY

The discussion focuses on deriving the formula \( a \sin x + b \cos x = c \sin (x + \theta) \), where \( c = \sqrt{a^2 + b^2} \) and \( \theta = \arctan\left(\frac{b}{a}\right) \). Participants confirm that \( c \) must be positive, as it represents the hypotenuse in a right triangle formed by \( a \) and \( b \). The importance of preserving the signs of \( a \) and \( b \) when calculating \( \theta \) is emphasized, as it affects the quadrant in which \( \theta \) lies. The discussion concludes that the negative root for \( c \) is not valid in this context.

PREREQUISITES
  • Understanding of trigonometric identities and functions
  • Familiarity with polar coordinates and their geometric interpretations
  • Knowledge of the arctangent function and its properties
  • Basic algebraic manipulation skills
NEXT STEPS
  • Study the derivation of trigonometric identities in polar coordinates
  • Explore the properties of the arctangent function and its applications
  • Learn about the geometric interpretation of sine and cosine in right triangles
  • Investigate the implications of sign preservation in trigonometric calculations
USEFUL FOR

Students studying trigonometry, mathematicians interested in trigonometric identities, and educators teaching the derivation of formulas involving sine and cosine functions.

Mr Davis 97
Messages
1,461
Reaction score
44

Homework Statement


Show that ##a \sin x + b\cos x = c \sin (x + \theta)##, where ##c = \sqrt{a^2 + b^2}## and ## \displaystyle \theta = \arctan (\frac{b}{a})##

Homework Equations

The Attempt at a Solution


We see that ##c \sin (x + \theta) = c \cos \theta (\sin x) + x \sin \theta (\cos x)##. So we compare coefficients. ##a = c \cos \theta## and ##b = c sin \theta##. We can assume that neither ##a## or ##b## are zero, so we find by division that ##c = \sqrt{a^2 + b^2}##. Next, we see that ##a^2 + b^ = c^2 \cos^2 \theta + c^2 \sin^2 \theta = c^2##, so ##c = \pm \sqrt{a^2+b^2}##. So it seems that I am done, since the we can take the positive root. However, what about the negative root? Would that give a valid answer too? Why isn't the negative root the one that is desired by the question?
 
Physics news on Phys.org
Mr Davis 97 said:
So we compare coefficients. a=ccosθa=ccos⁡θa = c \cos \theta and b=csinθb=csinθb = c sin \theta. We can assume that neither aaa or bbb are zero, so we find by division that c=√a2+b2c=a2+b2c = \sqrt{a^2 + b^2}.

I think you mean "so we find by division that ##\theta = \arctan(b/a)##.

I can think of two ways why ##c >0 ##

First because the term on LHS is the equation of a straight line in polar coordinates and ##c## corresponds to ##r## in polar. Since ##r## is always +ve and thus so is ##c##.

Second, for given ##a,b > 0## you can always construct a right triangle with ##h = \sqrt{a^2 + b^2}##. (h is hypotenuse).

So we can write ##a\sin x + b\cos x = \sqrt{a^2 + b^2}\left({a\over \sqrt{a^2 + b^2}}\sin x + {b\over \sqrt{a^2 + b^2}}\cos x\right)##

Lets angle between ##h## and ##a## as ##\theta##, So we get ##\cos \theta = {a\over \sqrt{a^2 + b^2}}, \ \ \ \sin \theta = {b\over \sqrt{a^2 + b^2}}## and ##\tan \theta = {b \over a}##

From here we can get,##\theta = \arctan(b/a)##,

And ##\sqrt{a^2 + b^2}\left({a\over \sqrt{a^2 + b^2}}\sin x + {b\over \sqrt{a^2 + b^2}}\cos x\right) = \sqrt{a^2 + b^2}\left(\cos \theta\sin x + \sin \theta\cos x\right) = \sqrt{a^2 + b^2}\sin (\theta + x)##

From here you can see ## c = h = \sqrt{a^2 + b^2}##, and hypotenuses are not negative, Do they ?
 
In the determination of the angle ## \theta ##, ## a ## and ## b ## need to retain their sign, and you draw a diagram to find ## \theta ##. If both ## a ## a ## b ## are negative, then ## \theta ## winds up in the third quadrant, instead of the first. There is ambiguity in the expression ## arctan(\frac{b}{a}) ## if you don't preserve the signs of ## b ## and ## a ##. It is important to preserve the signs of ## b ## and ## a ## in this calculation. The ## \theta ## you compute will be different for ## a=1 ## and ## b=1 ## as compared to ## a=-1 ## and ## b=-1 ##. To preserve the signs, you need to use the positive root for ## c ##.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
3K
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
56
Views
6K