System Of Trigonometric Equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 4K views
nradam
Messages
9
Reaction score
0
Code:
a*sin(x)=b*sin(th)+c*sin(y)
d+a*cos(x)=b*cos(th)+c*cos(y)

Find x and y if all others are constants. I don't get how to solve this system of trigonometric equations in matlab. Please help me out friends.

Thanks in advance.
 
Physics news on Phys.org
Put the sin x and cos x terms on one side and the rest on the other side.
Square both equations and add them.

You get something like

a^2 + c^2 + 2ac cos(x-y) = b^2 + d^2 - 2bd cos th

Solve that for x-y, which gives you y = x + k for some value of k.

Then you can turn the original equations into simultaneous equations in cos x and sin x