3.3 Sum and Difference Formulae
Is $\sin(x+y)$ equal to $\sin x+\sin y$? No โ and the correct formulae, proved here from one distance calculation on the unit circle, let you find exact values such as $\sin75^\circ$, reduce any angle to an acute one, and prove a whole family of identities.
You know $\sin30^\circ=\tfrac12$ and $\sin45^\circ=\tfrac{1}{\sqrt2}$. What is $\sin75^\circ$? It is tempting to add โ but $\tfrac12+\tfrac1{\sqrt2}\approx1.21$ is bigger than $1$, which no sine can be. Sine is not "additive", and finding the right rule for $\sin(x+y)$ and $\cos(x+y)$ is the goal of this section. These sum and difference formulae are the engine of trigonometry: every identity in Section 3.4, the derivatives of $\sin x$ and $\cos x$ in Chapter 12, and the way engineers combine two alternating currents or two sound waves all come from them.
We prove one formula โ for $\cos(x-y)$ โ directly from the unit circle using the distance formula, and then obtain all the others from it by clever substitutions. Along the way we get the allied-angle rules, such as $\sin(\pi-x)=\sin x$ and $\cos\left(\tfrac{\pi}{2}+x\right)=-\sin x$, which reduce the sine or cosine of any angle to that of an acute angle.
The Cosine of a Difference
For all real numbers $x$ and $y$,
$$\cos(x-y)=\cos x\cos y+\sin x\sin y .$$Proof. On the unit circle take $P_1=(\cos x,\sin x)$ and $P_2=(\cos y,\sin y)$, and also $A=(1,0)$ and $P_3=(\cos(x-y),\sin(x-y))$. The arc from $P_2$ to $P_1$ and the arc from $A$ to $P_3$ both correspond to the angle $x-y$: turning the whole picture about $O$ through the angle $-y$ carries $P_2$ to $A$ and $P_1$ to $P_3$. A rotation does not change distances, so $P_1P_2=AP_3$. By the distance formula,
$$P_1P_2^{\,2}=(\cos x-\cos y)^2+(\sin x-\sin y)^2=2-2(\cos x\cos y+\sin x\sin y),$$using $\cos^2x+\sin^2x=1$ and $\cos^2y+\sin^2y=1$. Similarly
$$AP_3^{\,2}=(\cos(x-y)-1)^2+\sin^2(x-y)=2-2\cos(x-y).$$Equating the two: $2-2\cos(x-y)=2-2(\cos x\cos y+\sin x\sin y)$, which is the formula. $\blacksquare$
Everything else follows by substitution. Write $-y$ for $y$ and use $\cos(-y)=\cos y$, $\sin(-y)=-\sin y$; put $x=\tfrac{\pi}{2}$; and so on:
For all real $x$ and $y$:
$$\cos(x+y)=\cos x\cos y-\sin x\sin y,$$ $$\cos\left(\tfrac{\pi}{2}-x\right)=\sin x,\qquad \sin\left(\tfrac{\pi}{2}-x\right)=\cos x,$$ $$\sin(x+y)=\sin x\cos y+\cos x\sin y,$$ $$\sin(x-y)=\sin x\cos y-\cos x\sin y .$$Proof. (1) Replace $y$ by $-y$ in Theorem 3.6: $\cos(x+y)=\cos x\cos(-y)+\sin x\sin(-y)=\cos x\cos y-\sin x\sin y$.
(2) Put $\tfrac{\pi}{2}$ for $x$ and $x$ for $y$ in Theorem 3.6: $\cos\left(\tfrac{\pi}{2}-x\right)=0\cdot\cos x+1\cdot\sin x=\sin x$. Applying this to $\tfrac{\pi}{2}-x$ in place of $x$: $\sin\left(\tfrac{\pi}{2}-x\right)=\cos\left(\tfrac{\pi}{2}-\left(\tfrac{\pi}{2}-x\right)\right)=\cos x$.
(3) $\sin(x+y)=\cos\left(\left(\tfrac{\pi}{2}-x\right)-y\right)=\cos\left(\tfrac{\pi}{2}-x\right)\cos y+\sin\left(\tfrac{\pi}{2}-x\right)\sin y=\sin x\cos y+\cos x\sin y$.
(4) Replace $y$ by $-y$ in (3). $\blacksquare$
Allied Angles
Angles such as $\tfrac{\pi}{2}\pm x$, $\pi\pm x$, $\tfrac{3\pi}{2}\pm x$ and $2\pi-x$ are called allied angles of $x$. Putting $\tfrac{\pi}{2}$, $\pi$ or $\tfrac{3\pi}{2}$ into the sum and difference formulae (where $\sin$ and $\cos$ of these angles are $0$ or $\pm1$) gives:
For every real $x$ (and wherever the tangent is defined):
| angle | $\sin$ | $\cos$ | $\tan$ |
|---|---|---|---|
| $-x$ | $-\sin x$ | $\cos x$ | $-\tan x$ |
| $\tfrac{\pi}{2}-x$ | $\cos x$ | $\sin x$ | $\cot x$ |
| $\tfrac{\pi}{2}+x$ | $\cos x$ | $-\sin x$ | $-\cot x$ |
| $\pi-x$ | $\sin x$ | $-\cos x$ | $-\tan x$ |
| $\pi+x$ | $-\sin x$ | $-\cos x$ | $\tan x$ |
| $\tfrac{3\pi}{2}-x$ | $-\cos x$ | $-\sin x$ | $\cot x$ |
| $\tfrac{3\pi}{2}+x$ | $-\cos x$ | $\sin x$ | $-\cot x$ |
| $2\pi-x$ | $-\sin x$ | $\cos x$ | $-\tan x$ |
Proof (two rows; the rest are similar). $\sin(\pi-x)=\sin\pi\cos x-\cos\pi\sin x=0-(-1)\sin x=\sin x$. $\ \cos\left(\tfrac{\pi}{2}+x\right)=\cos\tfrac{\pi}{2}\cos x-\sin\tfrac{\pi}{2}\sin x=-\sin x$. The tangent column is the sine column divided by the cosine column. $\blacksquare$
- Remove whole turns ($2n\pi$ or $n\cdot360^\circ$); for a negative angle use $\sin(-x)=-\sin x$, $\cos(-x)=\cos x$.
- Write the angle as $\pi\pm x$ or $2\pi-x$ (the function name stays the same), or as $\tfrac{\pi}{2}\pm x$ or $\tfrac{3\pi}{2}\pm x$ (the name swaps: $\sin\leftrightarrow\cos$, $\tan\leftrightarrow\cot$), with $x$ acute.
- Fix the sign by the quadrant of the original angle (ASTC), pretending $x$ is acute.
Example: $\cos210^\circ=\cos(180^\circ+30^\circ)$; the name stays; $210^\circ$ is in Quadrant III where cosine is negative: $-\cos30^\circ=-\tfrac{\sqrt3}{2}$.
Tangent and Cotangent of a Sum
If none of $x$, $y$, $x+y$ is an odd multiple of $\tfrac{\pi}{2}$, then
$$\tan(x+y)=\frac{\tan x+\tan y}{1-\tan x\tan y};$$if none of $x$, $y$, $x-y$ is an odd multiple of $\tfrac{\pi}{2}$, then
$$\tan(x-y)=\frac{\tan x-\tan y}{1+\tan x\tan y}.$$If none of $x$, $y$, $x\pm y$ is a multiple of $\pi$, then
$$\cot(x\pm y)=\frac{\cot x\cot y\mp1}{\cot y\pm\cot x}.$$Proof. $\tan(x+y)=\dfrac{\sin x\cos y+\cos x\sin y}{\cos x\cos y-\sin x\sin y}$. The conditions guarantee $\cos x\cos y\ne0$ and $\cos(x+y)\ne0$; divide the numerator and the denominator by $\cos x\cos y$ to get the formula. Replacing $y$ by $-y$ (and using $\tan(-y)=-\tan y$) gives $\tan(x-y)$. For the cotangent, divide $\dfrac{\cos x\cos y\mp\sin x\sin y}{\sin x\cos y\pm\cos x\sin y}$ by $\sin x\sin y$. $\blacksquare$
A useful special case, with $x=\tfrac{\pi}{4}$ and $\tan\tfrac{\pi}{4}=1$: $\ \tan\left(\tfrac{\pi}{4}+x\right)=\dfrac{1+\tan x}{1-\tan x}$ and $\tan\left(\tfrac{\pi}{4}-x\right)=\dfrac{1-\tan x}{1+\tan x}$.
1. "Distributing" sine. $\sin(x+y)\ne\sin x+\sin y$. Test at $x=y=\tfrac{\pi}{2}$: the left side is $\sin\pi=0$, the right side is $2$.
2. The sign in $\cos(x+y)$. The cosine formulae have the opposite sign: $\cos(x+y)=\cos x\cos y\,\mathbf{-}\,\sin x\sin y$.
3. Mixed-up allied angles. $\cos\left(\tfrac{\pi}{2}+x\right)=-\sin x$, not $\sin x$. With $\tfrac{\pi}{2}$ or $\tfrac{3\pi}{2}$ the name changes; with $\pi$ or $2\pi$ it does not. The sign comes from the quadrant of the whole angle.
4. Ignoring the conditions on $\tan(x+y)$. At $x=y=\tfrac{\pi}{4}$ the formula gives $\tfrac{2}{0}$ โ correct, because $\tan\tfrac{\pi}{2}$ is undefined. Never use the formula when $x$ or $y$ is an odd multiple of $\tfrac{\pi}{2}$.
In JEE Main and JEE Advanced 2026 (an application of the trigonometric identities and addition formulae both list); not in the CBSE year-end exam. JEE Main in particular frequently asks for the greatest and least values of $a\sin x+b\cos x$.
Method. Let $R=\sqrt{a^2+b^2}\gt0$ and choose $\alpha$ with $\cos\alpha=\tfrac{a}{R}$, $\sin\alpha=\tfrac{b}{R}$ (possible because $\left(\tfrac aR\right)^2+\left(\tfrac bR\right)^2=1$). Then $a\sin x+b\cos x=R(\sin x\cos\alpha+\cos x\sin\alpha)=R\sin(x+\alpha)$. Since $\sin(x+\alpha)$ takes every value in $[-1,1]$, the expression takes every value in $[-R,R]$.
Worked example. Find the range of $f(x)=3\sin x+4\cos x+2$.
Solution. $R=\sqrt{9+16}=5$, so $3\sin x+4\cos x=5\sin(x+\alpha)$ with $\cos\alpha=\tfrac35$, $\sin\alpha=\tfrac45$, and it ranges over $[-5,5]$. Hence $f$ ranges over $[-3,7]$: greatest value $7$ (when $x+\alpha=\tfrac{\pi}{2}$, i.e. $\sin x=\tfrac35$, $\cos x=\tfrac45$), least value $-3$.
Exercises
- 1 $\cos105^\circ$
- 2 $\tan105^\circ$
- 3 $\sin\tfrac{\pi}{12}$
- 4 $\cos\tfrac{5\pi}{12}$
- 5 $\cos75^\circ\cos15^\circ-\sin75^\circ\sin15^\circ$
- 6 $\sin40^\circ\cos20^\circ+\cos40^\circ\sin20^\circ$
- 7 $\dfrac{\tan66^\circ+\tan69^\circ}{1-\tan66^\circ\tan69^\circ}$
- 8 $\sin\tfrac{7\pi}{12}\cos\tfrac{\pi}{4}-\cos\tfrac{7\pi}{12}\sin\tfrac{\pi}{4}$
- 1 $\sin120^\circ$
- 2 $\cos135^\circ$
- 3 $\tan240^\circ$
- 4 $\sec(-300^\circ)$
- 5 $\sin\tfrac{11\pi}{6}$
- 6 $\cot\left(-\tfrac{3\pi}{4}\right)$
- 7 $\sin(-690^\circ)$
- 8 Simplify $\dfrac{\sin(\pi-x)\cos\left(\tfrac{\pi}{2}+x\right)}{\cos(\pi+x)\sin\left(\tfrac{3\pi}{2}-x\right)}$.
- 9 Use the sum formula to show that $\cos\left(\tfrac{3\pi}{2}+x\right)=\sin x$.
- 1 $\sin x=\tfrac45$ and $\cos y=\tfrac{5}{13}$, with $x$, $y$ acute. Find $\sin(x+y)$ and $\cos(x-y)$.
- 2 $\tan x=\tfrac34$ and $\tan y=\tfrac17$. Find $\tan(x+y)$ and $\tan(x-y)$.
- 3 Prove that $\cos(x+y)\cos(x-y)=\cos^2x-\sin^2y$, and hence find $\cos^245^\circ-\sin^215^\circ$.
- 4 Prove that $\sin5x\sin4x+\cos5x\cos4x=\cos x$.
- 5 Prove that $\tan\left(\tfrac{\pi}{4}+x\right)\tan\left(\tfrac{\pi}{4}-x\right)=1$, where defined.
- 6 Prove that $\dfrac{\cos(\pi+x)\cos(-x)}{\sin(\pi-x)\cos\left(\tfrac{\pi}{2}+x\right)}=\cot^2x$.
- 7 Prove that $\dfrac{\tan\left(\tfrac{\pi}{4}+x\right)}{\tan\left(\tfrac{\pi}{4}-x\right)}=\left(\dfrac{1+\tan x}{1-\tan x}\right)^2$.
- 8 Prove that $\dfrac{\sin(x-y)}{\cos x\cos y}+\dfrac{\sin(y-z)}{\cos y\cos z}+\dfrac{\sin(z-x)}{\cos z\cos x}=0$.
- 9 If $\tan A=\tfrac56$ and $\tan B=\tfrac1{11}$ with $A$, $B$ acute, show that $A+B=\tfrac{\pi}{4}$.
- 1 $\cos x=-\tfrac35$ with $x$ in Quadrant II, and $\sin y=-\tfrac{12}{13}$ with $y$ in Quadrant III. Find $\sin(x+y)$ and $\cos(x+y)$, and decide in which quadrant $x+y$ lies (up to whole turns).
- 2 Hill roads. Two straight roads climb from the same point with gradients $2$ and $\tfrac13$ (so $\tan\theta_1=2$, $\tan\theta_2=\tfrac13$). Find the angle between them.
- 3 Flagpole. A building $10$ m tall has a $10$ m flagpole on its roof. From a point on level ground $20$ m from the foot of the building, find the tangent of the angle subtended by the flagpole.
- 4 Show that $\cos\left(\tfrac{\pi}{4}-x\right)\cos\left(\tfrac{\pi}{4}-y\right)-\sin\left(\tfrac{\pi}{4}-x\right)\sin\left(\tfrac{\pi}{4}-y\right)=\sin(x+y)$.
- 5 Show that $\sin x+\sqrt3\cos x=2\sin\left(x+\tfrac{\pi}{3}\right)$ for every real $x$.
How this is examined: Board papers ask for exact values ($\sin75^\circ$, $\tan15^\circ$), allied-angle simplifications, and 3โ5-mark identity proofs built on the sum formulae. JEE tests fluency: recognising $\cos A\cos B+\sin A\sin B$ instantly, splitting an angle as a sum, and using $\tan(A+B)$ with a condition such as $A+B=\tfrac{\pi}{4}$.
E1. Board ยท 1 mark The value of $\cos68^\circ\cos8^\circ+\sin68^\circ\sin8^\circ$ is (A) $\tfrac12$ (B) $\tfrac{\sqrt3}{2}$ (C) $\tfrac1{\sqrt2}$ (D) $0$
E2. Board ยท 2 marks Prove that $\tan\left(\tfrac{\pi}{4}+x\right)=\dfrac{1+\tan x}{1-\tan x}$, and hence find $\tan75^\circ$.
E3. Board ยท 3 marks Prove that $\dfrac{\sin(x+y)-2\sin x\cos y}{2\sin x\sin y+\cos(x+y)}=\tan(y-x)$.
E4. Board ยท Case study A $15$ m advertising hoarding stands on the roof of a $30$ m building. A surveyor stands on level ground $30$ m from the foot of the building and sees the top of the hoarding at an angle of elevation $\alpha$ and its bottom at an angle $\beta$. (i) Find $\tan\alpha$ and $\tan\beta$. (2 marks) (ii) Find the tangent of the angle $\alpha-\beta$ subtended by the hoarding. (1 mark) (iii) Is this angle more or less than $15^\circ$? Justify. (1 mark)
E5. JEE Main If $A+B=\tfrac{\pi}{4}$ (with $\tan A$, $\tan B$ defined), then $(1+\tan A)(1+\tan B)$ equals (A) $1$ (B) $2$ (C) $0$ (D) $\sqrt2$
E6. JEE Advanced One or more options correct. Let $0\lt\beta\lt\alpha\lt\tfrac{\pi}{4}$ with $\cos(\alpha+\beta)=\tfrac35$ and $\sin(\alpha-\beta)=\tfrac{5}{13}$. Which are true? (A) $\tan2\alpha=\tfrac{63}{16}$ (B) $\tan2\beta=\tfrac{33}{56}$ (C) $\sin2\alpha=\tfrac{63}{65}$ (D) $\cos2\beta=\tfrac{33}{65}$
Research question. Where should you stand to see a hoarding, a statue on a pedestal, or a cinema screen at the largest angle?
Why it matters. Architects place statues and screens, and advertisers place hoardings, so that viewers at the intended distance see them as large as possible. The angle subtended is $\alpha-\beta$, and its tangent comes straight from Theorem 3.9.
What to do.
- Choose a real object above eye level: a notice board on a wall, a clock on a tower, a projector screen. Measure (or estimate) the heights $a$ and $b$ of its bottom and top above your eyes.
- Standing at distance $d$, the angle subtended has $\tan(\alpha-\beta)=\dfrac{\tfrac bd-\tfrac ad}{1+\tfrac{ab}{d^2}}=\dfrac{(b-a)d}{d^2+ab}$. Derive this formula yourself.
- In a spreadsheet, tabulate this for $d=0.5,1,1.5,\dots$ metres and find the $d$ that makes it largest.
- Compare your best $d$ with $\sqrt{ab}$. Stand there and check that the object does look biggest.
Tools: Measuring tape, phone clinometer app (optional), spreadsheet
Hand in: Your measurements, the table and graph of the angle against $d$, and a comparison of your best distance with $\sqrt{ab}$.
Going further. Why does standing very close or very far make the angle tiny? Explain using the formula.
๐งช Self-check quiz
Q1. $\sin(x+y)$ equals
Q2. $\cos15^\circ$ equals
Q3. $\cos\left(\tfrac{\pi}{2}+x\right)$ equals
Q4. $\tan\left(\tfrac{\pi}{4}-x\right)$ equals
Q5. $\sin50^\circ\cos10^\circ+\cos50^\circ\sin10^\circ$ equals