Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

suppose I have an equations of the following with two unknowns $A$ and $\theta$


I have two points $(E,F) (G,H)$ how do I go about solving this equation analytically. I can solve this equation by using least squares where I just plugin a few numbers and solve it iteratively.

I was thinking about using trig identities and breaking it down to $A\sin(x)\cos(\theta)+Acos(x)\sin(\theta)=D$

But I am kind of stuck at that point. Using derivative to solve the equation doesn't help since the form of the equation is still $\cos(x+\theta)$

share|cite|improve this question
Does this answer your question? – Raskolnikov Sep 14 '12 at 18:00
The A term in my equation is still inside the arcsin function. I am not sure how to get it out of the arcsin function. – SamFisher83 Sep 14 '12 at 18:27
I'm sorry, I thought you wanted to solve for $x$. Where do you use $(E,F)$ and $(G,H)$ by the way? – Raskolnikov Sep 14 '12 at 18:33
Here would be the form of my two equations: Asin(E+θ)=F,Asin(G+θ)=H. I am trying to solve for A, θ – SamFisher83 Sep 14 '12 at 18:38
OK, now I understand your problem. Your idea of splitting the $\sin$ is a good one. Call $x=A\cos(\theta)$ and $y=A\sin(\theta)$. You then have two linear equations in $x$ and $y$. Solve these. Then, compute $x^2+y^2$ and $y/x$. Do you see how to work from there? – Raskolnikov Sep 14 '12 at 18:47

I give all credit to Raskolnikov

Given this equations: $A\sin(x+θ)=D$

and these two points: $(E,F),(G,H)$

So these are the set of equations: $A\sin(E+θ)=F, A\sin(G+θ)=H$

so first expand them: $A\sin(E)\cos(θ)+A\cos(E)\sin(θ)=F, A\sin(G)\cos(θ)+A\cos(G)\sin(θ)=H$

Then let $X=A\cos(θ), Y=A\sin(θ)$

so your equations are: $X\sin(E)+Y\cos(E)=F, X\sin(G)+Y\cos(G)=H$

now solve for $X$ and $Y$.

Now set: $A=X/\cos(θ)$

So that: $Y=X\sin(θ)/\cos(θ) = Y/X=\tan(θ)$

You solve for $\theta$,

You can substitute $\theta$ into one of the previous equation and solve for A.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.