Finding the roots of a class of trignometric equations

Algebra Level 5

Consider the trigonometric function

f ( x ) = a cos x + b sin x + c cos 2 x + d sin 2 x + e f(x) = a \cos x + b \sin x + c \cos 2 x + d \sin 2 x + e

where a , b , c , d , e R a, b, c, d, e \in \mathbb{R} , are given. We want to find the roots of f ( x ) f(x) over the interval [ 0 , 2 π ) [0, 2\pi ) .

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 a, b, c, d and e e .

Using the transformation z = tan x 2 \boxed{ z = \tan \dfrac{x}{2} \hspace{6pt} } , re-write f ( x ) f(x) as a rational function of z z . Simplify, and find the corresponding roots x x .

As an explicit example for this problem, take a = 2 , b = 1 , c = 2 , d = 1 , e = 1 a = \sqrt{2} , b = -1, c = 2, d = 1, e = -1 . Find the sum of all real roots x x of the trigonometric function f ( x ) f(x) in the interval [ 0 , 2 π ) [0, 2 \pi ) . 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.


The answer is 13.4936.

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.

1 solution

Hosam Hajjir
Oct 8, 2019

Given,

a cos x + b sin x + c cos 2 x + d sin 2 x + e = 0 a \cos x + b \sin x + c \cos 2 x + d \sin 2 x + e = 0

Letting z = tan x 2 z = \tan \dfrac{x}{2} , and for simplicity, we'll assume that x ( π , π ) x \in (-\pi , \pi ) so that, x 2 ( π 2 , π 2 ) \dfrac{x}{2} \in (-\dfrac{\pi}{2}, \dfrac{\pi}{2} ) , then,

cos x = cos ( 2 x 2 ) = 2 cos 2 x 2 1 = 2 1 + z 2 1 = 1 z 2 1 + z 2 \cos x = \cos (2 \dfrac{x}{2} ) = 2 \cos^2 \dfrac{x}{2} - 1 = \dfrac{2}{1 + z^2} - 1 = \dfrac{1 - z^2}{1 + z^2}

Moving on to sin x \sin x , we have that, sin 2 x = 1 cos 2 x = 1 ( 1 z 2 ) 2 ( 1 + z 2 ) 2 = 4 z 2 ( 1 + z 2 ) 2 \sin^2 x = 1 - \cos^2 x = 1 - \dfrac{(1 - z^2)^2}{ (1 + z^2)^2} = \dfrac{4 z^2}{(1 + z^2)^2}

So that,

sin x = 2 z 1 + z 2 \sin x = \dfrac{2 z}{ 1 + z^2 }

(Note from our definition of the range of x x , we have that sin x \sin x and z 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 6 z 2 + z 4 ( 1 + z 2 ) 2 \cos 2 x= 2 \cos^2 x - 1 = 2\dfrac{ (1-z^2)^2 }{(1+z^2)^2} - 1 = \dfrac{ 1 - 6 z^2 + z^4 } { (1 + z^2)^2 }

And, finally,

sin 2 x = 2 sin x cos x = 4 z ( 1 z 2 ) ( 1 + z 2 ) 2 \sin 2 x = 2 \sin x \cos x = \dfrac{ 4 z (1 - z^2) }{ (1 + z^2)^2 }

Using the above four expressions, our equation becomes, after multiplying through by ( 1 + z 2 ) 2 (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 a (1 - z^2)(1+z^2) + b (2z)(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 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 ,

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 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 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 z_i, \hspace{6pt} i = 1, 2, 3, 4 , and for each of these four values, the corresponding value of the root x i x_i is given by x i = 2 tan 1 z i x_i = 2 \tan^{-1} z_i . Now, since the required interval for the roots is [ 0 , 2 π ) [0, 2 \pi ) , then if x i < 0 x_i \lt 0 , we'll just add 2 π 2 \pi to it to make it lie in [ 0 , 2 π ) [0, 2 \pi) .

Finally, we obtain, i = 1 4 x i 13.4936 \displaystyle \sum_{i=1}^4 x_i \approx 13.4936

One thing to watch out for is the case when x = π x = \pi is a root of the equation, this can only happen if a + c + e = 0 -a + c + e = 0 , but ( a + c + e ) (-a + c + e) is the coefficient of z 4 z^4 in the above quartic polynomial, so if this coefficient is zero, then we have to add x = π x = \pi to the real roots obtained from the resulting cubic polynomial.

If x i < 0 x_i<0 , we'll just add 2 π to it... Why not to add π π also, if x i > π x_i>-π ?

A Former Brilliant Member - 1 year, 8 months ago

Log in to reply

Adding π \pi changes the signs of cos x \cos x and of sin x \sin x , but not of cos 2 x \cos 2x or sin 2 x \sin 2x ; so (in general), if f ( x ) = 0 f(x)=0 it doesn't follow that f ( x + π ) = 0 f(x+\pi)=0 .

Chris Lewis - 1 year, 8 months ago

Log in to reply

Yes. Got it.

A Former Brilliant Member - 1 year, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...