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

Exercise 5.2 · Q5: Differentiate sin⁡(ax+b)cos⁡(cx+d)\frac{\sin(ax+b)}{\cos(cx+d)}

Exercise 5.2Quotient rule with the chain rule · Section 5.3.1
The question

Differentiate the function with respect to xx⁠:

sin⁡(ax+b)cos⁡(cx+d)\frac{\sin(ax+b)}{\cos(cx+d)}
Exam answer

Let

y=sin⁡(ax+b)cos⁡(cx+d)=sin⁡(ax+b)sec⁡(cx+d)\begin{aligned} y &= \frac{\sin(ax + b)}{\cos(cx + d)} \\ &= \sin(ax + b)\sec(cx + d) \end{aligned}

where cos⁡(cx+d)≠0\cos(cx + d) \ne 0⁠. By the chain rule,

ddx(sin⁡(ax+b))=acos⁡(ax+b)ddx(sec⁡(cx+d))=csec⁡(cx+d)tan⁡(cx+d)\begin{aligned} &\frac{d}{dx}(\sin(ax + b)) = a\cos(ax + b) \\ &\frac{d}{dx}(\sec(cx + d)) \\ &\quad= c\sec(cx + d)\tan(cx + d) \end{aligned}

By the product rule,

∴ dydx=acos⁡(ax+b)sec⁡(cx+d)+csin⁡(ax+b)⋅tan⁡(cx+d)sec⁡(cx+d)\begin{aligned} &\therefore\ \dfrac{dy}{dx} \\ &= a\cos(ax + b)\sec(cx + d) \\ &\quad + c\sin(ax + b) \\ &\qquad\cdot\tan(cx + d)\sec(cx + d) \end{aligned}

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

The one idea this problem is built on

The function is a quotient, so the outer structure calls for the quotient rule. But the top and the bottom are each a trigonometric function of a linear expression, so finding their derivatives needs the chain rule. Two rules work together: the chain rule supplies the pieces, the quotient rule assembles them. A final split of the fraction gives the textbook's form.

Given, to find, and the plan
Given
y=sin⁡(ax+b)cos⁡(cx+d)y = \dfrac{\sin(ax+b)}{\cos(cx+d)}⁠, with constants a,b,c,da, b, c, d⁠. It is defined wherever cos⁡(cx+d)≠0\cos(cx+d) \ne 0⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Name numerator uu and denominator vv⁠; find u′u' and v′v' by the chain rule; apply the quotient rule; split the result into two fractions and rewrite with sec⁡\sec and tan⁡\tan⁠. Cross-check with the product rule.

Basics you need

1Quotient rule

(uv)′=u′v−uv′v2\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2} wherever v≠0v \ne 0 (rule (3), Section 5.3). The order in the numerator matters: "derivative of the top times the bottom" comes first. Basics: derivative rules

2Linear inside

By the chain rule, ddxsin⁡(ax+b)=acos⁡(ax+b)\frac{d}{dx}\sin(ax+b) = a\cos(ax+b) (Question 3) and likewise ddxcos⁡(cx+d)=−csin⁡(cx+d)\frac{d}{dx}\cos(cx+d) = -c\sin(cx+d)⁠. Lesson: the chain rule · Exercise 5.2 Q3

3Secant and tangent

sec⁡θ=1cos⁡θ\sec\theta = \dfrac{1}{\cos\theta} and tan⁡θ=sin⁡θcos⁡θ\tan\theta = \dfrac{\sin\theta}{\cos\theta}⁠. Basics: trigonometric identities

Solution

  1. Name the numerator and the denominator

    u=sin⁡(ax+b),v=cos⁡(cx+d),y=uv.\begin{aligned} u &= \sin(ax+b), \qquad v = \cos(cx+d), \\ y &= \frac{u}{v}. \end{aligned}

    We work at points where v=cos⁡(cx+d)≠0v = \cos(cx+d) \ne 0⁠, which is exactly where yy is defined.

    The last operation in computing yy is a division, so the quotient rule is the outermost rule. Naming the two parts keeps the formula u′v−uv′v2\frac{u'v-uv'}{v^2} readable.
    The quotient rule needs the denominator to be non-zero. Basics: derivative rules
  2. Differentiate the numerator (chain rule)

    Inner t=ax+bt = ax + b with dtdx=a\frac{dt}{dx} = a⁠; outer sin⁡t\sin t with derivative cos⁡t\cos t⁠. So

    u′=cos⁡(ax+b)⋅a=acos⁡(ax+b).u' = \cos(ax+b)\cdot a = a\cos(ax+b).
    This is exactly Question 3. The constant aa is the rate at which the inside ax+bax+b changes.
    Chain rule, Theorem 4, Section 5.3.1; (sin⁡t)′=cos⁡t(\sin t)' = \cos t from Table 5.3. Exercise 5.2 Q3
  3. Differentiate the denominator (chain rule)

    Inner s=cx+ds = cx + d with dsdx=c\frac{ds}{dx} = c⁠; outer cos⁡s\cos s with derivative −sin⁡s-\sin s⁠. So

    v′=−sin⁡(cx+d)⋅c=−csin⁡(cx+d).v' = -\sin(cx+d)\cdot c = -c\sin(cx+d).
    Same pattern as the numerator, with cosine in place of sine. The minus sign comes from (cos⁡s)′=−sin⁡s(\cos s)' = -\sin s and must be carried into the next step.
    Table 5.3: (cos⁡s)′=−sin⁡s(\cos s)' = -\sin s⁠. Lesson: the chain rule
  4. Apply the quotient rule

    dydx=u′v−uv′v2=acos⁡(ax+b)cos⁡(cx+d)cos⁡2(cx+d)−sin⁡(ax+b)⋅(−csin⁡(cx+d))cos⁡2(cx+d).\begin{aligned} \frac{dy}{dx} &= \frac{u'v - uv'}{v^2} \\ &= \frac{a\cos(ax+b)\cos(cx+d)}{\cos^2(cx+d)} \\ &\quad - \frac{\sin(ax+b)\cdot\left(-c\sin(cx+d)\right)}{\cos^2(cx+d)}. \end{aligned}

    The two minus signs in the second term multiply to a plus:

    dydx=1cos⁡2(cx+d)[ acos⁡(ax+b)cos⁡(cx+d)+csin⁡(ax+b)sin⁡(cx+d)].\begin{aligned} \frac{dy}{dx} = \frac{1}{\cos^2(cx+d)}\Big[\,&a\cos(ax+b)\cos(cx+d) \\ &+ c\sin(ax+b)\sin(cx+d)\Big]. \end{aligned}
    We wrote the quotient rule's numerator over the common denominator as two separate fractions, so that the sign of each piece is visible. The subtraction in u′v−uv′u'v - uv' meets the minus sign inside v′v'⁠, and −(−c)=+c-(-c) = +c⁠.
    Quotient rule (3), Section 5.3, valid since cos⁡(cx+d)≠0\cos(cx+d) \ne 0⁠. Basics: derivative rules
  5. Turn it into the textbook's form

    Split the fraction into two and simplify each part:

    dydx=acos⁡(ax+b)cos⁡(cx+d)+csin⁡(ax+b)⋅sin⁡(cx+d)cos⁡2(cx+d)=acos⁡(ax+b)sec⁡(cx+d)+csin⁡(ax+b)tan⁡(cx+d)sec⁡(cx+d).\begin{aligned} \frac{dy}{dx} &= \frac{a\cos(ax+b)}{\cos(cx+d)} \\ &\quad + c\sin(ax+b)\cdot\frac{\sin(cx+d)}{\cos^2(cx+d)} \\ &= a\cos(ax+b)\sec(cx+d) \\ &\quad + c\sin(ax+b)\tan(cx+d)\sec(cx+d). \end{aligned}

    In the first fraction one factor cos⁡(cx+d)\cos(cx+d) cancels (allowed because it is not zero), leaving 1cos⁡(cx+d)=sec⁡(cx+d)\frac{1}{\cos(cx+d)} = \sec(cx+d)⁠. In the second we split the fraction as

    sin⁡(cx+d)cos⁡2(cx+d)=sin⁡(cx+d)cos⁡(cx+d)⋅1cos⁡(cx+d),\frac{\sin(cx+d)}{\cos^2(cx+d)} = \frac{\sin(cx+d)}{\cos(cx+d)}\cdot\frac{1}{\cos(cx+d)},

    which is tan⁡(cx+d)sec⁡(cx+d)\tan(cx+d)\sec(cx+d)⁠.

    Both forms of the derivative are correct. The textbook's answer key prints the sec/tan form, so we convert ours into it term by term rather than leave the reader to wonder whether the two agree.
    sec⁡θ=1cos⁡θ\sec\theta = \frac{1}{\cos\theta}⁠, tan⁡θ=sin⁡θcos⁡θ\tan\theta = \frac{\sin\theta}{\cos\theta}⁠. Basics: trigonometric identities
  6. Cross-check with the product rule

    Since 1cos⁡(cx+d)=sec⁡(cx+d)\frac{1}{\cos(cx+d)} = \sec(cx+d)⁠, we can also write y=sin⁡(ax+b)⋅sec⁡(cx+d)y = \sin(ax+b)\cdot\sec(cx+d)⁠. The product rule, with (sec⁡s)′=sec⁡stan⁡s(\sec s)' = \sec s\tan s and the inner rate cc⁠, gives

    y′=acos⁡(ax+b)sec⁡(cx+d)+sin⁡(ax+b)⋅csec⁡(cx+d)tan⁡(cx+d),\begin{aligned} y' &= a\cos(ax+b)\sec(cx+d) \\ &\quad + \sin(ax+b)\cdot c\sec(cx+d)\tan(cx+d), \end{aligned}

    the same expression as Step 5.

    Getting the same answer by a different route is strong evidence that no sign or factor was lost. The derivative of sec⁡\sec used here is derived in Exercise 5.2 Q4, Step 3.
    Product rule (2), Section 5.3: (uw)′=u′w+uw′(uw)' = u'w + uw'⁠. Basics: derivative rules
Result

Wherever cos⁡(cx+d)≠0\cos(cx+d) \ne 0⁠,

dydx=acos⁡(ax+b)sec⁡(cx+d)+csin⁡(ax+b)tan⁡(cx+d)sec⁡(cx+d).\begin{aligned} \frac{dy}{dx} &= a\cos(ax+b)\sec(cx+d) \\ &\quad + c\sin(ax+b)\tan(cx+d)\sec(cx+d). \end{aligned}

Equivalently, the single fraction of Step 4. (Textbook answer: exactly this sec/tan form, acos⁡(ax+b)sec⁡(cx+d)a\cos(ax+b)\sec(cx+d) + csin⁡(ax+b)tan⁡(cx+d)sec⁡(cx+d)+\ c\sin(ax+b)\tan(cx+d)\sec(cx+d)⁠.)

Check it with numbers

Special case. With a=c=1a = c = 1 and b=d=0b = d = 0 the function is sin⁡xcos⁡x=tan⁡x\frac{\sin x}{\cos x} = \tan x⁠, whose derivative is sec⁡2x\sec^2 x⁠. The formula gives

cos⁡xsec⁡x+sin⁡xtan⁡xsec⁡x=1+tan⁡2x=sec⁡2x,\begin{aligned} &\cos x\sec x + \sin x\tan x\sec x \\ &\quad= 1 + \tan^2 x = \sec^2 x, \end{aligned}

the known derivative of tan⁡x\tan x⁠. ✓

A sample point. Take a=2a = 2⁠, b=1b = 1⁠, c=1c = 1⁠, d=0d = 0⁠, x=0.5x = 0.5⁠, so ax+b=2ax + b = 2 and cx+d=0.5cx + d = 0.5⁠. The two terms are

2cos⁡2sec⁡0.5≈−0.9483936,sin⁡2tan⁡0.5sec⁡0.5≈0.5660453,\begin{aligned} 2\cos 2\sec 0.5 &\approx -0.9483936, \\ \sin 2\tan 0.5\sec 0.5 &\approx 0.5660453, \end{aligned}

with sum −0.3823483-0.3823483⁠. A difference quotient of sin⁡(2x+1)cos⁡x\frac{\sin(2x+1)}{\cos x} with h=0.0001h = 0.0001 on each side of 0.50.5 gives −0.38235-0.38235⁠. They agree.

Common mistakes
  1. Reversing the quotient-rule numerator. uv′−u′vuv' - u'v gives the negative of the right answer. Remember "top-prime times bottom first".
  2. Dropping the inner constants. The derivatives of sin⁡(ax+b)\sin(ax+b) and cos⁡(cx+d)\cos(cx+d) carry the factors aa and cc⁠.
  3. Sign slip in the second term. −u v′-u\,v' is −sin⁡(ax+b)-\sin(ax+b) times −csin⁡(cx+d)-c\sin(cx+d)⁠, which is plus csin⁡(ax+b)sin⁡(cx+d)c\sin(ax+b)\sin(cx+d)⁠.
  4. Thinking the two forms disagree. The single-fraction form and the sec/tan form are equal; Step 5 is the algebra between them.
What to take away
  1. When rules combine, decide which operation is done last (here: the division). That rule is applied first, and the chain rule handles the pieces inside it.
  2. A quotient uv\frac{u}{v} can always be redone as a product u⋅1vu\cdot\frac1v⁠; this is a quick independent check.

Every fact used, and where it comes from

FactUsed inSource
Chain rule; (sin⁡t)′=cos⁡t(\sin t)' = \cos t⁠, (cos⁡s)′=−sin⁡s(\cos s)' = -\sin sSteps 2, 3Theorem 4, Section 5.3.1; Table 5.3 (Lesson: the chain rule)
Quotient ruleStep 4Rule (3), Section 5.3
sec⁡θ=1cos⁡θ\sec\theta = \frac{1}{\cos\theta}⁠, tan⁡θ=sin⁡θcos⁡θ\tan\theta = \frac{\sin\theta}{\cos\theta}Steps 5, 6Definitions (Class XI)
Product rule; (sec⁡s)′=sec⁡stan⁡s(\sec s)' = \sec s\tan sStep 6Rule (2), Section 5.3; derived in Exercise 5.2 Q4, Step 3
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 →