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

Miscellaneous · Q16: Implicit dydx\frac{dy}{dx} for cos⁡y=xcos⁡(a+y)\cos y=x\cos(a+y)⁠: cos⁡2(a+y)sin⁡a\frac{\cos^2(a+y)}{\sin a}

Miscellaneous ExerciseDerivatives of implicit functions · Miscellaneous Exercise
The question

If cos⁡y=xcos⁡(a+y)\cos y = x\cos(a + y)⁠, with cos⁡a≠±1\cos a \ne \pm 1⁠, prove that dydx=cos⁡2(a+y)sin⁡a\dfrac{dy}{dx} = \dfrac{\cos^2(a + y)}{\sin a}⁠.

Exam answer

As cos⁡a≠±1\cos a \ne \pm 1⁠, sin⁡a≠0\sin a \ne 0⁠, and cos⁡(a+y)≠0\cos(a + y) \ne 0 on the curve. So

x=cos⁡ycos⁡(a+y)x = \frac{\cos y}{\cos(a + y)}

Differentiating w.r.t. yy by the quotient rule,

dxdy=1cos⁡2(a+y)×[cos⁡(a+y)(−sin⁡y)+cos⁡ysin⁡(a+y)]=sin⁡(a+y−y)cos⁡2(a+y)=sin⁡acos⁡2(a+y)\begin{aligned} \frac{dx}{dy} &= \frac{1}{\cos^2(a + y)}\times \\ &\quad\big[\cos(a + y)(-\sin y) \\ &\quad + \cos y\sin(a + y)\big] \\ &= \frac{\sin(a + y - y)}{\cos^2(a + y)} \\ &= \frac{\sin a}{\cos^2(a + y)} \end{aligned}

using sin⁡Acos⁡B−cos⁡Asin⁡B=sin⁡(A−B)\sin A\cos B - \cos A\sin B = \sin(A - B)⁠.

∴ dydx=1dx/dy=cos⁡2(a+y)sin⁡a\therefore\ \dfrac{dy}{dx} = \dfrac{1}{dx/dy} = \dfrac{\cos^2(a + y)}{\sin a}⁠. Hence proved.

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

The one idea this problem is built on

Differentiate implicitly, then replace xx by cos⁡ycos⁡(a+y)\frac{\cos y}{\cos(a+y)} (from the equation itself). The messy combination that appears is cos⁡ysin⁡(a+y)−sin⁡ycos⁡(a+y)\cos y\sin(a+y) - \sin y\cos(a+y)⁠, which is the expansion of sin⁡((a+y)−y)=sin⁡a\sin\big((a + y) - y\big) = \sin a⁠. The condition cos⁡a≠±1\cos a \ne \pm1 is exactly what keeps every denominator non-zero.

Given, to show, and the plan
Given
cos⁡y=xcos⁡(a+y)\cos y = x\cos(a + y)⁠, where aa is a constant with cos⁡a≠±1\cos a \ne \pm 1⁠.
To show
dydx=cos⁡2(a+y)sin⁡a\dfrac{dy}{dx} = \dfrac{\cos^2(a+y)}{\sin a}⁠.
Plan
(1) Show that sin⁡a≠0\sin a \ne 0 and cos⁡(a+y)≠0\cos(a + y) \ne 0 at every point of the curve, and solve for xx⁠. (2) Differentiate implicitly. (3) Collect dydx\frac{dy}{dx}⁠. (4) Simplify with the subtraction formula. (5) Confirm through dxdy\frac{dx}{dy}⁠.

Basics you need

1Implicit differentiation

Differentiate both sides with respect to xx⁠, treating yy as a function of xx⁠; for example ddxcos⁡y=−sin⁡y dydx\frac{d}{dx}\cos y = -\sin y\,\frac{dy}{dx} by the chain rule (Section 5.3.2). Lesson: implicit differentiation

2Product rule

(uv)′=u′v+uv′(uv)' = u'v + uv' (Section 5.3, rule (2)). Basics: derivative rules

3Sum and difference formulas

sin⁡(A−B)=sin⁡Acos⁡B−cos⁡Asin⁡B\sin(A - B) = \sin A\cos B - \cos A\sin B and cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A + B) = \cos A\cos B - \sin A\sin B (Class XI). Basics: trigonometric identities

4sin⁡2a+cos⁡2a=1\sin^2 a + \cos^2 a = 1

So sin⁡a=0\sin a = 0 exactly when cos⁡a=±1\cos a = \pm 1⁠.

Solution

  1. What the condition cos⁡a≠±1\cos a \ne \pm1 guarantees

    (i) sin⁡a≠0\sin a \ne 0⁠. Since sin⁡2a=1−cos⁡2a\sin^2 a = 1 - \cos^2 a⁠, sin⁡a=0\sin a = 0 would force cos⁡a=±1\cos a = \pm 1⁠, which is excluded.

    (ii) cos⁡(a+y)≠0\cos(a + y) \ne 0 at every point of the curve. Suppose cos⁡(a+y)=0\cos(a + y) = 0 at some point. The equation then gives cos⁡y=x⋅0=0\cos y = x\cdot 0 = 0⁠, so sin⁡y=±1\sin y = \pm 1⁠. Expanding,

    cos⁡(a+y)=cos⁡acos⁡y−sin⁡asin⁡y=0−(±sin⁡a)=∓sin⁡a≠0,\begin{aligned} \cos(a + y) &= \cos a\cos y - \sin a\sin y \\ &= 0 - (\pm\sin a) = \mp\sin a \ne 0, \end{aligned}

    a contradiction. So on the curve we may divide by cos⁡(a+y)\cos(a + y)⁠:

    x=cos⁡ycos⁡(a+y).x = \frac{\cos y}{\cos(a + y)}.
    The answer has sin⁡a\sin a in a denominator, and the working will divide by cos⁡(a+y)\cos(a + y)⁠. Part (i) shows the first is allowed; part (ii) shows the second is automatic once sin⁡a≠0\sin a \ne 0⁠. This is why the question insists on cos⁡a≠±1\cos a \ne \pm 1⁠. If cos⁡a=1\cos a = 1 (say a=0a = 0⁠), the equation becomes cos⁡y=xcos⁡y\cos y = x\cos y⁠, which is not a curve with a slope at all (it is the line x=1x = 1 together with the horizontal lines where cos⁡y=0\cos y = 0⁠).
    cos⁡(A+B)\cos(A + B) formula (Basic 3); cos⁡y=0⇒sin⁡y=±1\cos y = 0 \Rightarrow \sin y = \pm 1 (Basic 4). Basics: trigonometric identities
  2. Differentiate both sides with respect to xx

    Left side, chain rule with outer cos⁡\cos and inner yy⁠: ddxcos⁡y=−sin⁡y dydx\frac{d}{dx}\cos y = -\sin y\,\frac{dy}{dx}⁠.

    Right side, product rule on x⋅cos⁡(a+y)x\cdot\cos(a + y)⁠, with the chain rule for cos⁡(a+y)\cos(a+y) (inner a+ya + y⁠, whose derivative is dydx\frac{dy}{dx} since aa is constant):

    ddx[xcos⁡(a+y)]=1⋅cos⁡(a+y)−xsin⁡(a+y)dydx.\begin{aligned} \frac{d}{dx}\big[x\cos(a+y)\big] &= 1\cdot\cos(a+y) \\ &\quad - x\sin(a+y)\frac{dy}{dx}. \end{aligned}

    So

    −sin⁡y dydx=cos⁡(a+y)−xsin⁡(a+y) dydx.-\sin y\,\frac{dy}{dx} = \cos(a+y) - x\sin(a+y)\,\frac{dy}{dx}.
    Every term containing yy picks up a factor dydx\frac{dy}{dx}⁠, because yy depends on xx⁠. The xx in front is differentiated normally (derivative 1). Implicit differentiation assumes yy is a differentiable function of xx⁠; Step 5 shows why that is true here.
    Chain rule, Theorem 4; product rule, rule (2) of Section 5.3; implicit differentiation, Section 5.3.2. Lesson: implicit differentiation
  3. Collect the dydx\frac{dy}{dx} terms

    Move xsin⁡(a+y)dydxx\sin(a+y)\frac{dy}{dx} to the left:

    dydx[xsin⁡(a+y)−sin⁡y]=cos⁡(a+y).\frac{dy}{dx}\big[x\sin(a+y) - \sin y\big] = \cos(a+y).
    This is the standard move in implicit differentiation: all terms with dydx\frac{dy}{dx} on one side, factor it out, everything else on the other side. Before dividing we need the bracket to be non-zero; the next step computes it exactly.
    Solving a linear equation for the unknown dydx\frac{dy}{dx}⁠. Basics: solving for dy/dx
  4. Simplify the bracket with the subtraction formula

    Substitute x=cos⁡ycos⁡(a+y)x = \frac{\cos y}{\cos(a+y)} from Step 1:

    xsin⁡(a+y)−sin⁡y=cos⁡ysin⁡(a+y)−sin⁡ycos⁡(a+y)cos⁡(a+y)=sin⁡((a+y)−y)cos⁡(a+y)=sin⁡acos⁡(a+y).\begin{aligned} & x\sin(a+y) - \sin y \\ &= \frac{\cos y\sin(a+y) - \sin y\cos(a+y)}{\cos(a+y)} \\ &= \frac{\sin\big((a+y) - y\big)}{\cos(a+y)} = \frac{\sin a}{\cos(a+y)}. \end{aligned}

    This is non-zero (Step 1), so dividing Step 3 by it:

    dydx=cos⁡(a+y)⋅cos⁡(a+y)sin⁡a=cos⁡2(a+y)sin⁡a.\frac{dy}{dx} = \cos(a+y)\cdot\frac{\cos(a+y)}{\sin a} = \frac{\cos^2(a+y)}{\sin a}.
    The numerator sin⁡Acos⁡B−cos⁡Asin⁡B\sin A\cos B - \cos A\sin B with A=a+yA = a + y⁠, B=yB = y is sin⁡(A−B)\sin(A - B)⁠, and A−B=aA - B = a⁠: the variable yy cancels inside the sine. That is the whole trick of the question.
    sin⁡(A−B)=sin⁡Acos⁡B−cos⁡Asin⁡B\sin(A - B) = \sin A\cos B - \cos A\sin B (Basic 3). Basics: trigonometric identities
  5. Confirm through dxdy\frac{dx}{dy}

    From Step 1, xx is an explicit function of yy⁠. By the quotient rule,

    dxdy=−sin⁡ycos⁡(a+y)+cos⁡ysin⁡(a+y)cos⁡2(a+y)=sin⁡acos⁡2(a+y).\begin{aligned} \frac{dx}{dy} &= \frac{-\sin y\cos(a+y) + \cos y\sin(a+y)}{\cos^2(a+y)} \\ &= \frac{\sin a}{\cos^2(a+y)}. \end{aligned}

    This is never 0. Treating yy as the parameter (x=x(y)x = x(y)⁠, y=yy = y⁠) the formula of Section 5.6 gives

    dydx=dy/dydx/dy=1sin⁡a/cos⁡2(a+y)=cos⁡2(a+y)sin⁡a. ✓\begin{aligned} \frac{dy}{dx} &= \frac{dy/dy}{dx/dy} = \frac{1}{\sin a/\cos^2(a+y)} \\ &= \frac{\cos^2(a+y)}{\sin a}. \ ✓ \end{aligned}
    The same subtraction formula appears, and the answer matches. This route also shows that yy really is a differentiable function of xx⁠: dxdy\frac{dx}{dy} keeps one sign (that of sin⁡a\sin a⁠) on each interval where cos⁡(a+y)≠0\cos(a + y) \ne 0⁠, so xx is strictly increasing or strictly decreasing in yy there (the sign test for increasing and decreasing functions, Chapter 6, used here without proof), and each xx corresponds to exactly one yy on that piece of the curve.
    Quotient rule (rule (3), Section 5.3); dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt} with dxdt≠0\frac{dx}{dt} \ne 0 (Section 5.6). Lesson: parametric differentiation
Result

With cos⁡a≠±1\cos a \ne \pm 1 (so sin⁡a≠0\sin a \ne 0⁠, and cos⁡(a+y)≠0\cos(a+y) \ne 0 on the curve),

dydx=cos⁡2(a+y)sin⁡a,\frac{dy}{dx} = \frac{\cos^2(a + y)}{\sin a},

as was to be proved.

Check it with numbers

Take a=π3a = \frac{\pi}{3}⁠. The point y=0y = 0⁠, x=cos⁡0cos⁡(π/3)=2x = \frac{\cos 0}{\cos(\pi/3)} = 2 is on the curve (cos⁡0=1=2⋅12\cos 0 = 1 = 2\cdot\frac12⁠). The formula gives

dydx=cos⁡2(π/3)sin⁡(π/3)=1/43/2=123≈0.2886751.\begin{aligned} \frac{dy}{dx} &= \frac{\cos^2(\pi/3)}{\sin(\pi/3)} = \frac{1/4}{\sqrt3/2} \\ &= \frac{1}{2\sqrt3} \approx 0.2886751. \end{aligned}

Numerically, with x(y)=cos⁡ycos⁡(π/3+y)x(y) = \frac{\cos y}{\cos(\pi/3 + y)} and h=0.0001h = 0.0001⁠: x(h)−x(−h)2h≈3.4641017\frac{x(h) - x(-h)}{2h} \approx 3.4641017⁠, which matches the exact dxdy=sin⁡(π/3)cos⁡2(π/3)=23≈3.4641016\frac{dx}{dy} = \frac{\sin(\pi/3)}{\cos^2(\pi/3)} = 2\sqrt3 \approx 3.4641016 of Step 5 to within the step size. Its reciprocal is 123≈0.2886751\frac{1}{2\sqrt3} \approx 0.2886751⁠. ✓

Common mistakes
  1. Forgetting dydx\frac{dy}{dx} when differentiating cos⁡(a+y)\cos(a + y)⁠: its inner function is a+ya + y⁠, not xx⁠.
  2. Treating aa as a variable. aa is a constant, so ddx(a+y)=dydx\frac{d}{dx}(a + y) = \frac{dy}{dx}⁠.
  3. Ignoring the condition. Without cos⁡a≠±1\cos a \ne \pm 1 the final division by sin⁡a\sin a is illegal.
What to take away
  1. After implicit differentiation, use the original equation to substitute back; it often unlocks a simplification.
  2. Recognise sin⁡Acos⁡B−cos⁡Asin⁡B\sin A\cos B - \cos A\sin B as sin⁡(A−B)\sin(A - B)⁠.
  3. Conditions in a question (here cos⁡a≠±1\cos a \ne \pm1⁠) usually exist to make a division legal; find where.

Every fact used, and where it comes from

FactUsed inSource
sin⁡2a+cos⁡2a=1\sin^2 a + \cos^2 a = 1⁠; cos⁡(A+B)\cos(A+B) and sin⁡(A−B)\sin(A-B) formulasSteps 1, 4, 5Class XI, Trigonometric Functions
Chain ruleStep 2Theorem 4, Section 5.3.1 (Lesson: chain rule)
Product and quotient rulesSteps 2, 5Rules (2) and (3), Section 5.3
Implicit differentiationSteps 2, 3Section 5.3.2 (Lesson: implicit differentiation)
dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt}Step 5Section 5.6
A derivative of one sign on an interval means strictly increasing or decreasingStep 5Chapter 6, Application of Derivatives (not proved in this chapter)
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 →