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

Example 22: dydx\frac{dy}{dx} if x−y=πx-y=\pi⁠, two ways

ExamplesImplicit differentiation · Section 5.3.2
The question

Find dydx\dfrac{dy}{dx} if x−y=πx - y = \pi⁠.

Exam answer

Differentiating both sides of x−y=πx - y = \pi w.r.t. xx⁠,

ddx(x)−dydx=ddx(π)\frac{d}{dx}(x) - \frac{dy}{dx} = \frac{d}{dx}(\pi) ⇒ 1−dydx=0\Rightarrow\ 1 - \frac{dy}{dx} = 0

∴ dydx=1\therefore\ \dfrac{dy}{dx} = 1⁠.

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

The one idea this problem is built on

When an equation ties yy to xx⁠, we can find dydx\frac{dy}{dx} without first solving for yy⁠: differentiate both sides of the equation with respect to xx, treating yy as an unknown function of xx⁠. This is implicit differentiation. Here we can also solve for yy⁠, so we do it both ways and see that they agree. That agreement is what makes the direct method trustworthy for harder relations such as Example 23.

Given, to find, and the plan
Given
The relation x−y=πx - y = \pi between xx and yy⁠, for all real xx⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
Method 1: solve for yy (explicit form) and differentiate. Method 2: differentiate the relation as it stands (implicit form). Compare.

Basics you need

1Explicit and implicit

y=x−πy = x - \pi gives yy explicitly: a formula in xx alone. x−y=πx - y = \pi gives the same yy implicitly: yy is fixed by xx⁠, but you have to unpick the equation to see the formula. Basics: solving for dy/dx

2Derivative of a constant and of xx

A constant function (such as the one with value π\pi everywhere) has derivative 00⁠: its graph is flat. And ddx(x)=1\frac{d}{dx}(x) = 1 (power rule with n=1n = 1⁠). Basics: derivative rules

3Difference rule

(u−v)′=u′−v′(u - v)' = u' - v'⁠: the derivative of a difference is the difference of the derivatives (algebra of derivatives, Section 5.3). Basics: slope at a point

Solution

  1. Method 1: solve for yy⁠, then differentiate

    Add yy to both sides and subtract π\pi⁠:

    x−y=π  ⟺  y=x−π.x - y = \pi \iff y = x - \pi.

    Now differentiate term by term:

    dydx=ddx(x)−ddx(π)=1−0=1.\frac{dy}{dx} = \frac{d}{dx}(x) - \frac{d}{dx}(\pi) = 1 - 0 = 1.
    The two equations x−y=πx - y = \pi and y=x−πy = x - \pi are equivalent (each step can be reversed), so they describe exactly the same yy⁠. Once yy is an explicit formula in xx⁠, ordinary rules apply. π≈3.14159\pi \approx 3.14159 is just a number, so it differentiates to 00⁠.
    Difference rule (algebra of derivatives, Section 5.3), ddx(x)=1\frac{d}{dx}(x) = 1 (Table 5.3 with n=1n = 1⁠) and derivative of a constant =0= 0 (Class XI, Limits and Derivatives). Basics: derivative rules
  2. Method 2: differentiate the relation directly

    Think of yy as some function of xx⁠, y=y(x)y = y(x)⁠. The relation says the function x−y(x)x - y(x) equals π\pi at every xx⁠. Two functions that are equal at every xx have equal derivatives, so

    ddx(x−y)=ddx(π).\frac{d}{dx}(x - y) = \frac{d}{dx}(\pi).

    The left side, by the difference rule, is ddx(x)−dydx=1−dydx\frac{d}{dx}(x) - \frac{dy}{dx} = 1 - \frac{dy}{dx}⁠. The right side is the derivative of the constant function with value π\pi⁠, which is 00⁠. So

    1−dydx=0⟹dydx=1.1 - \frac{dy}{dx} = 0 \quad\Longrightarrow\quad \frac{dy}{dx} = 1.
    This is the key move of implicit differentiation, and it needs the relation to hold for all xx in an interval, not just at one point. Two functions equal everywhere on an interval have the same graph there, hence the same slope everywhere. We never needed the formula for yy⁠: dydx\frac{dy}{dx} appeared as an unknown and we solved for it.
    The book stresses that dπdx\frac{d\pi}{dx} means differentiating "the constant function taking value π\pi everywhere", which gives 00⁠. Lesson: implicit differentiation
  3. Compare, and see what the answer means

    Both methods give dydx=1\frac{dy}{dx} = 1⁠. The graph of x−y=πx - y = \pi is the straight line y=x−πy = x - \pi⁠, which rises 1 unit for each 1 unit to the right:

    x y 1 2 3 4 −3 −2 −1 1 run 1 rise 1 (π, 0) (0, −π) x − y = π
    The line x−y=πx - y = \pi (equal scales on both axes). It crosses the axes at (π,0)(\pi, 0) and (0,−π)(0, -\pi)⁠. Its slope is riserun=11=1\frac{\text{rise}}{\text{run}} = \frac{1}{1} = 1 everywhere, matching dydx=1\frac{dy}{dx} = 1⁠.
    A straight line has the same slope at every point, so dydx\frac{dy}{dx} is a constant. The value of the constant π\pi only shifts the line; it does not tilt it. Any relation x−y=cx - y = c gives dydx=1\frac{dy}{dx} = 1⁠.
    The derivative at a point is the slope of the tangent there; for a straight line the tangent is the line itself. Basics: slope at a point
Result

dydx=1\dfrac{dy}{dx} = 1 for every real xx⁠. (The book gets dydx=dxdx=1\frac{dy}{dx} = \frac{dx}{dx} = 1 by both methods.)

Check it with numbers

At x=4x = 4⁠: y=4−π=0.8584073…y = 4 - \pi = 0.8584073\ldots⁠. At x=4.001x = 4.001⁠: y=0.8594073…y = 0.8594073\ldots⁠. The change in yy is 0.0010.001⁠, equal to the change in xx⁠, so ΔyΔx=1\frac{\Delta y}{\Delta x} = 1 exactly (no rounding error, because the graph is a straight line).

Common mistakes
  1. Treating dπdx\frac{d\pi}{dx} as something other than 0. π\pi is a fixed number, not a variable.
  2. Writing ddx(y)=1\frac{d}{dx}(y) = 1⁠. The derivative of yy with respect to xx is the unknown dydx\frac{dy}{dx}⁠; only ddx(x)=1\frac{d}{dx}(x) = 1⁠.
  3. Sign slip. ddx(x−y)=1−dydx\frac{d}{dx}(x - y) = 1 - \frac{dy}{dx}⁠, with a minus sign in front of dydx\frac{dy}{dx}⁠.
What to take away
  1. Implicit differentiation: differentiate every term of the relation with respect to xx⁠, write dydx\frac{dy}{dx} wherever yy is differentiated, then solve for dydx\frac{dy}{dx}⁠.
  2. It is valid because the relation holds for all xx in an interval, so both sides are the same function.
  3. When you can solve for yy⁠, the explicit method is a good check on the implicit one.

Every fact used, and where it comes from

FactUsed inSource
(u−v)′=u′−v′(u-v)' = u' - v'⁠; ddxx=1\frac{d}{dx}x = 1⁠; constant →0\to 0Steps 1, 2Algebra of derivatives and Table 5.3, Section 5.3; derivative of a constant, Class XI (Limits and Derivatives)
Explicit and implicit functionsSteps 1, 2Section 5.3.2 (Lesson: implicit differentiation)
Equal functions on an interval have equal derivativesStep 2Definition of the derivative as a limit, Section 5.3
Slope of a straight lineStep 3Coordinate geometry (Class XI)
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 →