Appendix
A-7: Trigonometry
Example A-7.5
For the equation 4 sinx+7 cosx=8, find all solutions in the interval 0,2 π.
Solution
Mathematical Solution
Figure A-7.5(a), a graph of fx=4 sinx+7 cosx−8, suggests that in the interval 0,2 π, the given equation has two solutions, both of which appear to be in the first quadrant.
Two different functions appear in the equation, but before the trig identity sin2x=1−cos2x can be used to convert the equation to one quadratic in cosx, the sine and cosine terms must appear on different sides of the equation, both sides of which must then be squared.
However, this last step can, and does, introduce extraneous roots!
Figure A-7.5(a) Graph of 4 sinx+7 cosx−8
Isolate sinx to obtain sin⁡x=−74⁢cos⁡x+2, then square both sides to obtain sin⁡x2=−74⁢cos⁡x+22. Replace sin2x with 1−cos2x and simplify, to obtain 6516⁢cos⁡x2−7⁢cosx+3=0.
The transformed equation factors to 116⁢5⁢cos⁡x−4⁢13⁢cos⁡x−12=0.
By the Zero Principle, either or both factors must themselves be zero, so the following two equations must be solved.
5 cosx−4=0 and 13 cosx−112=0
The solutions of the first are x=arccos4/5≐0.644 and x=2 π−arccos4/5≐5.640, the second of which is extraneous.
The solutions of the second are x=arccos12/13≐0.395 and x=2 π−arccos12/13≐5.888, the second of which is extraneous.
Interactive Solution
Solution by Context Panel
Tools≻Load Package: Student Calculus 1
Loading Student:-Calculus1
Control-drag the equation and press the Enter key.
Context Panel: Student Calculus 1≻Solve≻Find Roots Enter bounds as per Figure A-7.5(b)
Context Panel: Approximate≻5 (digits)
Figure A-7.5(b) Bounds for roots
4 sinx+7 cosx=8
4⁢sin⁡x+7⁢cos⁡x=8
→roots
arctan⁡512,arctan⁡34
→at 5 digits
0.39479,0.64350
Solution from first principles
Control-drag the equation; press the Enter key.
Context Panel: Solve≻Isolate Expression for≻sinx
Context Panel: Manipulate Equation Square both sides. Press Return Steps button.
Expression palette: Evaluation template Evaluate at sin2x=1−cos2x Press the Enter key.
Context Panel: Move to Left
Context Panel: Left-hand Side
Context Panel: Factor
→isolate for sin(x)
sin⁡x=−74⁢cos⁡x+2
→manipulate equation
sin⁡x2=−74⁢cos⁡x+22
x=a|f(x)sin2x=1−cos2x
1−cos⁡x2=−74⁢cos⁡x+22
→move to left
1−cos⁡x2−−74⁢cos⁡x+22=0
→left hand side
1−cos⁡x2−−74⁢cos⁡x+22
= factor
−116⁢5⁢cos⁡x−4⁢13⁢cos⁡x−12
Control-drag the first factor; equate to zero. Press the Enter key.
Context Panel: Student Calculus1≻Solve≻Find Roots Enter bounds as per Figure A-7.5(b)
5⁢cosx−4=0
5⁢cos⁡x−4=0
arccos⁡45,2⁢π−arccos⁡45
0.64350,5.6397
Control-drag the second factor; equate to zero. Press the Enter key.
13⁢cosx−12=0
13⁢cos⁡x−12=0
arccos⁡1213,2⁢π−arccos⁡1213
0.39479,5.8884
The astute reader will have noticed that when Maple applies the Roots command directly to the original form of the equation, the solutions are returned in the form of the arctangent function. When the equation is transformed to a quadratic in cosx, the Roots command returns the solutions in terms of the arccosine function. That arctan5/12=arccos12/13, for example, is clear if a right triangle with legs 5 and 12, and hypotenuse 13 is drawn.
Coded Solution
Tools≻Load Package: Student Calculus 1 (Skip this step if package already loaded.)
Assign the equation to the name q__1.
q__1≔4 sinx+7 cosx=8:
Apply the Roots command with the appropriate bound on x.
q__2≔Rootsq__1,x=0..2 π
Apply the evalf command with 5 as the optional digits parameter.
evalfq__2,5
Apply the isolate command to isolate sinx.
q__3≔isolateq__1,sinx
Map the function x→x2 onto the equation to square both sides.
q__4≔mapx→x2,q__3
Use the lhs and rhs command to bring all terms to the left, and apply the simplify command, which favors cosx over sinx.
q__5≔simplifylhsq__4−rhsq__4
−6516⁢cos⁡x2+7⁢cos⁡x−3
Apply the factor command.
q__6≔factorq__5
Apply the Roots and evalf commands to each factor, extracting factors with the op command
q__7≔op2,q__6
5⁢cos⁡x−4
q__8≔Rootsq__7,x=0..2 π
evalfq__8,5
q__9≔op3,q__6
13⁢cos⁡x−12
q__10≔Rootsq__9,x=0..2 π
evalfq__10,5
<< Previous Example Section A-7 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document