Differentiate both sides: Preserve equality under differentiation

By Vegard Gjerde Based on Masterful Learning 9 min read
differentiate-both-sides calculus derivatives math learning-strategies

Differentiate both sides is the move that applies ddx\frac{d}{dx} to an identity or implicit relation u(x)=v(x)u(x)=v(x) and produces u(x)=v(x)u'(x)=v'(x), preserving equality under differentiation. It applies when uu and vv are differentiable in the setting where the relation is being used, so move selection means checking both the relation itself and the derivative existence before you transform the equation. Building that check into every derivative chain is a core fluency skill practiced in the Unisium Study System.

Unisium hero image titled Differentiate both sides showing the principle equation and a conditions card.
The rule u(x)=v(x)u(x)=v(x)u(x)=v(x) \Rightarrow u'(x)=v'(x) under the canonical conditions “identity or implicit relation” and “u and v differentiable”.

On this page: The Principle | Conditions | Failure Modes | EE Questions | Retrieval Practice | Practice Ground | Solve a Problem | Related Principles | FAQ | How This Fits


The Principle

The move: Apply ddx\frac{d}{dx} to both sides of an identity or implicit relation u(x)=v(x)u(x)=v(x), producing a new equation between the derivatives.

The invariant: This preserves equality under differentiation, so the transformed equation remains true wherever the relation holds and both sides are differentiable.

Pattern: u(x)=v(x)u(x)=v(x)u(x)=v(x) \quad\longrightarrow\quad u'(x)=v'(x)

Legal ✓Illegal ✗
x2+y2=252x+2yy=0x^2 + y^2 = 25 \Rightarrow 2x + 2y\,y' = 0; the relation holds and both sides are differentiable with respect to xxx=x2x = x^2 at x=1⇏1=2xx=1 \not\Rightarrow 1 = 2x; the equation is true only at one point, not as an identity or implicit relation in a neighborhood where the move can act

The tempting mistake is to treat any equation that happens to be true at one point as automatically eligible. It is not. The move acts on a differentiable relation, not on a one-point coincidence or a random equation-to-solve.


Conditions of Applicability

Condition: identity or implicit relation; u and v differentiable

Differentiability is not enough. The equation must function as an identity or implicit relation in the setting where you are differentiating, not merely be true at one point, and each side must define a differentiable function of the same variable in the part of the domain where you are working.

Before applying, check: confirm that the equation is being used as an identity or implicit relation, and that both sides have derivatives in the current setting.

  • If the equation is only true at one isolated point, differentiating both sides can create a false new equation; the move is not valid there.
  • If one side has a corner, cusp, vertical tangent, or domain break where you want to differentiate, the move is not valid there.
  • In implicit-differentiation problems, treating yy as y(x)y(x) is part of the setup; then both sides must still be differentiable with respect to xx.

Want the complete framework behind this guide? Read Masterful Learning.


Common Failure Modes

Failure mode: differentiate a one-point coincidence or a non-differentiable equation as though it were a differentiable relation → the new derivative equation is not justified and can be false.

Debug: ask “does this relation hold in the setting I am differentiating, and do both sides have derivatives there?” before writing a new line.


Elaborative Encoding

Use these questions to build deep understanding. (See Elaborative Encoding for the full method.)

Within the Principle

  • Why does the move preserve equality only for a relation you are legitimately differentiating, rather than for every equation that happens to be true at one point?
  • In an implicit equation like x2+y2=25x^2+y^2=25, why does differentiating both sides create a yy' term instead of treating yy like a constant?

For the Principle

  • How do you decide whether the equation is an identity, an implicit relation, or only an equation-to-solve? Why does that distinction decide whether differentiate-both-sides is even available?
  • What changes if a relation holds on an interval but one side fails to be differentiable at an isolated point inside that interval?

Between Principles

  • How does differentiate-both-sides differ from the derivative chain rule? One authorizes acting on the whole equation; the other authorizes differentiating a composite expression on one side. Where do they appear together in an implicit-differentiation chain?

Generate an Example

  • Construct an equation that is true at one point but not as a relation in a neighborhood, and explain why differentiating both sides there would create a false derivative equation.

Retrieval Practice

Answer from memory, then click to reveal and check. (See Retrieval Practice for the full method.)

State the move in one sentence: _____If u(x)=v(x) is the relation you are differentiating, apply d/dx to both sides to get u'(x)=v'(x).
Write the canonical pattern: _____u(x)=v(x)u(x)=v(x)u(x)=v(x) \Rightarrow u'(x)=v'(x)
State the canonical condition: _____identity or implicit relation; u and v differentiable

Practice Ground

Use these exercises to build move-selection fluency. (See Self-Explanation for how to use worked examples effectively.)

Procedure Walkthrough

Starting from x2+y2=25x^2 + y^2 = 25, differentiate both sides with respect to xx.

Assume yy is a differentiable function of xx.

StepExpressionOperation
0x2+y2=25x^2 + y^2 = 25
1ddx(x2+y2)=ddx(25)\dfrac{d}{dx}(x^2 + y^2) = \dfrac{d}{dx}(25)Differentiate both sides — valid because x2+y2=25x^2+y^2=25 is the relation being studied and both sides are differentiable with respect to xx
2ddx(x2)+ddx(y2)=0\dfrac{d}{dx}(x^2) + \dfrac{d}{dx}(y^2) = 0Derivative sum rule on the left; derivative of a constant on the right
32x+2yy=02x + 2y\,y' = 0Power rule on x2x^2 and chain rule on y2y^2

Drills

Format A: Forward step

Apply the move, then simplify the derivative expressions enough to make the new equation readable.


Differentiate both sides of the identity

sin2x+cos2x=1\sin^2 x + \cos^2 x = 1

Reveal

ddx(sin2x+cos2x)=ddx(1)2sinxcosx2cosxsinx=0\frac{d}{dx}(\sin^2 x+\cos^2 x)=\frac{d}{dx}(1) \Rightarrow 2\sin x\cos x - 2\cos x\sin x = 0

This is legal because sin2x+cos2x=1\sin^2 x + \cos^2 x = 1 is an identity, and each side is differentiable for all real xx.


Assume yy is differentiable as a function of xx. Differentiate both sides of

ey=x+ye^y = x + y

Reveal

ddx(ey)=ddx(x+y)eyy=1+y\frac{d}{dx}(e^y)=\frac{d}{dx}(x+y) \Rightarrow e^y y' = 1 + y'

This is a legal implicit-differentiation step: the relation is being studied as a curve, and both sides are differentiable with respect to xx.


Assume yy is differentiable as a function of xx. Differentiate both sides of

xy+y2=6xy + y^2 = 6

Reveal

ddx(xy+y2)=ddx(6)xy+y+2yy=0\frac{d}{dx}(xy+y^2)=\frac{d}{dx}(6) \Rightarrow x y' + y + 2y\,y' = 0

Differentiate the whole relation first, then use the product rule and chain rule inside the new derivative equation.


[Near-miss — negative] At x=1x=1, can you differentiate both sides of

x=x2?x = x^2?

Reveal

No. The displayed equation is true at x=1x=1, but it is not the relation you are differentiating in any neighborhood of x=1x=1.

If you tried the move anyway, you would get 1=2x1 = 2x, and then 1=21=2 at x=1x=1. This is the key near-miss: one-point truth is not enough. Differentiate-both-sides acts on a differentiable relation, not on an isolated coincidence.


Format B: Action label

Name the move being used, and say why it is or is not legal.


What move takes this equation to the next line? Why is it valid?

x2+y2=16ddx(x2+y2)=ddx(16)x^2 + y^2 = 16 \quad\longrightarrow\quad \frac{d}{dx}(x^2+y^2)=\frac{d}{dx}(16)

Reveal

Differentiate both sides. It is valid because x2+y2=16x^2+y^2=16 is the relation being studied and both sides are differentiable with respect to xx.


What move is used first in the chain below?

ey=x+y    ddx(ey)=ddx(x+y)    eyy=1+ye^y = x + y \;\longrightarrow\; \frac{d}{dx}(e^y)=\frac{d}{dx}(x+y) \;\longrightarrow\; e^y y' = 1 + y'

Reveal

The first move is differentiate both sides. After that, the later simplification uses the derivative sum rule on x+yx+y and the chain rule on eye^y.

This distinction matters: the whole equation is transformed first; the term-by-term derivative rules come afterward.


[Negative] A student writes

x3+1=ex3x2=exx^3 + 1 = e^x \quad\longrightarrow\quad 3x^2 = e^x

Is the move legal? Explain the exact condition failure.

Reveal

Illegal. This is an equation-to-solve, not an identity or implicit relation being differentiated.

Even though both expressions are differentiable, the move has no relation to act on here. Differentiability alone is not enough; the equality must be the differentiable relation under study.


Format C: Transition identification and eligibility

Locate where the move appears, or decide whether the equation is eligible for it.


Which transition uses differentiate both sides?

TransitionFromTo
0→1x2+y2=1x^2 + y^2 = 1ddx(x2+y2)=ddx(1)\dfrac{d}{dx}(x^2+y^2)=\dfrac{d}{dx}(1)
1→2ddx(x2+y2)=ddx(1)\dfrac{d}{dx}(x^2+y^2)=\dfrac{d}{dx}(1)ddx(x2)+ddx(y2)=0\dfrac{d}{dx}(x^2)+\dfrac{d}{dx}(y^2)=0
2→3ddx(x2)+ddx(y2)=0\dfrac{d}{dx}(x^2)+\dfrac{d}{dx}(y^2)=02x+2yy=02x+2y\,y'=0
Reveal

Transition 0→1 uses differentiate both sides.

Transition 1→2 uses the derivative sum rule and constant rule. Transition 2→3 uses the power rule and chain rule.


[Negative] Which of these are eligible for differentiate-both-sides in the stated setting? Give a one-line reason for each.

  1. sin2x+cos2x=1\sin^2 x + \cos^2 x = 1 for all xx
  2. x=x2x = x^2 at x=1x=1
  3. x2+y2=9x^2 + y^2 = 9, with yy differentiable as a function of xx
  4. x=x2|x| = \sqrt{x^2} at x=0x=0
Reveal
  1. Eligible — it is an identity, and both sides are differentiable for all xx.
  2. Not eligible — it is true only at one isolated point, not as a relation in a neighborhood.
  3. Eligible — it is the implicit relation being studied, and the setup assumes yy is differentiable.
  4. Not eligible — although the equality is true, neither side is differentiable at x=0x=0.

This is the real eligibility check: are you differentiating a genuine relation, and do both sides have derivatives in that setting?


In the implicit-differentiation chain below, which step is the differentiate-both-sides step, and which step uses the derivative chain rule?

x3+y3=7ddx(x3+y3)=ddx(7)3x2+3y2y=0x^3 + y^3 = 7 \,\longrightarrow\, \frac{d}{dx}(x^3+y^3)=\frac{d}{dx}(7) \,\longrightarrow\, 3x^2 + 3y^2 y' = 0

Reveal
  • The differentiate-both-sides step is the first arrow: x3+y3=7ddx(x3+y3)=ddx(7)x^3 + y^3 = 7 \to \dfrac{d}{dx}(x^3+y^3)=\dfrac{d}{dx}(7).
  • The chain rule appears in the second arrow when ddx(y3)\dfrac{d}{dx}(y^3) becomes 3y2y3y^2 y'.

The whole-equation move and the within-expression move are different rules that appear back-to-back.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem: Starting from x2+xy+y2=12x^2 + xy + y^2 = 12, differentiate both sides with respect to xx. Assume yy is differentiable as a function of xx.

Full solution
StepExpressionMove
0x2+xy+y2=12x^2 + xy + y^2 = 12
1ddx(x2+xy+y2)=ddx(12)\dfrac{d}{dx}(x^2 + xy + y^2)=\dfrac{d}{dx}(12)Differentiate both sides
2ddx(x2)+ddx(xy)+ddx(y2)=0\dfrac{d}{dx}(x^2) + \dfrac{d}{dx}(xy) + \dfrac{d}{dx}(y^2) = 0Derivative sum rule and constant rule
32x+(xy+y)+2yy=02x + (x y' + y) + 2y\,y' = 0Product rule on xyxy and chain rule on y2y^2
42x+y+(x+2y)y=02x + y + (x + 2y)y' = 0Group the yy' terms as a genuine algebraic state change

PrincipleRelationship
Derivative at a pointFoundational meaning of a derivative; differentiate-both-sides assumes each side has a derivative to take
Derivative sum ruleUsually appears immediately after differentiating both sides when a side contains added terms
Derivative chain rulePowers implicit differentiation: after differentiating both sides, composite terms such as y2y^2 and eye^y create the yy' factor through the chain rule

FAQ

What does “differentiate both sides” mean?

It means applying ddx\dfrac{d}{dx} to the entire identity or implicit relation u(x)=v(x)u(x)=v(x) so that the next line is u(x)=v(x)u'(x)=v'(x). The move acts on the equation first; only after that do you simplify each derivative using rules like the sum rule, product rule, or chain rule.

It is legal when the displayed equality is the differentiable relation you are studying and both sides are differentiable in that setting. If you are differentiating an identity, the identity must hold on the interval you are using. If you are differentiating an implicit relation, the relation is treated locally and each side must still have a derivative there.

Why is the move common in implicit differentiation?

Implicit equations like x2+y2=25x^2+y^2=25 do not isolate yy first. Differentiating both sides turns the whole relation into a derivative equation, and then the chain rule converts derivatives of yy-expressions into terms involving yy'. That is why the move is often the first step in implicit differentiation.

What goes wrong when one side is not differentiable?

The transformed equation includes a derivative that does not exist, so the move has no theorem behind it. This is why near-miss examples like x=x2|x|=\sqrt{x^2} at x=0x=0 matter: the equality is true, but the condition fails, so you cannot differentiate both sides there.

Why can’t I use this on any equation that happens to be true at one point?

Because the move differentiates a relation, not a coincidence. An equation like x=x2x=x^2 is true at x=1x=1, but it is not true as a relation in a neighborhood of x=1x=1. Differentiating both sides would create the false new equation 1=2x1=2x, which immediately breaks at that same point.

Do I simplify the equation before or after differentiating both sides?

Either can be correct, but they answer different tactical questions. If simplifying first reveals an easier identity, that can be better. If the goal is implicit differentiation or preserving a relation between variables, differentiating both sides first is often the cleanest entry point. The key is that the condition must still hold wherever you choose to apply the move.


How This Fits in Unisium

Differentiate both sides is a move-selection principle about relation type as much as derivative mechanics. Unisium trains it as the entry step that converts an identity or implicit relation into a derivative equation, then layers follow-up rules such as the derivative sum rule and derivative chain rule to finish the chain. The goal is to make both guards automatic: do I have a real relation to differentiate, and do both sides have derivatives in this setting?

Explore further:

  • Calculus Subdomain Map — Return to the calculus map to see where implicit differentiation begins inside the derivative application layer
  • Derivative chain rule — the rule that creates yy' terms after differentiate-both-sides in implicit equations
  • Self-Explanation — use the drills above to explain not only what move is legal, but why tempting alternatives fail
  • Retrieval Practice — make the equation and condition retrievable on demand

Ready to master differentiate both sides? Start practicing with Unisium or explore the full learning framework in Masterful Learning.

Masterful Learning book cover

Masterful Learning

The study system for physics, math, & programming that works: retrieval, connection, explanation, problem solving, and more.

Read the book (opens in new tab) ISBN 979-8-2652-9642-9

Ready to apply this strategy?

Join Unisium and start implementing these evidence-based learning techniques.

Start Learning with Unisium Read More Guides

Want the complete framework? This guide is from Masterful Learning.

Learn about the book →