trigidentity.com

Triangle identities · proof ·what it is and when to use it

Proof: a = b·cos C + c·cos B

Projection rule — proved by split the side at the foot of the altitude. Every line below says which rule it uses, so nothing has to be taken on faith.

a = b·cos C + c·cos B

The proof

One altitude does it: side a is the sum of the two projections, and each projection is a right-triangle cosine read off the drawing.

  1. let D be the foot of the perpendicular from B onto AC
    The altitude that splits side b — the same construction as in the sine rule.
  2. AD = c·cos A and DC = a·cos C
    Right-triangle cosine in ABD and in CBD.
  3. b = c·cos A + a·cos C
    AD + DC is side b.
  4. a = b·cos C + c·cos B
    Write the same split for the altitude from C instead of the one from B. · Projection rule

Add the three versions and you get each side twice on both sides — which is why this rule is used to shorten proofs rather than to solve for unknowns.

Where the proof stops applying

The variables are one triangle's angles and sides, so they obey A + B + C = 180° and the sine rule. Drop that constraint and the equation is simply not true — which is why the sampler here generates triangles rather than random numbers.

The same claim, checked numerically

A proof is not the same thing as a check, and this page shows both: the reasoning above, and the first few triangles fed to the same engine behind the verifier. If they ever disagreed, the data would be broken — the build would fail before publishing (accuracy policy).

Both sides evaluated at the same triangles — left side a, right side b·cos(C) + c·cos(B).
Triangle (A)Left sideRight sideAgree
7.5°1.6210741.621074yes
15°0.7782110.778211yes
18°1.15321.1532yes
22.5°1.9975611.997561yes
30°3.2040913.204091yes
37°2.5048472.504847yes

Related

sampled at 800 real trianglestriangles only: A + B + C = 180°Source: OpenStax Precalculus, Ch. 7.4 (Law of Sines / Law of Cosines) · Paul's Online Math Notes — trig cheat sheet · revised 2026-09-28 ·how we check ·accuracy policy ·report an error