Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Miscellaneous · Q19: cos⁡(A+B)\cos(A+B) by differentiating the formula for sin⁡(A+B)\sin(A+B)

Miscellaneous ExerciseDerivatives of composite functions · Miscellaneous Exercise
The question

Using the fact that sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A + B) = \sin A\cos B + \cos A\sin B and the differentiation, obtain the sum formula for cosines.

Exam answer

Fix BB⁠. Then for every real xx⁠,

sin⁡(x+B)=sin⁡xcos⁡B+cos⁡xsin⁡B\begin{aligned} \sin(x + B) &= \sin x\cos B \\ &\quad + \cos x\sin B \end{aligned}

Differentiating both sides w.r.t. xx (BB constant),

cos⁡(x+B)⋅1=cos⁡xcos⁡B+(−sin⁡x)sin⁡B\begin{aligned} \cos(x + B)\cdot 1 &= \cos x\cos B \\ &\quad + (-\sin x)\sin B \end{aligned}

Putting x=Ax = A (BB arbitrary), cos⁡(A+B)\cos(A + B) =cos⁡Acos⁡B−sin⁡Asin⁡B= \cos A\cos B - \sin A\sin B⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

An identity that holds for every value of a variable says that two expressions are the same function of that variable. The same function has the same derivative. So we let AA vary (call it xx⁠), keep BB fixed, and differentiate both sides of the sine formula with respect to xx⁠. Every sine turns into a cosine and every cosine into minus a sine, and out comes the cosine formula.

Given, to find, and the plan
Given
sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A + B) = \sin A\cos B + \cos A\sin B for all real AA⁠, BB⁠.
To find
The formula for cos⁡(A+B)\cos(A + B)⁠.
Plan
(1) Fix BB and write the identity as one in the variable xx⁠. (2) Explain why both sides may be differentiated. (3) Differentiate the left side (chain rule). (4) Differentiate the right side. (5) Equate and put x=Ax = A⁠.

Basics you need

1Derivatives of sine and cosine

ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x and ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x (Table 5.3). Basics: derivative rules

2Chain rule

ddxsin⁡(u)=cos⁡(u)⋅dudx\frac{d}{dx}\sin(u) = \cos(u)\cdot\frac{du}{dx} (Theorem 4). Lesson: chain rule

3Constants and sums

A constant factor stays in front, and the derivative of a sum is the sum of the derivatives (Section 5.3, rules (1) and (2)). Basics: derivative rules

4Equal functions have equal derivatives

If F(x)=G(x)F(x) = G(x) for every xx⁠, then FF and GG are one and the same function, so F′(x)=G′(x)F'(x) = G'(x) for every xx⁠.

Solution

  1. Fix BB and let AA vary

    Choose any real number BB and keep it fixed. Writing xx in place of AA⁠, the given fact says that for every real xx⁠,

    sin⁡(x+B)=sin⁡xcos⁡B+cos⁡xsin⁡B.\sin(x + B) = \sin x\cos B + \cos x\sin B.
    To use differentiation we need a variable. The formula is true for all AA⁠, so we may treat AA as a variable xx while BB plays the role of a constant. Then cos⁡B\cos B and sin⁡B\sin B are fixed numbers.
    The sine sum formula (Class XI, Trigonometric Functions). Basics: trigonometric identities
  2. Why we may differentiate both sides

    Let F(x)=sin⁡(x+B)F(x) = \sin(x + B) and G(x)=sin⁡xcos⁡B+cos⁡xsin⁡BG(x) = \sin x\cos B + \cos x\sin B⁠. Step 1 says F(x)=G(x)F(x) = G(x) for every real xx⁠, so FF and GG are the same function. Hence

    F′(x)=G′(x)for every real x.F'(x) = G'(x) \quad \text{for every real } x.
    Differentiating "both sides of an equation" is only safe when the equation is an identity in the variable, as here. (By contrast, x2=4x^2 = 4 holds only at x=±2x = \pm 2⁠, and differentiating it to get 2x=02x = 0 would be nonsense.)
    Basic 4.
  3. Differentiate the left side with the chain rule

    Outer function sin⁡u\sin u⁠, inner function u=x+Bu = x + B with dudx=1\frac{du}{dx} = 1 (since BB is constant):

    F′(x)=cos⁡(x+B)⋅1=cos⁡(x+B).F'(x) = \cos(x + B)\cdot 1 = \cos(x + B).
    The chain rule multiplies the outer derivative cos⁡u\cos u by the inner derivative. Here the inner derivative is 1, so the result is simply cos⁡(x+B)\cos(x+B)⁠.
    Chain rule, Theorem 4, Section 5.3.1 (Basic 2). Lesson: chain rule
  4. Differentiate the right side term by term

    G′(x)=cos⁡B⋅ddxsin⁡x+sin⁡B⋅ddxcos⁡x=cos⁡Bcos⁡x+sin⁡B (−sin⁡x)=cos⁡xcos⁡B−sin⁡xsin⁡B.\begin{aligned} G'(x) &= \cos B\cdot\frac{d}{dx}\sin x \\ &\quad + \sin B\cdot\frac{d}{dx}\cos x \\ &= \cos B\cos x + \sin B\,(-\sin x) \\ &= \cos x\cos B - \sin x\sin B. \end{aligned}
    cos⁡B\cos B and sin⁡B\sin B are constants, so they stay as factors. The derivative of sin⁡x\sin x is cos⁡x\cos x and the derivative of cos⁡x\cos x is −sin⁡x-\sin x⁠: that minus sign is the minus sign in the cosine formula.
    Sum and constant multiple rules, Section 5.3; Table 5.3 (Basics 1, 3). Basics: derivative rules
  5. Equate, and put x=Ax = A

    By Step 2, F′(x)=G′(x)F'(x) = G'(x)⁠, so for every real xx

    cos⁡(x+B)=cos⁡xcos⁡B−sin⁡xsin⁡B.\cos(x + B) = \cos x\cos B - \sin x\sin B.

    Taking x=Ax = A⁠, and recalling that BB was arbitrary,

    cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A + B) = \cos A\cos B - \sin A\sin B

    for all real AA and BB⁠.

    The identity of Step 5 holds for every xx and for whichever BB we fixed in Step 1, so it holds for all pairs AA⁠, BB⁠. That is the sum formula for cosines.
Result cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A + B) = \cos A\cos B - \sin A\sin B

for all real AA and BB⁠, obtained by differentiating sin⁡(x+B)=sin⁡xcos⁡B+cos⁡xsin⁡B\sin(x + B) = \sin x\cos B + \cos x\sin B with respect to xx and putting x=Ax = A⁠.

Check it with numbers

Take A=0.7A = 0.7⁠, B=1.1B = 1.1⁠: cos⁡(1.8)≈−0.2272021\cos(1.8) \approx -0.2272021⁠. Right side: cos⁡0.7cos⁡1.1≈0.3469294\cos 0.7\cos 1.1 \approx 0.3469294 and sin⁡0.7sin⁡1.1≈0.5741315\sin 0.7\sin 1.1 \approx 0.5741315⁠, difference ≈−0.2272021\approx -0.2272021⁠. ✓

Differentiating with respect to BB instead (fixing AA⁠) gives the same formula, a second check: cos⁡(A+B)=−sin⁡Asin⁡B+cos⁡Acos⁡B\cos(A + B) = -\sin A\sin B + \cos A\cos B⁠. ✓

Common mistakes
  1. Differentiating cos⁡B\cos B and sin⁡B\sin B as if BB depended on xx⁠. They are constants.
  2. Losing the minus sign from ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠; it becomes the minus in the cosine formula.
  3. Differentiating an equation that is not an identity. This method works only because the sine formula holds for all values of the variable.
What to take away
  1. Differentiating an identity in xx gives another identity in xx⁠. It is a quick way to recover a formula you half remember.
  2. Treat every symbol other than the variable of differentiation as a constant.
  3. A remark on logic: in the Class XI textbook the cosine sum formula is proved first (geometrically) and the sine formula is derived from it, so this exercise shows that the two formulas are consistent with calculus rather than giving a first proof.

Every fact used, and where it comes from

FactUsed inSource
sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A+B) = \sin A\cos B + \cos A\sin BStep 1Given; Class XI, Trigonometric Functions
Equal functions have equal derivativesSteps 2, 5Definition of the derivative
Chain ruleStep 3Theorem 4, Section 5.3.1 (Lesson: chain rule)
ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠, ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠; sum and constant multiple rulesStep 4Table 5.3 and rules (1), (2), Section 5.3
Numerical valuesCheckRecomputed in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →