Appendix
A-7: Trigonometry
Example A-7.1
Use Maple to find the identities for sinx+y and cosx−y and check the results.
Solution
Maple Solution - Interactive
The Context Panel options Expand and Combine≻trig give the following solution.
sinx+y= expand sin⁡x⁢cos⁡y+cos⁡x⁢sin⁡y= combine sin⁡x+y
cosx−y= expand cos⁡x⁢cos⁡y+sin⁡x⁢sin⁡y= combine cos⁡x−y
Maple Solution - Coded
sinx+y
Apply the expand and combine commands.
expandsinx+y
sin⁡x⁢cos⁡y+cos⁡x⁢sin⁡y
combine
sin⁡x+y
cosx−y
expandcosx−y
cos⁡x⁢cos⁡y+sin⁡x⁢sin⁡y
combinecosx−y
cos⁡x−y
Maple also knows the Pythagorean identities and the multiple-angle formulas, which are available through the Context Panel options Simplify, Expand, and Combine, or the simplify, expand, and combine commands. Maple uses cosx as much as possible, as for example, in
sin4 x cos3 x= simplify trig 4⁢sin⁡x⁢cos⁡x2⁢8⁢cos⁡x4−10⁢cos⁡x2+3→assign to a nameq
Use the simplify command with the indicated syntax to force the use of sinx.
simplifyq,sin⁡x2+cos⁡x2−1,cosx
<< Previous Section of Appendix 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