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

Exercise 5.3 · Q4: dydx\frac{dy}{dx} if xy+y2=tan⁡x+yxy+y^2=\tan x+y

Exercise 5.3Implicit differentiation · Section 5.3.2
The question

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

xy+y2=tan⁡x+yxy + y^2 = \tan x + y
Exam answer

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

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

∴ dydx=sec⁡2x−yx+2y−1\therefore\ \dfrac{dy}{dx} = \dfrac{\sec^2 x - y}{x + 2y - 1} (x+2y−1≠0)(x + 2y - 1 \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⁠. The term xyxy is a product of two functions of xx (namely xx and yy⁠), so it needs the product rule; y2y^2 needs the chain rule. Then dydx\frac{dy}{dx} appears in three places: collect, factor, divide.

Given, to find, and the plan
Given
xy+y2=tan⁡x+yxy + y^2 = \tan x + y⁠, with yy a function of xx⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Differentiate term by term (product rule for xyxy⁠, chain rule for y2y^2⁠, Table 5.3 for tan⁡x\tan x⁠). Move all dydx\frac{dy}{dx} terms to the left, factor, divide, and state the conditions.

Basics you need

1Differentiating a relation

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

2Product rule

(uv)′=u′v+uv′(uv)' = u'v + uv' (rule (2), Section 5.3). With u=xu = x⁠, v=yv = y⁠: ddx(xy)=1⋅y+xdydx\frac{d}{dx}(xy) = 1\cdot y + x\frac{dy}{dx}⁠. 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

4Derivative of tan⁡x\tan x

(tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x⁠, valid where cos⁡x≠0\cos x \ne 0 (Table 5.3). Basics: trigonometric identities

Solution

  1. Differentiate each term with respect to xx

    ddx(xy)+ddx(y2)=ddx(tan⁡x)+ddx(y).\begin{aligned} &\frac{d}{dx}(xy) + \frac{d}{dx}(y^2) \\ &\quad = \frac{d}{dx}(\tan x) + \frac{d}{dx}(y). \end{aligned}
    • 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(tan⁡x)=sec⁡2x\frac{d}{dx}(\tan x) = \sec^2 x (Table 5.3).
    • ddx(y)=dydx\frac{d}{dx}(y) = \frac{dy}{dx}⁠.

    So

    y+x dydx+2y dydx=sec⁡2x+dydx.\begin{aligned} &y + x\,\frac{dy}{dx} + 2y\,\frac{dy}{dx} \\ &\quad = \sec^2 x + \frac{dy}{dx}. \end{aligned}
    In xyxy both factors change with xx⁠, so its rate has two parts: yy times the rate of xx (which is 11⁠) plus xx times the rate of yy⁠. Writing just xdydxx\frac{dy}{dx} or just yy would keep only one part.
    Product rule (2) and Table 5.3, Section 5.3; chain rule, Theorem 4. Basics: derivative rules
  2. Collect the dydx\frac{dy}{dx} terms

    Subtract dydx\frac{dy}{dx} and yy from both sides:

    xdydx+2ydydx−dydx=sec⁡2x−y,(x+2y−1) dydx=sec⁡2x−y.\begin{aligned} x\frac{dy}{dx} + 2y\frac{dy}{dx} - \frac{dy}{dx} &= \sec^2 x - y, \\ (x + 2y - 1)\,\frac{dy}{dx} &= \sec^2 x - y. \end{aligned}
    The dydx\frac{dy}{dx} on the right (coming from the term yy⁠) must be brought over too; it becomes the −1-1 in the bracket. The term yy without a derivative moves to the right.
    Factoring the common unknown. Basics: solving for dy/dx
  3. Divide, where allowed

    Wherever x+2y−1≠0x + 2y - 1 \ne 0 (and cos⁡x≠0\cos x \ne 0⁠, so that tan⁡x\tan x is defined),

    dydx=sec⁡2x−yx+2y−1.\frac{dy}{dx} = \frac{\sec^2 x - y}{x + 2y - 1}.
    The bracket is the divisor, so it must not be zero. The relation itself already requires cos⁡x≠0\cos x \ne 0⁠, because it contains tan⁡x\tan x⁠.
    Compare Example 23, where the book also states the condition that keeps the divisor non-zero. Lesson: implicit differentiation
Result dydx=sec⁡2x−yx+2y−1,x+2y−1≠0.\frac{dy}{dx} = \frac{\sec^2 x - y}{x + 2y - 1}, \quad x + 2y - 1 \ne 0.

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

Check it with numbers

At x=0x = 0 the relation reads y2=yy^2 = y⁠, so the curve passes through (0,0)(0, 0) and (0,1)(0, 1)⁠. The formula gives

at (0,0): dydx=1−00+0−1=−1,at (0,1): dydx=1−10+2−1=0.\begin{aligned} \text{at } (0, 0):\ \frac{dy}{dx} &= \frac{1 - 0}{0 + 0 - 1} = -1, \\ \text{at } (0, 1):\ \frac{dy}{dx} &= \frac{1 - 1}{0 + 2 - 1} = 0. \end{aligned}

For a direct check, solve the relation as a quadratic in yy⁠: y2+(x−1)y−tan⁡x=0y^2 + (x - 1)y - \tan x = 0⁠, so

y=(1−x)∓(1−x)2+4tan⁡x2.y = \frac{(1 - x) \mp \sqrt{(1 - x)^2 + 4\tan x}}{2}.

The branch with the minus sign passes through (0,0)(0, 0)⁠; a difference quotient of it at x=0x = 0 with h=0.0001h = 0.0001 gives −1.0000000-1.0000000⁠. The branch with the plus sign passes through (0,1)(0, 1) and gives 0.00000000.0000000⁠. At x=0.5x = 0.5 on the first branch, y≈−0.5302580y \approx -0.5302580⁠; the formula gives −1.1718588-1.1718588 and the difference quotient gives −1.1718588-1.1718588⁠.

Common mistakes
  1. ddx(xy)=xdydx\frac{d}{dx}(xy) = x\frac{dy}{dx} or =dydx= \frac{dy}{dx}⁠. Both factors vary; the product rule gives y+xdydxy + x\frac{dy}{dx}⁠.
  2. Forgetting the dydx\frac{dy}{dx} from the right-hand yy⁠. It is what produces the −1-1 in the denominator.
  3. Sign errors when moving terms. Collect carefully: the result is (x+2y−1)y′=sec⁡2x−y(x + 2y - 1)y' = \sec^2 x - y⁠.
What to take away
  1. A product of xx and yy needs the product rule; a power of yy needs the chain rule; a lone yy gives dydx\frac{dy}{dx}⁠.
  2. Bring every dydx\frac{dy}{dx} term to one side, including those that started on the right.

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)
Product rule (uv)′=u′v+uv′(uv)' = u'v + uv'Step 1Rule (2), Section 5.3
Chain ruleStep 1Theorem 4, Section 5.3.1
(tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x⁠, (xn)′=nxn−1(x^n)' = nx^{n-1}Step 1Table 5.3, Section 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 →