WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M3-3 ยท 3 of 7 in Trigonometry ยท 11 min read

Sum and difference formulae

69 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Revision sheet: the chapter on one pageTry three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter drew 24 questions in the seven papers from NDA II 2023 to NDA II 2026, more than any other chapter of trigonometry. The questions give two angles whose sum or difference is known (often โ€‹45^\circโ€‹, โ€‹60^\circโ€‹ or โ€‹90^\circโ€‹) and ask for the value of an expression. Almost every one is a direct use of a formula in sections 1 to 4. Six real questions are solved in section 7.

What you will be able to do

  • Expand โ€‹\sin(A \pm B)โ€‹, โ€‹\cos(A \pm B)โ€‹ and โ€‹\tan(A \pm B)โ€‹, and use them to find ratios of โ€‹15^\circโ€‹, โ€‹75^\circโ€‹ and โ€‹105^\circโ€‹.
  • Change a product of sines and cosines into a sum, and a sum into a product.
  • Find the largest and smallest value of โ€‹a\cos x + b\sin xโ€‹.

Before you start you should know: the values and signs of the ratios (Chapter M3-2) and the identity โ€‹\sin^2\theta + \cos^2\theta = 1โ€‹.

1. The four basic formulae

The sine or cosine of a sum is not the sum of the sines or cosines. The correct rules are:

\sin(A + B) = \sin A\cos B + \cos A\sin B \qquad \sin(A - B) = \sin A\cos B - \cos A\sin B

\cos(A + B) = \cos A\cos B - \sin A\sin B \qquad \cos(A - B) = \cos A\cos B + \sin A\sin B

Notice the signs. In the sine formulae the sign in the middle is the same as the sign between โ€‹Aโ€‹ and โ€‹Bโ€‹. In the cosine formulae it is the opposite.

For example, โ€‹\sin 75^\circ = \sin(45^\circ + 30^\circ) = \dfrac{1}{\sqrt{2}} \times \dfrac{\sqrt{3}}{2} + \dfrac{1}{\sqrt{2}} \times \dfrac{1}{2} = \dfrac{\sqrt{6} + \sqrt{2}}{4}โ€‹.

The sine curve from 0 to 90 degrees. sin 30 is 0.50, sin 45 is 0.71 and sin 75 is 0.97. But 0.71 plus 0.50 is 1.21, and a sine is never more than 1

Two results follow by multiplying a pair of these formulae:

\sin(A + B)\sin(A - B) = \sin^2 A - \sin^2 B \qquad \cos(A + B)\cos(A - B) = \cos^2 A - \sin^2 B

2. The tangent and cotangent formulae

\tan(A + B) = \frac{\tan A + \tan B}{1 - \tan A\tan B} \qquad \tan(A - B) = \frac{\tan A - \tan B}{1 + \tan A\tan B} \qquad \cot(A + B) = \frac{\cot A\cot B - 1}{\cot A + \cot B}

For example, โ€‹\tan 15^\circ = \tan(45^\circ - 30^\circ) = \dfrac{1 - \frac{1}{\sqrt{3}}}{1 + \frac{1}{\sqrt{3}}} = \dfrac{\sqrt{3} - 1}{\sqrt{3} + 1} = 2 - \sqrt{3}โ€‹.

Two special cases are asked often.

  • If โ€‹A + B = 45^\circโ€‹, then โ€‹\tan(A + B) = 1โ€‹, which gives โ€‹\tan A + \tan B + \tan A\tan B = 1โ€‹. So โ€‹(1 + \tan A)(1 + \tan B) = 2โ€‹.
  • If โ€‹Aโ€‹, โ€‹Bโ€‹, โ€‹Cโ€‹ are the angles of a triangle, then โ€‹\tan A + \tan B + \tan C = \tan A\tan B\tan Cโ€‹.

Since โ€‹\tan 45^\circ = 1โ€‹, also โ€‹\tan(45^\circ + \theta) = \dfrac{1 + \tan\theta}{1 - \tan\theta}โ€‹ and โ€‹\tan(45^\circ - \theta) = \dfrac{1 - \tan\theta}{1 + \tan\theta}โ€‹.

3. A product into a sum

Add or subtract the formulae of section 1 in pairs:

Product Sum
โ€‹2\sin A\cos Bโ€‹ โ€‹\sin(A + B) + \sin(A - B)โ€‹
โ€‹2\cos A\sin Bโ€‹ โ€‹\sin(A + B) - \sin(A - B)โ€‹
โ€‹2\cos A\cos Bโ€‹ โ€‹\cos(A + B) + \cos(A - B)โ€‹
โ€‹2\sin A\sin Bโ€‹ โ€‹\cos(A - B) - \cos(A + B)โ€‹

For example, โ€‹2\sin 75^\circ\cos 15^\circ = \sin 90^\circ + \sin 60^\circ = 1 + \dfrac{\sqrt{3}}{2}โ€‹.

4. A sum into a product

Reading the same table from right to left, with โ€‹C = A + Bโ€‹ and โ€‹D = A - Bโ€‹:

Sum Product
โ€‹\sin C + \sin Dโ€‹ โ€‹2\sin\dfrac{C + D}{2}\cos\dfrac{C - D}{2}โ€‹
โ€‹\sin C - \sin Dโ€‹ โ€‹2\cos\dfrac{C + D}{2}\sin\dfrac{C - D}{2}โ€‹
โ€‹\cos C + \cos Dโ€‹ โ€‹2\cos\dfrac{C + D}{2}\cos\dfrac{C - D}{2}โ€‹
โ€‹\cos C - \cos Dโ€‹ โ€‹-2\sin\dfrac{C + D}{2}\sin\dfrac{C - D}{2}โ€‹

For example, โ€‹\cos 75^\circ + \cos 15^\circ = 2\cos 45^\circ\cos 30^\circ = 2 \times \dfrac{1}{\sqrt{2}} \times \dfrac{\sqrt{3}}{2} = \dfrac{\sqrt{6}}{2}โ€‹.

Use these when two sines or two cosines are added and their half-sum is a known angle.

5. The largest and smallest value of โ€‹a\cos x + b\sin xโ€‹

Let โ€‹r = \sqrt{a^2 + b^2}โ€‹ and choose the angle โ€‹\alphaโ€‹ with โ€‹\cos\alpha = \dfrac{a}{r}โ€‹ and โ€‹\sin\alpha = \dfrac{b}{r}โ€‹. Then

a\cos x + b\sin x = r(\cos x\cos\alpha + \sin x\sin\alpha) = r\cos(x - \alpha)

A right triangle with legs a and b, hypotenuse r and angle alpha. Then a cos x + b sin x equals r cos of x minus alpha, with largest value r and smallest value minus r

A cosine lies from โ€‹-1โ€‹ to โ€‹1โ€‹. So the expression lies from โ€‹-\sqrt{a^2 + b^2}โ€‹ to โ€‹\sqrt{a^2 + b^2}โ€‹, and it is largest when โ€‹x = \alphaโ€‹. For example, โ€‹3\cos x + 4\sin xโ€‹ lies from โ€‹-5โ€‹ to โ€‹5โ€‹.

The curve y = 3 cos x + 4 sin x from 0 to 2 pi. It stays between the lines y = 5 and y = minus 5

6. Worked examples

Example 1. โ€‹\sin A = \frac{3}{5}โ€‹ and โ€‹\cos B = \frac{5}{13}โ€‹, where โ€‹Aโ€‹ and โ€‹Bโ€‹ are acute. Find โ€‹\sin(A + B)โ€‹ and โ€‹\cos(A + B)โ€‹.

โ€‹\cos A = \frac{4}{5}โ€‹ and โ€‹\sin B = \frac{12}{13}โ€‹. So โ€‹\sin(A + B) = \frac{3}{5} \times \frac{5}{13} + \frac{4}{5} \times \frac{12}{13} = \frac{63}{65}โ€‹, and โ€‹\cos(A + B) = \frac{4}{5} \times \frac{5}{13} - \frac{3}{5} \times \frac{12}{13} = -\frac{16}{65}โ€‹. The cosine is negative, so โ€‹A + Bโ€‹ is more than โ€‹90^\circโ€‹.

Example 2. โ€‹\tan A = \frac{1}{2}โ€‹ and โ€‹\tan B = \frac{1}{3}โ€‹, where โ€‹Aโ€‹ and โ€‹Bโ€‹ are acute. Find โ€‹A + Bโ€‹.

โ€‹\tan(A + B) = \dfrac{\frac{1}{2} + \frac{1}{3}}{1 - \frac{1}{6}} = \dfrac{5/6}{5/6} = 1โ€‹. Both angles are acute and their sum has tangent 1, so โ€‹A + B = 45^\circโ€‹.

Example 3. Simplify โ€‹\dfrac{\sin 5x + \sin 3x}{\cos 5x + \cos 3x}โ€‹.

Top: โ€‹2\sin 4x\cos xโ€‹. Bottom: โ€‹2\cos 4x\cos xโ€‹. The factor โ€‹2\cos xโ€‹ cancels and the value is โ€‹\tan 4xโ€‹.

Example 4. Find the value of โ€‹\sin 20^\circ\cos 40^\circ + \cos 20^\circ\sin 40^\circโ€‹.

This is the right-hand side of the โ€‹\sin(A + B)โ€‹ formula with โ€‹A = 20^\circโ€‹ and โ€‹B = 40^\circโ€‹. So the value is โ€‹\sin 60^\circ = \frac{\sqrt{3}}{2}โ€‹. Reading a formula from right to left is a common exam step.

Example 5. Find the largest and smallest values of โ€‹5\cos x + 12\sin x + 7โ€‹.

โ€‹\sqrt{5^2 + 12^2} = 13โ€‹, so โ€‹5\cos x + 12\sin xโ€‹ lies from โ€‹-13โ€‹ to โ€‹13โ€‹. Adding 7, the largest value is 20 and the smallest is โ€‹-6โ€‹.

7. From the real papers

Try each for 75 seconds before reading the solution.

NDA II 2026, Q7 (one of two questions on the same data). Given that โ€‹\tan\left(\frac{A}{2} + \frac{B}{2}\right) = pโ€‹ and โ€‹\tan\left(\frac{A}{2} - \frac{B}{2}\right) = qโ€‹, where โ€‹pq \ne \pm 1โ€‹. What is โ€‹\tan Aโ€‹ equal to?

(a) โ€‹\frac{p-q}{1+pq}โ€‹โ€ƒโ€ƒ(b) โ€‹\frac{p+q}{1-pq}โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{p+q}{1+pq}โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{p-q}{1-pq}โ€‹

Solution. โ€‹Aโ€‹ is the sum of the two given angles: โ€‹A = \left(\frac{A}{2} + \frac{B}{2}\right) + \left(\frac{A}{2} - \frac{B}{2}\right)โ€‹. By the โ€‹\tan(X + Y)โ€‹ formula, โ€‹\tan A = \frac{p + q}{1 - pq}โ€‹. Answer (b).

NDA II 2026, Q9 (one of two questions on the same data). Let โ€‹4(A + B) = \piโ€‹. What is โ€‹(1 + \tan A)(1 + \tan B)โ€‹ equal to?

(a) โ€‹1โ€‹โ€ƒโ€ƒ(b) โ€‹2โ€‹โ€ƒโ€ƒ(c) โ€‹4โ€‹โ€ƒโ€ƒ(d) โ€‹6โ€‹

Solution. โ€‹A + B = \frac{\pi}{4}โ€‹, so โ€‹\frac{\tan A + \tan B}{1 - \tan A\tan B} = 1โ€‹ and โ€‹\tan A + \tan B + \tan A\tan B = 1โ€‹. Then โ€‹(1 + \tan A)(1 + \tan B) = 1 + \tan A + \tan B + \tan A\tan B = 2โ€‹. Answer (b).

NDA II 2025, Q25 (one of two questions on the same data). Let โ€‹\sin A + \sin B = pโ€‹ and โ€‹\cos A + \cos B = qโ€‹. What is โ€‹\frac{p}{q}โ€‹ equal to?

(a) โ€‹\tan\left(\frac{A-B}{2}\right)โ€‹โ€ƒโ€ƒ(b) โ€‹\cot\left(\frac{A-B}{2}\right)โ€‹โ€ƒโ€ƒ(c) โ€‹\tan\left(\frac{A+B}{2}\right)โ€‹โ€ƒโ€ƒ(d) โ€‹\cot\left(\frac{A+B}{2}\right)โ€‹

Solution. โ€‹p = 2\sin\frac{A+B}{2}\cos\frac{A-B}{2}โ€‹ and โ€‹q = 2\cos\frac{A+B}{2}\cos\frac{A-B}{2}โ€‹. Dividing, the factor โ€‹2\cos\frac{A-B}{2}โ€‹ cancels and โ€‹\frac{p}{q} = \tan\left(\frac{A+B}{2}\right)โ€‹. Answer (c).

NDA I 2024, Q41. โ€‹ABCโ€‹ is a triangle such that angle โ€‹C = 60^\circโ€‹, then what is โ€‹\frac{\cos A + \cos B}{\cos\left(\frac{A - B}{2}\right)}โ€‹ equal to?

(a) โ€‹2โ€‹โ€ƒโ€ƒ(b) โ€‹\sqrt{2}โ€‹โ€ƒโ€ƒ(c) โ€‹1โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{1}{\sqrt{2}}โ€‹

Solution. โ€‹A + B = 120^\circโ€‹, so โ€‹\frac{A + B}{2} = 60^\circโ€‹. Then โ€‹\cos A + \cos B = 2\cos 60^\circ\cos\left(\frac{A - B}{2}\right) = \cos\left(\frac{A - B}{2}\right)โ€‹. Dividing gives 1. Answer (c).

NDA I 2026, Q30. โ€‹\cos x + \sqrt{3} \sin xโ€‹ is maximum when โ€‹xโ€‹ is equal to

(a) โ€‹\frac{\pi}{2}โ€‹โ€ƒโ€ƒ(b) โ€‹\frac{\pi}{3}โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{\pi}{4}โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{\pi}{6}โ€‹

Solution. Here โ€‹r = \sqrt{1 + 3} = 2โ€‹. So โ€‹\cos x + \sqrt{3}\sin x = 2\left(\frac{1}{2}\cos x + \frac{\sqrt{3}}{2}\sin x\right) = 2\cos\left(x - \frac{\pi}{3}\right)โ€‹. It is largest when โ€‹x - \frac{\pi}{3} = 0โ€‹, that is โ€‹x = \frac{\pi}{3}โ€‹. Answer (b).

NDA I 2025, Q31 (one of three questions on the same data). Let โ€‹p = \sin 35^\circโ€‹, โ€‹q = \sin 25^\circโ€‹ and โ€‹r = \sin(-95^\circ)โ€‹. What is โ€‹(p + q + r)โ€‹ equal to?

(a) โ€‹-1โ€‹โ€ƒโ€ƒ(b) โ€‹0โ€‹โ€ƒโ€ƒ(c) โ€‹2\sin 5^\circโ€‹โ€ƒโ€ƒ(d) โ€‹2\cos 5^\circโ€‹

Solution. โ€‹p + q = 2\sin 30^\circ\cos 5^\circ = \cos 5^\circโ€‹. Next, โ€‹r = -\sin 95^\circ = -\sin(90^\circ + 5^\circ) = -\cos 5^\circโ€‹. So โ€‹p + q + r = 0โ€‹. Answer (b).

Notice that not one of these six needed more than two lines. The work is in seeing which formula fits.

8. Mistakes that cost marks

  1. โ€‹\sin(A + B) = \sin A + \sin Bโ€‹ is wrong. Try โ€‹A = 30^\circโ€‹, โ€‹B = 60^\circโ€‹: โ€‹\sin 90^\circ = 1โ€‹, but โ€‹\sin 30^\circ + \sin 60^\circโ€‹ is about 1.37.
  2. The sign in the cosine formulae. โ€‹\cos(A + B)โ€‹ has a minus sign and โ€‹\cos(A - B)โ€‹ has a plus sign. Check with โ€‹A = Bโ€‹: โ€‹\cos 0 = \cos^2 A + \sin^2 A = 1โ€‹.
  3. The minus sign in โ€‹\cos C - \cos Dโ€‹. It is โ€‹-2\sin\frac{C + D}{2}\sin\frac{C - D}{2}โ€‹. The other three have no minus sign.
  4. The largest value of โ€‹a\cos x + b\sin xโ€‹ is not โ€‹a + bโ€‹. It is โ€‹\sqrt{a^2 + b^2}โ€‹. The largest value of โ€‹3\cos x + 4\sin xโ€‹ is 5, not 7.

9. Quick check

Do these without help. Answers are at the end.

  1. Find โ€‹\cos 105^\circโ€‹.
  2. Find โ€‹\tan 75^\circโ€‹.
  3. Find โ€‹\sin 75^\circ - \sin 15^\circโ€‹.
  4. โ€‹\tan A = \frac{3}{4}โ€‹ and โ€‹\tan B = \frac{1}{7}โ€‹, where โ€‹Aโ€‹ and โ€‹Bโ€‹ are acute. Find โ€‹A + Bโ€‹.
  5. What is the smallest value of โ€‹\sin x - \cos xโ€‹?

10. Read and watch more, free

What Where Language
Textbook NCERT Class 11 Mathematics, Chapter 3 Trigonometric Functions (the section on the sum and difference of two angles) ยท Hindi edition English, Hindi
Self-study notes NIOS Mathematics, Lesson 4 Trigonometric Functions-II ยท Hindi edition English, Hindi
Video, the whole unit for NDA Defence Wallah: Trigonometry for NDA 2026 (about 5 hours) Hinglish
Video, short lessons on each identity Mohit Tyagi: Trigonometry-1, Ratio and Identities (72 short lessons, a little above NDA level) Hinglish
Video, worked examples The Organic Chemistry Tutor: New Trigonometry Playlist English

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹\cos(60^\circ + 45^\circ) = \frac{1}{2} \times \frac{1}{\sqrt{2}} - \frac{\sqrt{3}}{2} \times \frac{1}{\sqrt{2}} = \frac{\sqrt{2} - \sqrt{6}}{4}โ€‹.
  2. โ€‹\tan(45^\circ + 30^\circ) = \frac{\sqrt{3} + 1}{\sqrt{3} - 1} = 2 + \sqrt{3}โ€‹.
  3. โ€‹2\cos 45^\circ\sin 30^\circ = \frac{1}{\sqrt{2}}โ€‹.
  4. โ€‹\tan(A + B) = \frac{3/4 + 1/7}{1 - 3/28} = \frac{25/28}{25/28} = 1โ€‹, so โ€‹A + B = 45^\circโ€‹.
  5. โ€‹-\sqrt{1^2 + 1^2} = -\sqrt{2}โ€‹.

Next chapter: Multiple and sub-multiple angles.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    If โ€‹\cos A = \tfrac{8}{17}โ€‹ and โ€‹\sin B = \tfrac{4}{5}โ€‹, where โ€‹Aโ€‹ and โ€‹Bโ€‹ are acute, what is โ€‹\cos(A + B)โ€‹?
  2. Question 2 of 3
    Consider the following statements, true for all angles โ€‹Aโ€‹ and โ€‹Bโ€‹: I. โ€‹\sin(A + B)\sin(A - B) = \sin^2 A - \sin^2 Bโ€‹. II. โ€‹\cos(A + B) + \cos(A - B) = 2\sin A\sin Bโ€‹. Which of the statements given above is/are correct?
  3. Question 3 of 3
    What is โ€‹\dfrac{\cos 5x - \cos 3x}{\sin 5x + \sin 3x}โ€‹ equal to?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.