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

Exercise 5.3 · Q6: dydx\frac{dy}{dx} if x3+x2y+xy2+y3=81x^3+x^2y+xy^2+y^3=81

Exercise 5.3Implicit differentiation · Section 5.3.2
The question

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

x3+x2y+xy2+y3=81x^3 + x^2y + xy^2 + y^3 = 81
Exam answer

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

3x2+2xy+x2dydx+y2+2xydydx+3y2dydx=0\begin{aligned} &3x^2 + 2xy + x^2\frac{dy}{dx} + y^2 \\ &\quad + 2xy\frac{dy}{dx} + 3y^2\frac{dy}{dx} = 0 \end{aligned} ⇒ (x2+2xy+3y2)dydx=−(3x2+2xy+y2)\begin{aligned} \Rightarrow\ &(x^2 + 2xy + 3y^2)\frac{dy}{dx} \\ &= -(3x^2 + 2xy + y^2) \end{aligned}

∴ dydx=−3x2+2xy+y2x2+2xy+3y2\therefore\ \dfrac{dy}{dx} = -\dfrac{3x^2 + 2xy + y^2}{x^2 + 2xy + 3y^2}⁠.

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

The one idea this problem is built on

We cannot easily solve for yy⁠, so we differentiate both sides of the relation with respect to xx⁠, treating yy as a function of xx⁠. The two mixed terms x2yx^2y and xy2xy^2 are products of a function of xx and a function of yy⁠, so each needs the product rule, and every power of yy needs the chain rule. Then the dydx\frac{dy}{dx} terms are collected and factored out. A bonus: the bracket we divide by turns out to be (x+y)2+2y2(x+y)^2 + 2y^2⁠, which is never zero on this curve.

Given, to find, and the plan
Given
x3+x2y+xy2+y3=81x^3 + x^2y + xy^2 + y^3 = 81⁠, with yy a differentiable function of xx along the curve.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Differentiate each of the four terms; collect the dydx\frac{dy}{dx} terms on one side; factor and divide; then check where the divisor could be zero.

Basics you need

1Differentiating a relation

If a relation holds at every point of a piece of curve, both sides have equal derivatives there; the derivative of the constant 8181 is 00⁠. Lesson: implicit differentiation

2Product rule

(uv)′=u′v+uv′(uv)' = u'v + uv' (rule (2), Section 5.3). Here uu is a power of xx and vv a power of yy⁠. Basics: derivative rules

3Chain rule on powers of yy

ddx(yn)=nyn−1 dydx\frac{d}{dx}(y^n) = ny^{n-1}\,\frac{dy}{dx}⁠: the outer function is tnt^n⁠, the inner one is y(x)y(x)⁠. Lesson: the chain rule

4Collecting and factoring

Gather every dydx\frac{dy}{dx} term on one side, factor it out and divide by the bracket where the bracket is not zero. Basics: solving for dy/dx

Solution

  1. Differentiate each term with respect to xx

    ddx(x3)+ddx(x2y)+ddx(xy2)+ddx(y3)=ddx(81).\begin{aligned} &\frac{d}{dx}(x^3) + \frac{d}{dx}(x^2y) + \frac{d}{dx}(xy^2) \\ &\quad + \frac{d}{dx}(y^3) = \frac{d}{dx}(81). \end{aligned}
    • ddx(x3)=3x2\frac{d}{dx}(x^3) = 3x^2⁠.
    • x2yx^2y⁠: product rule with u=x2u = x^2⁠, v=yv = y⁠: ddx(x2y)=2x⋅y+x2 dydx.\frac{d}{dx}(x^2y) = 2x\cdot y + x^2\,\frac{dy}{dx}.
    • xy2xy^2⁠: product rule with u=xu = x⁠, v=y2v = y^2⁠, and the chain rule for ddx(y2)=2y dydx\frac{d}{dx}(y^2) = 2y\,\frac{dy}{dx}⁠: ddx(xy2)=1⋅y2+x⋅2y dydx.\frac{d}{dx}(xy^2) = 1\cdot y^2 + x\cdot 2y\,\frac{dy}{dx}.
    • ddx(y3)=3y2 dydx\frac{d}{dx}(y^3) = 3y^2\,\frac{dy}{dx} (chain rule).
    • ddx(81)=0\frac{d}{dx}(81) = 0⁠.

    Adding up:

    3x2+2xy+x2dydx+y2+2xydydx+3y2dydx=0.\begin{aligned} 3x^2 + 2xy + x^2\frac{dy}{dx} &+ y^2 + 2xy\frac{dy}{dx} \\ &+ 3y^2\frac{dy}{dx} = 0. \end{aligned}
    Along the curve the left side is always 8181⁠, so its rate of change with respect to xx is 00⁠. In x2yx^2y and xy2xy^2 both factors change as xx changes, which is why each gives two terms. Every time a power of yy is differentiated, the chain rule attaches a factor dydx\frac{dy}{dx}⁠.
    Product rule (2), Section 5.3; chain rule, Theorem 4, Section 5.3.1; (xn)′=nxn−1(x^n)' = nx^{n-1}⁠, Table 5.3. Basics: derivative rules
  2. Collect the dydx\frac{dy}{dx} terms and factor

    Keep the three terms containing dydx\frac{dy}{dx} on the left and move the other three to the right:

    (x2+2xy+3y2) dydx=−3x2−2xy−y2=−(3x2+2xy+y2).\begin{aligned} (x^2 + 2xy + 3y^2)\,\frac{dy}{dx} &= -3x^2 - 2xy - y^2 \\ &= -(3x^2 + 2xy + y^2). \end{aligned}
    The coefficients of dydx\frac{dy}{dx} are x2x^2 (from x2yx^2y⁠), 2xy2xy (from xy2xy^2⁠) and 3y23y^2 (from y3y^3⁠). The remaining terms 3x23x^2⁠, 2xy2xy⁠, y2y^2 change sign when moved across.
    Factoring out the common unknown dydx\frac{dy}{dx}⁠. Basics: solving for dy/dx
  3. The divisor is never zero on the curve

    Complete the square in the bracket:

    x2+2xy+3y2=(x2+2xy+y2)+2y2=(x+y)2+2y2.\begin{aligned} x^2 + 2xy + 3y^2 &= (x^2 + 2xy + y^2) + 2y^2 \\ &= (x + y)^2 + 2y^2. \end{aligned}

    Both parts are squares, so the bracket is ≥0\ge 0⁠, and it is 00 only if x+y=0x + y = 0 and y=0y = 0⁠, that is, only at (0,0)(0, 0)⁠. But (0,0)(0, 0) is not on the curve: there the left side of the relation is 00⁠, not 8181⁠. So at every point of the curve the bracket is positive.

    Before dividing we must know the divisor is not zero. Here it never is, so the formula below holds at every point of the curve, with no exceptions. (This also shows that, for each fixed xx⁠, the left side of the relation is strictly increasing in yy⁠, because its derivative with respect to yy is this same bracket, and it runs from −∞-\infty to ∞\infty like any cubic in yy⁠; so each xx gives exactly one yy⁠, and the whole curve is the graph of one function. This aside uses two facts from outside this chapter, named in the note below.)
    A sum of squares is zero only when each square is zero (Class IX/X algebra). For the aside: a positive derivative makes a function increasing (Theorem 1, Section 6.3, Chapter 6), and a continuous function takes every value between two of its values (the intermediate value property, not proved in the book).
  4. Divide

    dydx=−3x2+2xy+y2x2+2xy+3y2.\frac{dy}{dx} = -\frac{3x^2 + 2xy + y^2}{x^2 + 2xy + 3y^2}.
    Division by the bracket is allowed at every point of the curve by Step 3.
−3 3 6 −3 3 6 x y A B C the curve (same scale on both axes) tangents: slope −3 at A, −1/3 at B, −1 at C the line x + y = 0, approached far out
The curve x3+x2y+xy2+y3=81x^3 + x^2y + xy^2 + y^3 = 81 (same scale on both axes). Its left side factors as (x+y)(x2+y2)(x + y)(x^2 + y^2)⁠, so far from the origin x+y=81x2+y2x + y = \frac{81}{x^2 + y^2} is close to 00 and the curve hugs the dashed line x+y=0x + y = 0⁠. The gold tangents have the slopes given by the formula at A(813,0)A(\sqrt[3]{81}, 0)⁠, B(0,813)B(0, \sqrt[3]{81}) and CC on the line y=xy = x⁠.
Result dydx=−3x2+2xy+y2x2+2xy+3y2,\frac{dy}{dx} = -\frac{3x^2 + 2xy + y^2}{x^2 + 2xy + 3y^2},

valid at every point of the curve, since the denominator (x+y)2+2y2(x + y)^2 + 2y^2 is never zero there.

(Textbook answer: −(3x2+2xy+y2)(x2+2xy+3y2)-\dfrac{(3x^2 + 2xy + y^2)}{(x^2 + 2xy + 3y^2)}⁠, the same.)

Check it with numbers

Three points of the curve where the formula is easy to evaluate:

  • AA⁠: y=0y = 0 gives x3=81x^3 = 81⁠, x=813≈4.3267487x = \sqrt[3]{81} \approx 4.3267487⁠. Slope −3x2x2=−3-\frac{3x^2}{x^2} = -3⁠.
  • BB⁠: x=0x = 0 gives y=813y = \sqrt[3]{81}⁠. Slope −y23y2=−13-\frac{y^2}{3y^2} = -\frac13⁠.
  • CC⁠: y=xy = x gives 4x3=814x^3 = 81⁠, x=y≈2.7256809x = y \approx 2.7256809⁠. Slope −3+2+11+2+3=−1-\frac{3 + 2 + 1}{1 + 2 + 3} = -1⁠.

Directly: solving the relation for yy numerically at x±0.000001x \pm 0.000001 and taking difference quotients gives −3.0000000-3.0000000 at AA⁠, −0.3333333-0.3333333 at BB and −1.0000000-1.0000000 at CC⁠. At x=2x = 2 the curve has y≈3.3413590y \approx 3.3413590⁠; the formula gives −0.7182558-0.7182558⁠, and so does the difference quotient. The slopes −3-3 and −13-\frac13 are reciprocals, as they must be: swapping xx and yy leaves the relation unchanged, so the curve is symmetric in the line y=xy = x⁠.

Common mistakes
  1. Differentiating x2yx^2y as 2xy2xy or as x2dydxx^2\frac{dy}{dx} only. It is a product, so both terms are needed: 2xy+x2dydx2xy + x^2\frac{dy}{dx}⁠.
  2. Writing ddx(y3)=3y2\frac{d}{dx}(y^3) = 3y^2⁠. The chain rule factor dydx\frac{dy}{dx} is missing.
  3. Mixing up the coefficients. The numerator collects the terms without dydx\frac{dy}{dx} (3x2+2xy+y23x^2 + 2xy + y^2⁠); the denominator collects the coefficients of dydx\frac{dy}{dx} (x2+2xy+3y2x^2 + 2xy + 3y^2⁠). They are mirror images: swap xx and yy in one to get the other.
  4. Dropping the minus sign when moving terms across.
What to take away
  1. In implicit differentiation every mixed term xmynx^m y^n needs the product rule and every power of yy the chain rule.
  2. Always look at the bracket you divide by. Completing the square can show it is never zero, so the formula needs no exceptions.

Every fact used, and where it comes from

FactUsed inSource
Differentiating both sides of a relation; derivative of a constant is 00Step 1Section 5.3.2, Examples 22 and 23 (Lesson: implicit differentiation)
Product rule (uv)′=u′v+uv′(uv)' = u'v + uv'Step 1Rule (2), Section 5.3
Chain rule; (xn)′=nxn−1(x^n)' = nx^{n-1}Step 1Theorem 4, Section 5.3.1; Table 5.3
a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2⁠; a sum of squares is 00 only if each is 00Step 3Class IX/X algebra
Positive derivative means increasing; intermediate value propertyStep 3 (aside)Theorem 1, Section 6.3 (Chapter 6); standard property of continuous functions (not proved in the book)
x3+x2y+xy2+y3x^3 + x^2y + xy^2 + y^3 =(x+y)(x2+y2)= (x + y)(x^2 + y^2)FigureFactor x2x^2 from the first two terms and y2y^2 from the last two
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 →