MathLabs

Grade 10

Trigonometric relations in triangles

The law of sines and law of cosines, connecting a triangle's side lengths to its angles.

IntuitionVisual intuition

A triangle has six measurements — three side lengths and three angles — but they are not independent: fixing some of them pins down all the rest. If you know two sides and the angle between them, the law of cosines hands you the third side directly, generalizing the Pythagorean theorem to triangles that are not right-angled. If instead you know one side and its opposite angle, the law of sines lets you scale that relationship to every other side-angle pair, and even tells you the radius of the circle that passes through all three vertices.

Interactive unit circle with adjustable angle theta, used to build the vertex placement behind the law of cosines.
A triangle inscribed in its circumcircle of radius R=aR = a: by the Law of Sines, each side length equals 2Rsin⁡2R\sin of its opposite angle.

SchoolPrecise statements

Definition: Notation for a triangle's sides, angles, and circles

In triangle ABCABC, side a=BCa = BC is opposite vertex AA, side b=CAb = CA is opposite vertex BB, and side c=ABc = AB is opposite vertex CC. Let RR be the radius of the circumscribed circle (through all three vertices), rr the radius of the inscribed circle (tangent to all three sides), and p=a+b+c2p = \frac{a+b+c}{2} the semiperimeter.

c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C

This is the law of cosines: c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C. Here CC is the angle at vertex CC, opposite side cc. When C=90°C = 90°, cos⁡C=0\cos C = 0 and the formula reduces exactly to the Pythagorean theorem c2=a2+b2c^2 = a^2+b^2 — the law of cosines is a generalization that works for any angle, not just right angles.

asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R

This is the law of sines: asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R. It says the ratio of a side to the sine of its opposite angle is the same for all three sides, and that common value is exactly the diameter 2R2R of the circumscribed circle — a single number that captures the overall scale of the triangle.

Four ways to compute a triangle's area
FormulaNeeds
S=12absin⁡CS = \frac{1}{2}ab\sin CTwo sides and the included angle
S=abc4RS = \frac{abc}{4R}All three sides and the circumradius RR
S=prS = prThe semiperimeter pp and the inradius rr
S=p(p−a)(p−b)(p−c)S = \sqrt{p(p-a)(p-b)(p-c)}All three sides only (Heron's formula)

UndergraduateTheorems and proofs

In any triangle ABCABC with sides a,b,ca,b,c opposite A,B,CA,B,C, c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C.

Why is it true?

Placing the triangle in coordinates with the known angle at the origin turns the unknown side into a distance formula, and expanding that distance formula automatically produces the extra cosine term beyond the Pythagorean sum.

Proof

Place vertex CC at the origin, vertex AA at (b,0)(b, 0) along the positive xx-axis (since CA=bCA = b), and vertex BB at (acos⁡C,asin⁡C)(a\cos C, a\sin C) — this is the point at distance aa from CC (since CB=aCB = a) making angle CC with the segment CACA.

The side c=ABc = AB is the distance between A=(b,0)A=(b,0) and B=(acos⁡C,asin⁡C)B=(a\cos C, a\sin C), so c2=(b−acos⁡C)2+(asin⁡C)2c^2 = (b - a\cos C)^2 + (a\sin C)^2.

Expanding the square: c2=b2−2abcos⁡C+a2cos⁡2C+a2sin⁡2Cc^2 = b^2 - 2ab\cos C + a^2\cos^2 C + a^2\sin^2 C.

Since cos⁡2C+sin⁡2C=1\cos^2 C + \sin^2 C = 1, the last two terms combine to a2a^2, leaving c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C, which is exactly c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C. Repeating the same argument with a different vertex at the origin gives the analogous formulas for a2a^2 and b2b^2.

In any triangle ABCABC inscribed in a circle of radius RR, asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R.

Why is it true?

Every inscribed angle subtending the same arc is equal, so replacing an angle by an equal angle at a cleverly chosen point turns the triangle into a right triangle inside the circle, where sine is just a ratio of a chord to the diameter.

Proof

Let OO be the circumcenter and draw the diameter through BB, meeting the circle again at a point B′B'. Since BB′BB' is a diameter, the inscribed angle ∠BCB′\angle BCB' subtends a semicircle, so ∠BCB′=90°\angle BCB' = 90°.

The inscribed angles ∠BAC\angle BAC and ∠BB′C\angle BB'C both subtend the same arc BCBC (or are supplementary if AA and B′B' lie on opposite arcs, in which case their sines are still equal since sin⁡(180°−x)=sin⁡x\sin(180°-x)=\sin x), so ∠BB′C=A\angle BB'C = A or its supplement, and in either case sin⁡(∠BB′C)=sin⁡A\sin(\angle BB'C) = \sin A.

In right triangle BCB′BCB' (right-angled at CC), the side BC=aBC = a is opposite ∠BB′C\angle BB'C, and the hypotenuse BB′=2RBB' = 2R is the diameter, so sin⁡(∠BB′C)=a2R\sin(\angle BB'C) = \dfrac{a}{2R}.

Combining the last two steps, sin⁡A=a2R\sin A = \dfrac{a}{2R}, i.e. asin⁡A=2R\dfrac{a}{\sin A} = 2R. Repeating the same construction with the diameter through AA or through CC gives bsin⁡B=2R\dfrac{b}{\sin B} = 2R and csin⁡C=2R\dfrac{c}{\sin C} = 2R, so all three ratios equal 2R2R, proving asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R.

UndergraduateReal-World Applications and Worked Examples

These two laws are the backbone of triangulation, the technique of finding an unknown distance or position from known angles and a known side. Navigators and surveyors use the law of cosines to compute the distance between two ships or landmarks whose bearings and distances from a common point are known, and GPS and cell-tower positioning rely on the same triangle geometry to locate a receiver from signals with known angles or timing. Civil engineers use the law of sines to find unmeasurable lengths in trusses and roof frames, and land surveyors use Heron's formula to compute the area of an irregular plot from only its three (or more, by triangulating) side lengths, without needing to measure any angle directly.

Example: Distance between two ships

Two ships leave the same port. Ship 1 sails 3030 km along one heading, and ship 2 sails 4040 km along a heading that makes a 60°60° angle with ship 1's heading. Find the distance between the two ships.

Solution

The port and the two ships form a triangle where the two known sides (3030 km and 4040 km) meet at the port with a known included angle (60°60°) — exactly the setup for the law of cosines, c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C, with a=30a=30, b=40b=40, C=60°C=60°, and cc the unknown distance between the ships.

Substituting: c2=302+402−2⋅30⋅40⋅cos⁡60°=900+1600−2400⋅12c^2 = 30^2 + 40^2 - 2\cdot30\cdot40\cdot\cos 60°= 900+1600-2400\cdot\frac{1}{2}.

Computing: c2=2500−1200=1300c^2 = 2500 - 1200 = 1300, so c=1300≈36.1c = \sqrt{1300}\approx 36.1 km.

Example: Area of a triangular plot of land

A triangular plot of land has sides 1313 m, 1414 m, and 1515 m. Find its area.

Solution

Only the three side lengths are known and no angle is measured directly, so Heron's formula S=p(p−a)(p−b)(p−c)S = \sqrt{p(p-a)(p-b)(p-c)} is the right tool, with semiperimeter p=13+14+152=21p = \frac{13+14+15}{2} = 21.

Substituting: S=21(21−13)(21−14)(21−15)=21⋅8⋅7⋅6S = \sqrt{21(21-13)(21-14)(21-15)} = \sqrt{21\cdot 8\cdot 7\cdot 6}.

Computing the product inside the root: 21⋅8=16821\cdot 8 = 168, 7⋅6=427\cdot 6=42, and 168⋅42=7056168\cdot 42 = 7056.

So S=7056=84S = \sqrt{7056} = 84. The plot has area 8484 m².

A triangle has sides a=8a = 8, b=5b = 5, and included angle C=60°C = 60°. Find the length of side cc.

A triangle has sides a=5a=5, b=12b=12, c=13c=13. Which of the following is true about angle CC (opposite side cc)?

A triangle has side a=10a = 10 opposite an angle A=30°A = 30°. What is the diameter 2R2R of its circumscribed circle?

A surveyor measures the three sides of a triangular field as 99 m, 1010 m, and 1717 m, without measuring any angle. Which formula should be used to find the field's area?