Consider the trigonometric function
f ( x ) = a cos x + b sin x + c cos 2 x + d sin 2 x + e
where a , b , c , d , e ∈ R , are given. We want to find the roots of f ( x ) over the interval [ 0 , 2 π ) .
As it turns out, the problem boils down to finding the roots of a quartic polynomial whose coefficients are directly related in a simple manner to the given constants a , b , c , d and e .
Using the transformation z = tan 2 x , re-write f ( x ) as a rational function of z . Simplify, and find the corresponding roots x .
As an explicit example for this problem, take a = 2 , b = − 1 , c = 2 , d = 1 , e = − 1 . Find the sum of all real roots x of the trigonometric function f ( x ) in the interval [ 0 , 2 π ) . You will need to find roots of a quartic polynomial, which you can obtain using Wolframalpha.com , or by straight evaluation using the quartic roots formulas.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
If x i < 0 , we'll just add 2 π to it... Why not to add π also, if x i > − π ?
Log in to reply
Adding π changes the signs of cos x and of sin x , but not of cos 2 x or sin 2 x ; so (in general), if f ( x ) = 0 it doesn't follow that f ( x + π ) = 0 .
Problem Loading...
Note Loading...
Set Loading...
Given,
a cos x + b sin x + c cos 2 x + d sin 2 x + e = 0
Letting z = tan 2 x , and for simplicity, we'll assume that x ∈ ( − π , π ) so that, 2 x ∈ ( − 2 π , 2 π ) , then,
cos x = cos ( 2 2 x ) = 2 cos 2 2 x − 1 = 1 + z 2 2 − 1 = 1 + z 2 1 − z 2
Moving on to sin x , we have that, sin 2 x = 1 − cos 2 x = 1 − ( 1 + z 2 ) 2 ( 1 − z 2 ) 2 = ( 1 + z 2 ) 2 4 z 2
So that,
sin x = 1 + z 2 2 z
(Note from our definition of the range of x , we have that sin x and z have the same sign).
Next,
cos 2 x = 2 cos 2 x − 1 = 2 ( 1 + z 2 ) 2 ( 1 − z 2 ) 2 − 1 = ( 1 + z 2 ) 2 1 − 6 z 2 + z 4
And, finally,
sin 2 x = 2 sin x cos x = ( 1 + z 2 ) 2 4 z ( 1 − z 2 )
Using the above four expressions, our equation becomes, after multiplying through by ( 1 + z 2 ) 2
a ( 1 − z 2 ) ( 1 + z 2 ) + b ( 2 z ) ( 1 + z 2 ) + c ( 1 − 6 z 2 + z 4 ) + d ( 4 z ( 1 − z 2 ) ) + e ( 1 + z 2 ) 2 = 0
Simplifying,
a ( 1 − z 4 ) + b ( 2 z + 2 z 3 ) + c ( 1 − 6 z 2 + z 4 ) + d ( 4 z − 4 z 3 ) + e ( 1 + 2 z 2 + z 4 ) = 0
And finally, we have our quartic polynomial in z ,
z 4 ( − a + c + e ) + z 3 ( 2 b − 4 d ) + z 2 ( − 6 c + 2 e ) + z ( 2 b + 4 d ) + ( a + c + e ) = 0
Plugging in the given values of a , b , c , d , e , we find the real roots of this polynomial. For the given values, there are four real roots z i , i = 1 , 2 , 3 , 4 , and for each of these four values, the corresponding value of the root x i is given by x i = 2 tan − 1 z i . Now, since the required interval for the roots is [ 0 , 2 π ) , then if x i < 0 , we'll just add 2 π to it to make it lie in [ 0 , 2 π ) .
Finally, we obtain, i = 1 ∑ 4 x i ≈ 1 3 . 4 9 3 6
One thing to watch out for is the case when x = π is a root of the equation, this can only happen if − a + c + e = 0 , but ( − a + c + e ) is the coefficient of z 4 in the above quartic polynomial, so if this coefficient is zero, then we have to add x = π to the real roots obtained from the resulting cubic polynomial.