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

Miscellaneous · Q14: Solve x1+y+y1+x=0x\sqrt{1+y}+y\sqrt{1+x}=0 as y=−x1+xy=-\frac{x}{1+x}⁠, so dydx=−1(1+x)2\frac{dy}{dx}=-\frac{1}{(1+x)^2}

Miscellaneous ExerciseDerivatives of implicit functions · Miscellaneous Exercise
The question

If x1+y+y1+x=0x\sqrt{1+y} + y\sqrt{1+x} = 0⁠, for −1<x<1-1 < x < 1⁠, prove that

dydx=−1(1+x)2.\frac{dy}{dx} = -\frac{1}{(1+x)^2}.
Exam answer

Here x1+y=−y1+xx\sqrt{1 + y} = -y\sqrt{1 + x}⁠. Squaring both sides,

x2(1+y)=y2(1+x)⇒ x2−y2+xy(x−y)=0⇒ (x−y)(x+y+xy)=0\begin{aligned} &x^2(1 + y) = y^2(1 + x) \\ \Rightarrow\ &x^2 - y^2 + xy(x - y) = 0 \\ \Rightarrow\ &(x - y)(x + y + xy) = 0 \end{aligned}

y=xy = x does not satisfy the given equation (it gives 2x1+x=02x\sqrt{1 + x} = 0⁠, true only at x=0x = 0⁠). So x+y+xy=0x + y + xy = 0⁠, and as 1+x≠01 + x \ne 0⁠,

y=−x1+xy = -\frac{x}{1 + x}

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

dydx=−(1+x)⋅1−x⋅1(1+x)2\frac{dy}{dx} = -\frac{(1 + x)\cdot 1 - x\cdot 1}{(1 + x)^2}

∴ dydx=−1(1+x)2\therefore\ \dfrac{dy}{dx} = -\dfrac{1}{(1 + x)^2}⁠. Hence proved.

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

The one idea this problem is built on

The relation can be solved for yy. Moving one term across and squaring removes the roots and gives an equation that factorises as (x−y)(x+y+xy)=0(x - y)(x + y + xy) = 0⁠. Squaring can create false solutions, so each factor must be tested in the original equation: y=xy = x fails (except at the origin), and y=−x1+xy = -\frac{x}{1+x} works. Then the quotient rule finishes the job.

Given, to show, and the plan
Given
x1+y+y1+x=0x\sqrt{1+y} + y\sqrt{1+x} = 0⁠, with −1<x<1-1 < x < 1 (and y≥−1y \ge -1⁠, so that 1+y\sqrt{1+y} exists).
To show
dydx=−1(1+x)2\dfrac{dy}{dx} = -\dfrac{1}{(1+x)^2}⁠.
Plan
(1) Isolate one root term and square. (2) Factorise. (3) Test both factors in the original equation. (4) Differentiate y=−x1+xy = -\frac{x}{1+x}⁠. (5) Confirm by implicit differentiation.

Basics you need

1Squaring is one-way

If A=BA = B then A2=B2A^2 = B^2⁠, but A2=B2A^2 = B^2 only gives A=±BA = \pm B⁠. So every solution of the squared equation must be checked in the original one. Basics: solving for dy/dx

2Factorising by grouping

x2−y2=(x−y)(x+y)x^2 - y^2 = (x-y)(x+y)⁠, and a common factor can be taken out of a sum of terms.

3Quotient rule

(uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2} wherever v≠0v \ne 0 (Section 5.3, rule (3)). Basics: derivative rules

4Implicit differentiation

Differentiate both sides with respect to xx⁠, treating yy as a function of xx⁠, then solve for dydx\frac{dy}{dx} (Section 5.3.2). Lesson: implicit differentiation

Solution

  1. Isolate one term and square

    Move the second term to the right-hand side:

    x1+y=−y1+x.x\sqrt{1+y} = -y\sqrt{1+x}.

    Squaring both sides (and using (1+y)2=1+y(\sqrt{1+y})^2 = 1+y⁠, (1+x)2=1+x(\sqrt{1+x})^2 = 1+x⁠):

    x2(1+y)=y2(1+x).x^2(1+y) = y^2(1+x).
    Each side now has a single square root, so squaring removes both roots at once. Squaring is allowed (equal numbers have equal squares), but it may let in extra solutions where x1+y=+y1+xx\sqrt{1+y} = +y\sqrt{1+x} instead. We deal with that in Step 3.
    (ab)2=a2b2(ab)^2 = a^2b^2 and (u)2=u(\sqrt u)^2 = u for u≥0u \ge 0 (Basic 1).
  2. Factorise the squared equation

    x2+x2y−y2−xy2=0⟹ (x2−y2)+xy(x−y)=0⟹ (x−y)(x+y)+xy(x−y)=0⟹ (x−y)(x+y+xy)=0.\begin{aligned} & x^2 + x^2y - y^2 - xy^2 = 0 \\ \Longrightarrow\ & (x^2 - y^2) + xy(x - y) = 0 \\ \Longrightarrow\ & (x - y)(x + y) + xy(x - y) = 0 \\ \Longrightarrow\ & (x - y)(x + y + xy) = 0. \end{aligned}

    So y=xy = x⁠, or x+y+xy=0x + y + xy = 0⁠, that is y(1+x)=−xy(1 + x) = -x⁠, i.e.

    y=−x1+x(1+x≠0 since x>−1).y = -\frac{x}{1+x} \qquad (1 + x \ne 0 \text{ since } x > -1).
    Grouping x2−y2x^2 - y^2 and x2y−xy2=xy(x−y)x^2y - xy^2 = xy(x-y) exposes the common factor x−yx - y⁠. A product is zero exactly when one of its factors is zero, so there are only two candidates for yy⁠.
    Difference of squares and common factors (Basic 2). Basics: solving for dy/dx
  3. Test both candidates in the original equation

    Candidate y=xy = x⁠. The left side becomes x1+x+x1+x=2x1+xx\sqrt{1+x} + x\sqrt{1+x} = 2x\sqrt{1+x}⁠. For −1<x<1-1 < x < 1⁠, 1+x>0\sqrt{1+x} > 0⁠, so this is 0 only when x=0x = 0⁠. So y=xy = x is not a solution except at the single point (0,0)(0,0)⁠.

    Candidate y=−x1+xy = -\frac{x}{1+x}⁠. First, 1+y=1+x−x1+x=11+x>01 + y = \frac{1 + x - x}{1+x} = \frac{1}{1+x} > 0⁠, so 1+y=11+x\sqrt{1+y} = \frac{1}{\sqrt{1+x}} exists. Then

    x1+y+y1+x=x1+x−x1+x1+x=x1+x−x1+x=0. ✓\begin{aligned} x\sqrt{1+y} + y\sqrt{1+x} &= \frac{x}{\sqrt{1+x}} - \frac{x\sqrt{1+x}}{1+x} \\ &= \frac{x}{\sqrt{1+x}} - \frac{x}{\sqrt{1+x}} = 0. \ ✓ \end{aligned}

    Hence the points satisfying the given equation with −1<x<1-1 < x < 1 are exactly the points of the curve

    y=−x1+x,−1<x<1.y = -\frac{x}{1+x}, \qquad -1 < x < 1.
    This is the step that squaring forces on us. The line y=xy = x satisfies the squared equation but not the original one (try x=0.5x = 0.5⁠: the left side is 2(0.5)1.5≠02(0.5)\sqrt{1.5} \ne 0⁠). Its only point that does satisfy the original, (0,0)(0,0)⁠, already lies on the curve y=−x1+xy = -\frac{x}{1+x}⁠. So the given equation defines yy as this one function of xx⁠, and that is the function we differentiate. (A common shortcut, dividing the squared equation by x−yx - y⁠, needs exactly this justification.)
    Using 1+x1+x=11+x\frac{\sqrt{1+x}}{1+x} = \frac{1}{\sqrt{1+x}} for 1+x>01 + x > 0⁠. Checking solutions after squaring (Basic 1).
  4. Differentiate with the quotient rule

    With u=xu = x⁠, v=1+xv = 1 + x⁠, u′=1u' = 1⁠, v′=1v' = 1⁠, and v≠0v \ne 0⁠:

    dydx=−u′v−uv′v2=−1⋅(1+x)−x⋅1(1+x)2=−1(1+x)2.\begin{aligned} \frac{dy}{dx} &= -\frac{u'v - uv'}{v^2} \\ &= -\frac{1\cdot(1+x) - x\cdot 1}{(1+x)^2} \\ &= -\frac{1}{(1+x)^2}. \end{aligned}

    This holds for every xx with −1<x<1-1 < x < 1⁠, as required.

    −1 −0.5 1 −1 1 2 3 4 x y blue: y = −x/(1 + x) the actual curve y = x: fails the original except at the origin x = 1 excluded x = −1
    The two branches of the squared equation (horizontal and vertical scales differ). The blue curve y=−x1+xy = -\frac{x}{1+x} is the actual solution set for −1<x<1-1 < x < 1⁠; it falls everywhere, matching dydx=−1(1+x)2<0\frac{dy}{dx} = -\frac{1}{(1+x)^2} < 0⁠. The dashed line y=xy = x satisfies only the squared equation and shares just the origin with the curve.
    The minus sign in front stays outside the fraction. The numerator simplifies to 1+x−x=11 + x - x = 1⁠, which is why the answer is so clean.
    Quotient rule, rule (3) of Section 5.3 (Basic 3). Basics: derivative rules
  5. Confirm by implicit differentiation

    Differentiate the original equation term by term with respect to xx⁠, using the product rule and the chain rule ddx1+y=121+ydydx\frac{d}{dx}\sqrt{1+y} = \frac{1}{2\sqrt{1+y}}\frac{dy}{dx}⁠:

    1+y+x21+ydydx+dydx1+x+y21+x=0.\begin{aligned} & \sqrt{1+y} + \frac{x}{2\sqrt{1+y}}\frac{dy}{dx} \\ & {}+ \frac{dy}{dx}\sqrt{1+x} + \frac{y}{2\sqrt{1+x}} = 0. \end{aligned}

    Collect the dydx\frac{dy}{dx} terms:

    dydx=− 1+y+y21+x1+x+x21+y.\frac{dy}{dx} = -\,\frac{\sqrt{1+y} + \dfrac{y}{2\sqrt{1+x}}}{\sqrt{1+x} + \dfrac{x}{2\sqrt{1+y}}}.

    Now substitute 1+y=11+x\sqrt{1+y} = \frac{1}{\sqrt{1+x}} and y=−x1+xy = -\frac{x}{1+x}⁠, and write s=1+xs = \sqrt{1+x} (so s2=1+xs^2 = 1 + x⁠). The numerator is 1s−x2s3=2s2−x2s3=2+x2s3\frac{1}{s} - \frac{x}{2s^3} = \frac{2s^2 - x}{2s^3} = \frac{2 + x}{2s^3}⁠, and the denominator is s+xs2=s(2+x)2s + \frac{xs}{2} = \frac{s(2 + x)}{2}⁠. Dividing,

    dydx=−2+x2s3⋅2s(2+x)=−1s4=−1(1+x)2. ✓\frac{dy}{dx} = -\frac{2+x}{2s^3}\cdot\frac{2}{s(2+x)} = -\frac{1}{s^4} = -\frac{1}{(1+x)^2}. \ ✓
    The differentiation itself never uses the solved form of yy (only the final simplification does), so it checks the quotient-rule work of Step 4 by a different route. Cancelling 2+x2 + x is fine because x>−1x > -1 makes 2+x>12 + x > 1⁠. The denominator of the implicit formula is not zero, so the formula is valid at every point of the curve.
    Implicit differentiation, Section 5.3.2; product rule (rule (2), Section 5.3); chain rule, Theorem 4. Lesson: implicit differentiation
Result

For −1<x<1-1 < x < 1 the equation x1+y+y1+x=0x\sqrt{1+y} + y\sqrt{1+x} = 0 holds exactly when y=−x1+xy = -\dfrac{x}{1+x} (the other factor of the squared equation, y=xy = x⁠, fails except at the origin). Hence

dydx=−1(1+x)2,\frac{dy}{dx} = -\frac{1}{(1+x)^2},

as was to be proved.

Check it with numbers

At x=0.5x = 0.5⁠: y=−0.51.5=−13y = -\frac{0.5}{1.5} = -\frac13⁠. Original equation: 0.52/3−131.50.5\sqrt{2/3} - \frac13\sqrt{1.5} is 0.4082483−0.4082483=00.4082483 - 0.4082483 = 0 (to 7 decimals; exactly 0, since both terms equal 16\frac{1}{\sqrt6}⁠). ✓

Formula: −11.52=−0.4444444-\frac{1}{1.5^2} = -0.4444444⁠. Implicit formula: numerator 2/3−1/321.5≈0.6804138\sqrt{2/3} - \frac{1/3}{2\sqrt{1.5}} \approx 0.6804138⁠, denominator 1.5+0.522/3≈1.5309311\sqrt{1.5} + \frac{0.5}{2\sqrt{2/3}} \approx 1.5309311⁠, ratio with the minus sign ≈−0.4444444\approx -0.4444444⁠. ✓

Common mistakes
  1. Accepting y=xy = x because it satisfies the squared equation. It does not satisfy the original.
  2. Dividing by x−yx - y without comment. That is exactly the claim y≠xy \ne x⁠, which needs Step 3.
  3. Losing the minus sign in y=−x1+xy = -\frac{x}{1+x} when differentiating, or applying the quotient rule as uv′−u′vv2\frac{uv' - u'v}{v^2} (wrong order).
What to take away
  1. If an implicit relation can be solved for yy⁠, solving first often gives the cleanest derivative.
  2. After squaring, always test every candidate in the original equation.
  3. Implicit differentiation is a good independent check: both routes must agree at every point of the curve.

Every fact used, and where it comes from

FactUsed inSource
Squaring both sides; checking candidatesSteps 1, 3Algebra of equations
Difference of squares, common factorsStep 2Algebra
Quotient ruleStep 4Rule (3), Section 5.3 (Basics: derivative rules)
Product rule, chain ruleStep 5Rule (2), Section 5.3; Theorem 4, Section 5.3.1
Implicit differentiationStep 5Section 5.3.2 (Lesson: implicit differentiation)
Numerical values, figure coordinatesCheck, figureRecomputed 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 →