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

is it possible to find the third side of a triangle if you know the lengths of the other two and the angle between the known sides? the triangle is not equilateral.

we're using the kinect camera and we can find the distance from the camera to the start of a line and the distance to the end of a line, we could calculate the angle between the two lines knowing the maximum vertical and horizontal angle but would it be possible to calculate the length of the line on the ground? the problem is that the camera won't be exactly above the line so the triangle we get wouldn't be equilateral.

share|cite|improve this question
Yes, you can use the law of cosines... – J. M. Apr 19 '12 at 17:22
up vote 5 down vote accepted

How about the law of cosines?

Consider the following triangle $\triangle ABC$, the $ \color{maroon} {\text{poly 1}}$ below, with sides $\color{maroon}{\overline{AB}=c}$ and $\color{maroon}{\overline{AC}=b}$ known. Further the angle between them, $\color{green}\alpha$ is known.

$\hskip{2 in}$Triangle

Then, the law of cosines tell you that $$\color{maroon}{a^2=b^2+c^2-2bc\;\cos }\color{blue}{\alpha}$$

share|cite|improve this answer

This is precisely what the cosine theorem allows you to compute: $$c^2 = a^2 + b^2 - 2ab\cos(\gamma)$$ where $\gamma$ is the angle opposite to $c$

(uhm, yes, is probably be called 'law of cosine' rather than 'cosine theorem').

share|cite|improve this answer

Use the law of cosines...

$c^2 = a^2 + b^2 - 2ab \cdot \cos{\theta}$

... where $a$ and $b$ are the sides you know, $\theta$ the angle between them, and $c$ the side you seek, opposite $\theta$.

share|cite|improve this answer

If you are interested in doing calculations with specific angles and sides when there is information which forces a specific triangle, as is true in Euclidean geometry with angle-side-angle, rather than "theory" you can do this at this on-line site:

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.