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

Exercise 5.3 · Q5: dydx\frac{dy}{dx} if x2+xy+y2=100x^2+xy+y^2=100

Exercise 5.3Implicit differentiation · Section 5.3.2
The question

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

x2+xy+y2=100x^2 + xy + y^2 = 100
Exam answer

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

2x+y+xdydx+2ydydx=0\begin{aligned} &2x + y + x\frac{dy}{dx} + 2y\frac{dy}{dx} \\ &= 0 \end{aligned} ⇒ (x+2y)dydx=−(2x+y)\Rightarrow\ (x + 2y)\frac{dy}{dx} = -(2x + y)

∴ dydx=−2x+yx+2y\therefore\ \dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y} (x+2y≠0)(x + 2y \ne 0)⁠.

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

The one idea this problem is built on

The relation describes a closed curve (a tilted ellipse), so yy is not one function of xx on the whole curve; but near most of its points the curve is the graph of a differentiable function, and implicit differentiation gives its slope there. Differentiate both sides with respect to xx⁠, using the product rule on xyxy and the chain rule on y2y^2⁠; the derivative of the constant 100100 is 00⁠. The formula fails exactly where the curve has a vertical tangent.

Given, to find, and the plan
Given
x2+xy+y2=100x^2 + xy + y^2 = 100⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Differentiate term by term, collect the dydx\frac{dy}{dx} terms, factor, divide; then find the points where the divisor vanishes.

Basics you need

1Differentiating a relation

Both sides of a relation that holds along a piece of curve have equal derivatives there; the derivative of a constant is 00 (Example 22 uses exactly this). Lesson: implicit differentiation

2Product rule

ddx(xy)=1⋅y+x dydx\frac{d}{dx}(xy) = 1\cdot y + x\,\frac{dy}{dx} (rule (2), Section 5.3). Basics: derivative rules

3Chain rule on y2y^2

ddx(y2)=2y dydx\frac{d}{dx}(y^2) = 2y\,\frac{dy}{dx}⁠. Lesson: the chain rule

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(x2)+ddx(xy)+ddx(y2)=ddx(100).\begin{aligned} &\frac{d}{dx}(x^2) + \frac{d}{dx}(xy) + \frac{d}{dx}(y^2) \\ &\quad = \frac{d}{dx}(100). \end{aligned}
    • ddx(x2)=2x\frac{d}{dx}(x^2) = 2x⁠.
    • ddx(xy)=y+x dydx\frac{d}{dx}(xy) = y + x\,\frac{dy}{dx} (product rule).
    • ddx(y2)=2y dydx\frac{d}{dx}(y^2) = 2y\,\frac{dy}{dx} (chain rule).
    • ddx(100)=0\frac{d}{dx}(100) = 0⁠.

    So

    2x+y+x dydx+2y dydx=0.2x + y + x\,\frac{dy}{dx} + 2y\,\frac{dy}{dx} = 0.
    Along the curve the left side is always 100100⁠, a constant, so its rate of change is 00⁠. The middle term needs the product rule because both xx and yy change.
    Product rule (2), Section 5.3; chain rule, Theorem 4; derivative of a constant is 00⁠. Basics: derivative rules
  2. Collect and factor

    x dydx+2y dydx=−2x−y,(x+2y) dydx=−(2x+y).\begin{aligned} x\,\frac{dy}{dx} + 2y\,\frac{dy}{dx} &= -2x - y, \\ (x + 2y)\,\frac{dy}{dx} &= -(2x + y). \end{aligned}
    Keep the two dydx\frac{dy}{dx} terms on the left, move 2x+y2x + y to the right (changing its sign), and factor out dydx\frac{dy}{dx}⁠.
    Factoring the common unknown. Basics: solving for dy/dx
  3. Divide, where allowed

    Wherever x+2y≠0x + 2y \ne 0⁠,

    dydx=−2x+yx+2y.\frac{dy}{dx} = -\frac{2x + y}{x + 2y}.
    The bracket x+2yx + 2y is the divisor. The next step finds the two points of the curve where it is zero.
  4. Where is x+2y=0x + 2y = 0 on the curve?

    Put x=−2yx = -2y into the relation:

    4y2−2y2+y2=100,3y2=100,y=±103.\begin{aligned} 4y^2 - 2y^2 + y^2 &= 100, \\ 3y^2 &= 100, \\ y &= \pm\frac{10}{\sqrt3}. \end{aligned}

    So the points are A(203,−103)A\left(\frac{20}{\sqrt3}, -\frac{10}{\sqrt3}\right) and B(−203,103)B\left(-\frac{20}{\sqrt3}, \frac{10}{\sqrt3}\right)⁠, approximately (11.55,−5.77)(11.55, -5.77) and (−11.55,5.77)(-11.55, 5.77)⁠. There Step 2 reads 0⋅dydx=−(2x+y)=∓303≠00\cdot\frac{dy}{dx} = -(2x + y) = \mp\frac{30}{\sqrt3} \ne 0⁠, which no number satisfies: the tangent is vertical, and dydx\frac{dy}{dx} does not exist.

    These are the rightmost and leftmost points of the ellipse (see the figure). There the curve turns back, so near AA or BB it is not the graph of a single function of xx⁠. Everywhere else on the curve the formula holds.
    Substituting one equation into another to find common points (Class X). Basics: solving for dy/dx
x y −5 5 −5 5 P(10, 0) A B x + 2y = 0
The curve x2+xy+y2=100x^2 + xy + y^2 = 100 is an ellipse tilted at 45∘45^\circ (same scale on both axes). At P(10,0)P(10, 0) the tangent has slope −2⋅10+010+0=−2-\frac{2\cdot10 + 0}{10 + 0} = -2 (gold). The dashed line x+2y=0x + 2y = 0 meets the ellipse at AA and BB⁠, where the tangents are vertical and dydx\frac{dy}{dx} does not exist.
Result dydx=−2x+yx+2y,x+2y≠0.\frac{dy}{dx} = -\frac{2x + y}{x + 2y}, \quad x + 2y \ne 0.

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

Check it with numbers

At x=10x = 10 the relation gives 100+10y+y2=100100 + 10y + y^2 = 100⁠, so y=0y = 0 or y=−10y = -10⁠. The formula gives slope −2010=−2-\frac{20}{10} = -2 at (10,0)(10, 0) and −20−1010−20=1-\frac{20 - 10}{10 - 20} = 1 at (10,−10)(10, -10)⁠; at (0,10)(0, 10) it gives −1020=−12-\frac{10}{20} = -\frac12⁠.

Directly: solving the quadratic in yy⁠, the upper and lower halves of the ellipse are y=−x±400−3x22y = \frac{-x \pm \sqrt{400 - 3x^2}}{2}⁠. Difference quotients with h=0.0001h = 0.0001 give −2.0000000-2.0000000 at x=10x = 10 on the upper half (through (10,0)(10, 0)⁠), 1.00000001.0000000 on the lower half (through (10,−10)(10, -10)⁠), and −0.5000000-0.5000000 at x=0x = 0 on the upper half. All agree.

Common mistakes
  1. ddx(xy)=xdydx\frac{d}{dx}(xy) = x\frac{dy}{dx}⁠. The term yy from the product rule is missing; it is what turns 2x2x into 2x+y2x + y⁠.
  2. ddx(100)=100\frac{d}{dx}(100) = 100⁠. The derivative of a constant is 00⁠.
  3. Losing the minus sign. The answer is −2x+yx+2y-\frac{2x + y}{x + 2y}⁠; check it at (10,0)(10, 0)⁠, where the curve is falling: just to the left, at x=9.9x = 9.9⁠, the upper half has y≈0.20>0y \approx 0.20 > 0⁠.
What to take away
  1. Implicit differentiation gives the slope at every point of a curve, even when the curve is not the graph of one function.
  2. The points where the denominator of dydx\frac{dy}{dx} vanishes are worth finding: on a closed curve they are the points with vertical tangents.

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, Example 22 (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
Quadratic formulaCheckClass X, Quadratic Equations
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 →