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

Exercise 5.3 · Q3: dydx\frac{dy}{dx} if ax+by2=cos⁡yax+by^2=\cos y

Exercise 5.3Implicit differentiation · Section 5.3.2
The question

Find dydx\dfrac{dy}{dx} in the following:

ax+by2=cos⁡yax + by^2 = \cos y
Exam answer

Differentiating both sides w.r.t. xx⁠,

a+2by dydx=−sin⁡y dydxa + 2by\,\frac{dy}{dx} = -\sin y\,\frac{dy}{dx} ⇒ (2by+sin⁡y)dydx=−a\Rightarrow\ (2by + \sin y)\frac{dy}{dx} = -a

∴ dydx=−a2by+sin⁡y\therefore\ \dfrac{dy}{dx} = -\dfrac{a}{2by + \sin y} (where 2by+sin⁡y≠02by + \sin y \ne 0⁠).

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

The one idea this problem is built on

Differentiate both sides with respect to xx⁠. Two terms are functions of yy⁠, namely y2y^2 and cos⁡y\cos y⁠, and each one produces a factor dydx\frac{dy}{dx} by the chain rule. Collect those terms, factor out dydx\frac{dy}{dx}⁠, and divide, noting where the divisor is zero.

Given, to find, and the plan
Given
ax+by2=cos⁡yax + by^2 = \cos y⁠, where aa and bb are constants and yy is a function of xx⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Differentiate each term; use the chain rule on y2y^2 and cos⁡y\cos y⁠; collect, factor, divide; state the condition for the division.

Basics you need

1Differentiating a relation

Both sides of a relation that holds for all xx in an interval have equal derivatives there (Section 5.3.2). Lesson: implicit differentiation

2Chain rule on functions of yy

ddx(y2)=2y dydx\frac{d}{dx}(y^2) = 2y\,\frac{dy}{dx} and ddx(cos⁡y)=−sin⁡y dydx\frac{d}{dx}(\cos y) = -\sin y\,\frac{dy}{dx}⁠: the derivative with respect to yy⁠, times dydx\frac{dy}{dx}⁠. Lesson: the chain rule

3Constants

aa and bb are fixed numbers: ddx(ax)=a\frac{d}{dx}(ax) = a⁠, and bb simply multiplies whatever y2y^2 gives. Basics: derivative rules

4Collecting and factoring

Gather the dydx\frac{dy}{dx} terms, factor, divide by the bracket where it is non-zero. Basics: solving for dy/dx

Solution

  1. Differentiate each term with respect to xx

    ddx(ax)+ddx(by2)=ddx(cos⁡y).\frac{d}{dx}(ax) + \frac{d}{dx}(by^2) = \frac{d}{dx}(\cos y).
    • ddx(ax)=a\frac{d}{dx}(ax) = a⁠.
    • ddx(by2)=b⋅2y dydx=2by dydx\frac{d}{dx}(by^2) = b\cdot 2y\,\frac{dy}{dx} = 2by\,\frac{dy}{dx} (outer function t2t^2⁠, inner function yy⁠).
    • ddx(cos⁡y)=−sin⁡y dydx\frac{d}{dx}(\cos y) = -\sin y\,\frac{dy}{dx} (outer function cos⁡t\cos t⁠, inner function yy⁠).

    So

    a+2by dydx=−sin⁡y dydx.a + 2by\,\frac{dy}{dx} = -\sin y\,\frac{dy}{dx}.
    y2y^2 and cos⁡y\cos y are composites: something done to yy⁠, which itself depends on xx⁠. Each is differentiated with respect to yy (giving 2y2y and −sin⁡y-\sin y⁠) and then multiplied by dydx\frac{dy}{dx}⁠.
    Chain rule, Theorem 4, Section 5.3.1; (t2)′=2t(t^2)' = 2t⁠, (cos⁡t)′=−sin⁡t(\cos t)' = -\sin t from Table 5.3. Lesson: the chain rule
  2. Collect the dydx\frac{dy}{dx} terms

    Add sin⁡y dydx\sin y\,\frac{dy}{dx} to both sides and subtract aa⁠:

    2by dydx+sin⁡y dydx=−a,(2by+sin⁡y) dydx=−a.\begin{aligned} 2by\,\frac{dy}{dx} + \sin y\,\frac{dy}{dx} &= -a, \\ (2by + \sin y)\,\frac{dy}{dx} &= -a. \end{aligned}
    All terms with dydx\frac{dy}{dx} go to one side and the rest to the other, so that dydx\frac{dy}{dx} can be factored out as a single unknown.
    Factoring the common unknown. Basics: solving for dy/dx
  3. Divide, where allowed

    Wherever 2by+sin⁡y≠02by + \sin y \ne 0⁠,

    dydx=−a2by+sin⁡y.\frac{dy}{dx} = -\frac{a}{2by + \sin y}.
    Division by zero is not allowed, so the formula comes with the condition 2by+sin⁡y≠02by + \sin y \ne 0⁠, in the same way as Example 23 states a condition on yy⁠.
  4. What happens where 2by+sin⁡y=02by + \sin y = 0⁠?

    At such a point, Step 2 would read 0⋅dydx=−a0\cdot\frac{dy}{dx} = -a⁠. If a≠0a \ne 0 this is impossible, so no finite dydx\frac{dy}{dx} exists there: the curve has a vertical tangent. For example, y=0y = 0 gives 2b⋅0+sin⁡0=02b\cdot0 + \sin 0 = 0⁠; the curve passes through (1a,0)\left(\frac1a, 0\right)⁠, and there dxdy=0\frac{dx}{dy} = 0 instead.

    This is why the condition is not a technicality: it marks genuine points where yy does not change smoothly with xx⁠. (The textbook answer, as usual, does not repeat the condition.)
Result dydx=−a2by+sin⁡y,2by+sin⁡y≠0.\frac{dy}{dx} = -\frac{a}{2by + \sin y}, \quad 2by + \sin y \ne 0.

(Textbook answer: −a2by+sin⁡y-\dfrac{a}{2by + \sin y}⁠, the same.)

Check it with numbers

Take a=2a = 2⁠, b=3b = 3⁠, so the relation is 2x+3y2=cos⁡y2x + 3y^2 = \cos y⁠, and look at the point with y=1y = 1⁠: x=cos⁡1−32≈−1.2298488x = \frac{\cos 1 - 3}{2} \approx -1.2298488⁠. The formula gives −26+sin⁡1≈−0.2923348-\frac{2}{6 + \sin 1} \approx -0.2923348⁠. Moving along the curve from y=0.9999y = 0.9999 to y=1.0001y = 1.0001 (with x=cos⁡y−3y22x = \frac{\cos y - 3y^2}{2}⁠) and dividing the change in yy by the change in xx gives −0.2923348-0.2923348⁠. They agree.

Common mistakes
  1. ddx(y2)=2y\frac{d}{dx}(y^2) = 2y⁠. The factor dydx\frac{dy}{dx} is missing.
  2. ddx(cos⁡y)=sin⁡y dydx\frac{d}{dx}(\cos y) = \sin y\,\frac{dy}{dx}⁠. The derivative of cosine is −sin⁡-\sin⁠; this minus sign is what puts +sin⁡y+\sin y next to 2by2by in the answer.
  3. Treating aa or bb as variables. They are constants; ddx(ax)=a\frac{d}{dx}(ax) = a⁠.
What to take away
  1. Each term containing yy contributes (its yy-derivative) ×dydx\,\times\frac{dy}{dx}⁠; terms in xx alone contribute ordinary derivatives.
  2. The implicit derivative is valid where its denominator is non-zero; where it is zero the tangent is vertical (or the method gives no information).

Every fact used, and where it comes from

FactUsed inSource
Differentiating both sides of a relationStep 1Section 5.3.2, Examples 22 and 23 (Lesson: implicit differentiation)
Chain ruleStep 1Theorem 4, Section 5.3.1
(xn)′=nxn−1(x^n)' = nx^{n-1}⁠, (cos⁡t)′=−sin⁡t(\cos t)' = -\sin tStep 1Table 5.3, Section 5.3
Division only by a non-zero quantitySteps 3, 4Algebra; compare the condition in Example 23
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 →