Home / Learn / Maths / Compound angle proofTool #L230 (formerly #1370)

Sum and difference formulae: a visual proof of sin(A + B) and cos(A + B) from stacked right triangles

Slide two angles A and B and watch two right triangles stack up into the angle A + B. The heights add up to sin(A + B) = sin A cos B + cos A sin B and the widths to cos(A + B) = cos A cos B − sin A sin B, with live numbers, plus a table that checks the difference, tan and double angle formulae.

Keep it one tap away for everyday use.

Bookmark Compound angle proof?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. A and B
  2. Triangles
  3. Lengths
  4. Formula
Nothing is uploadedWorks offline once open

Pick the two angles

Prove

OQ = cos BQP = sin BOP = 1

    Every formula, both sides

    The left side is worked out from the angle itself, the right side from the formula. They always agree.

    FormulaLeftRight

    Try this

    • Set A = 30° and B = 45°: sin 75° comes out as 0.9659, which is (√6 + √2)/4.
    • Push A + B past 90°: P moves to the left of the y-axis and cos(A + B) turns negative, but the formulas still hold.
    • Press Make B = A: the sine formula becomes sin 2A = 2 sin A cos A.
    • Set B = 0: QP shrinks to nothing and sin(A + 0) = sin A.

    Check yourself

    Fresh numbers every time. Type a number or a fraction such as 3/4; nothing is saved or sent.

      What it shows

      Why is sin(A + B) not just sin A + sin B? This page answers with a picture. Start with a line OP of length 1 at an angle A + B above the x-axis. Split the climb into two right triangles: OQ at angle A, and QP at right angles to it, so that the angle between OQ and OP is B. Then

      • OQ = cos B and QP = sin B, because OP = 1;
      • the height of P is the height of Q plus the extra climb from Q to P;
      • and how far right P is equals how far right Q is, minus the distance P has stepped back.

      Measure those pieces with sin A and cos A and you get the two compound angle formulae of Class 11 maths (trigonometric functions):

      sin(A + B) = sin A cos B + cos A sin B and cos(A + B) = cos A cos B − sin A sin B.

      The rest (sin(A − B), cos(A − B), tan(A ± B), sin 2A, cos 2A, tan 2A) follow by putting −B for B, dividing, or setting B = A, and the table below the picture checks every one of them at your angles.

      Revise the ratios in a right triangle with trig ratio explorer first; the unit circle shows why the formulas still hold beyond 90°, and the radian ruler turns the degrees into radians.

      How to use it

      1. Move the A and B sliders (0° to 80° each). The picture redraws with O, Q, P, the feet R and M on the x-axis, and N, the point level with Q directly below P.
      2. Tap sin(A + B) to see the heights: RQ in red and NP in green add up to MP, the height of P. Tap cos(A + B) to see the widths: OR in red minus NQ in green leaves OM.
      3. The numbered steps under the picture give the reason for each length with your numbers filled in, and the bold line adds them up.
      4. Make B = A turns the sum formulas into the double angle formulas.
      5. The table works out each formula twice: the left side straight from the angle, the right side from the formula.

      Why the angle at P is A

      Triangle QNP has a right angle at N. Its side QN is horizontal and NP vertical, while QP is at right angles to OQ. Turning a whole triangle through 90° keeps its angles, so the angle between PN and PQ equals the angle between the x-axis and OQ, which is A. That is why NP = QP cos A and NQ = QP sin A.

      Worked example

      With the starting angles A = 30° and B = 45°, the title reads sin(30° + 45°) = sin 75° = 0.9659. The steps show OQ = cos 45° = 0.7071 and QP = sin 45° = 0.7071, then RQ = sin 30° cos 45° = 0.3536 and NP = cos 30° sin 45° = 0.6124. The last line reads sin(A + B) = 0.3536 + 0.6124 = 0.9659, the same as sin 75°. The exact value is (√6 + √2)/4.

      Switch to cos(A + B): OR = cos 30° cos 45° = 0.6124 and NQ = sin 30° sin 45° = 0.3536, so cos 75° = 0.6124 − 0.3536 = 0.2588.

      FAQ

      Does the proof only work for acute angles? The picture is drawn for A and B up to 80°, but A + B can pass 90° (P then sits left of the y-axis and cos(A + B) is negative). The formulas hold for all angles; the unit circle definitions extend the proof.

      Why does tan(A + B) say “undefined” sometimes? When A + B = 90°, tan(A + B) has no value, and so 1 − tan A tan B = 0 on the right as well.

      Is anything saved? No. Everything runs in your browser. fibub is not part of NCERT; the topics follow the syllabus but the words and pictures are our own.

      Where the numbers come from

      • The sum, difference and double angle formulae and their geometric proof by stacked right triangles are standard trigonometry. Wording, pictures and examples are fibub's own; no textbook text, figures or exercises are used.
      • Checked against Python's math.sin and math.cos for every pair of angles from 0° to 80° in 5° steps, and against sympy for the exact values of sin 75° and cos 15°.

      Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

      Last updated 2026-11-09.

      Change log for Compound angle proof

      1. Add #1370 Compound angle proof Details on GitHub

      Every change to fibub

      Related tools

      Trig ratio explorer #L70 Drag the angle of a right triangle and see sin, cos and tan as ratios of its sides, with the exact values at 0°, 30°, 45°, 60° and 90°, the identities checked live, and the full unit circle for Class 11. Unit circle #L86 Drag a point round the unit circle and watch sin, cos and tan drawn as waves. Angles in degrees and radians, exact values at 30°, 45° and 60°, the ASTC quadrant signs, sliders for y = a sin(bx + c) + d, and the inverse trig functions as the mirror image of the principal branch. Argand plane #L90 Drag two complex numbers z and w on the Argand plane and see z + w as a parallelogram, z × w as stretch-and-turn, the conjugate as a reflection, modulus, argument and polar form, powers of i as quarter turns, and the complex roots of a quadratic appearing when the parabola misses the x-axis. Radian ruler #L233 See a radian as the angle whose arc is exactly one radius long: marks every radius-length round the circle show why a full turn is 2π ≈ 6.28 radians. Slide or type an angle in degrees or radians (3pi/4 works), change the radius, and read the arc length s = rθ and the sector area ½r²θ. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions. Pythagoras proof playground #L69 Drag a right triangle and watch the squares on its sides add up. Slide through four visual proofs (rearrangement, Bhaskara, similar triangles, Baudhayana) with your own side lengths, and list Pythagorean triples.