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

Exercise 5.2 · Q3: Differentiate sin⁡(ax+b)\sin(ax+b)

Exercise 5.2Chain rule · Section 5.3.1
The question

Differentiate the function with respect to xx⁠:

sin⁡(ax+b)\sin\left(ax + b\right)
Exam answer

Let y=sin⁡(ax+b)y = \sin(ax + b)⁠. Put t=ax+bt = ax + b⁠, so y=sin⁡ty = \sin t⁠.

dydt=cos⁡t,dtdx=a\frac{dy}{dt} = \cos t, \qquad \frac{dt}{dx} = a

By the chain rule,

dydx=dydt⋅dtdx=cos⁡t⋅a\begin{aligned} \frac{dy}{dx} &= \frac{dy}{dt}\cdot\frac{dt}{dx} \\ &= \cos t\cdot a \end{aligned}

∴ dydx=acos⁡(ax+b)\therefore\ \dfrac{dy}{dx} = a\cos(ax + b)⁠.

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

The one idea this problem is built on

Sine is applied to the linear expression ax+bax+b⁠. By the chain rule, the derivative is cos⁡(ax+b)\cos(ax+b) times the rate at which ax+bax+b changes, and a straight line ax+bax+b changes at the constant rate aa (its slope). So the answer is acos⁡(ax+b)a\cos(ax+b)⁠: the constant aa stretches the rate, and the shift bb has no effect on it.

Given, to find, and the plan
Given
y=sin⁡(ax+b)y = \sin(ax+b)⁠, where aa and bb are constants (fixed real numbers). The function is defined for every real xx⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Inner function t=ax+bt = ax+b⁠, outer function y=sin⁡ty = \sin t⁠. Differentiate each, multiply, substitute back.

Basics you need

1Constants versus the variable

The letters aa and bb stand for fixed numbers; only xx varies. So ddx(ax)=a\frac{d}{dx}(ax) = a (a constant multiple of xx⁠) and ddx(b)=0\frac{d}{dx}(b) = 0⁠. Basics: derivative rules

2The chain rule

dydx=dydt⋅dtdx\dfrac{dy}{dx} = \dfrac{dy}{dt}\cdot\dfrac{dt}{dx} (Theorem 4, Section 5.3.1). Lesson: the chain rule

3Slope of a straight line

The line t=ax+bt = ax + b has slope aa everywhere: when xx increases by 1, tt increases by aa⁠. That slope is exactly dtdx\frac{dt}{dx}⁠. Basics: slope at a point

Solution

  1. Name the inner and the outer function

    t=ax+b(inner),y=sin⁡t(outer).\begin{aligned} t &= ax + b &&(\text{inner}), \\ y &= \sin t &&(\text{outer}). \end{aligned}
    Sine is applied to ax+bax+b⁠, not to xx⁠, so the plain rule (sin⁡x)′=cos⁡x(\sin x)' = \cos x does not apply directly. Splitting off the inner expression lets us use it on the outer link.
    A composite y=v(u(x))y = v(u(x)) is differentiated link by link. Basics: composite functions
  2. Differentiate each link

    dydt=ddt(sin⁡t)=cos⁡t,dtdx=ddx(ax)+ddx(b)=a+0=a.\begin{aligned} \frac{dy}{dt} &= \frac{d}{dt}(\sin t) = \cos t, \\ \frac{dt}{dx} &= \frac{d}{dx}(ax) + \frac{d}{dx}(b) \\ &= a + 0 = a. \end{aligned}
    For the inner link, axax is the constant aa times xx⁠, whose derivative is a⋅1=aa\cdot 1 = a⁠; and bb is a constant, whose derivative is 00⁠. Both derivatives exist for every real number.
    Table 5.3: (sin⁡t)′=cos⁡t(\sin t)' = \cos t and (x)′=1(x)' = 1⁠. A constant factor stays in front: (c u)′=c u′(c\,u)' = c\,u' (a special case of the product rule, since c′=0c' = 0⁠). Basics: derivative rules
  3. Multiply (chain rule) and return to xx

    dydx=dydt⋅dtdx=cos⁡t⋅a=acos⁡(ax+b).\begin{aligned} \frac{dy}{dx} &= \frac{dy}{dt}\cdot\frac{dt}{dx} \\ &= \cos t\cdot a \\ &= a\cos(ax+b). \end{aligned}
    The constant aa comes out in front because the inside runs aa times as fast as xx⁠. The constant bb only shifts the graph sideways, which does not change any slope, so it survives only inside the cosine.
    Chain rule, Theorem 4, Section 5.3.1. Lesson: the chain rule
  4. Sense-check special cases

    If a=1a = 1 and b=0b = 0⁠, the function is sin⁡x\sin x and the formula gives cos⁡x\cos x⁠, the known derivative. If a=0a = 0⁠, the function is the constant sin⁡b\sin b and the formula gives 0⋅cos⁡b=00\cdot\cos b = 0⁠, as it must for a constant.

    A general formula with letters must reduce to known results when the letters take simple values. Both special cases agree, which guards against a misplaced factor such as bcos⁡(ax+b)b\cos(ax+b) or cos⁡(a)\cos(a)⁠.
Result

For every real xx (and any constants aa⁠, bb⁠),

ddxsin⁡(ax+b)=acos⁡(ax+b).\frac{d}{dx}\sin(ax+b) = a\cos(ax+b).

(Textbook answer: acos⁡(ax+b)a\cos(ax+b)⁠.)

Check it with numbers

Take a=2a = 2⁠, b=1b = 1⁠, x=0.5x = 0.5⁠, so ax+b=2ax + b = 2⁠. The formula gives 2cos⁡22\cos 2⁠, and cos⁡2≈−0.4161468\cos 2 \approx -0.4161468⁠, so the slope is about −0.8322937-0.8322937⁠. A difference quotient of sin⁡(2x+1)\sin(2x+1) with h=0.0001h = 0.0001 on each side of 0.50.5 gives −0.83229-0.83229⁠. They agree.

Common mistakes
  1. Forgetting the factor aa⁠. cos⁡(ax+b)\cos(ax+b) alone is the derivative with respect to t=ax+bt = ax+b⁠, not with respect to xx⁠.
  2. Treating bb as a factor. bb is added inside, so it differentiates to 00 and never appears as a multiplier.
  3. Differentiating with respect to aa or bb⁠. They are constants here; only xx is the variable.
What to take away
  1. For any differentiable ff⁠: ddxf(ax+b)=a f′(ax+b)\frac{d}{dx}f(ax+b) = a\,f'(ax+b)⁠. A linear inside contributes just its slope aa⁠.
  2. So (cos⁡(ax+b))′=−asin⁡(ax+b)(\cos(ax+b))' = -a\sin(ax+b) and (tan⁡(ax+b))′=asec⁡2(ax+b)(\tan(ax+b))' = a\sec^2(ax+b) follow the same way. Question 5 uses the first of these.

Every fact used, and where it comes from

FactUsed inSource
(sin⁡t)′=cos⁡t(\sin t)' = \cos t⁠; (x)′=1(x)' = 1⁠; constant has derivative 0Step 2Table 5.3 and rule (1), Section 5.3
(c u)′=c u′(c\,u)' = c\,u'Step 2Product rule (2), Section 5.3, with c′=0c' = 0
Chain ruleStep 3Theorem 4, Section 5.3.1 (Lesson: the chain rule)
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 →