Quotient Rule: Differentiating Ratios of Functions

By Vegard Gjerde Based on Masterful Learning 10 min read
derivative-quotient-rule calculus derivatives math learning-strategies

The quotient rule differentiates a ratio by rewriting ddx[f(x)g(x)]\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] as f(x)g(x)f(x)g(x)(g(x))2\frac{f'(x)g(x)-f(x)g'(x)}{(g(x))^2}. It applies when ff and gg are differentiable and g(x)0g(x)\neq 0, so the quotient is defined. Checking that condition before substituting into the formula is a core fluency skill in the Unisium Study System.

Unisium hero image titled Quotient Rule showing the derivative formula and conditions card.
The quotient rule: ddx[fg]=fgfgg2\frac{d}{dx}\left[\frac{f}{g}\right] = \frac{f'g - fg'}{g^2}, valid wherever ff and gg are differentiable and g(x)0g(x) \neq 0.

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


The Principle

The move: Differentiate a ratio f(x)g(x)\frac{f(x)}{g(x)} by applying the formula f(x)g(x)f(x)g(x)(g(x))2\frac{f'(x)\,g(x) - f(x)\,g'(x)}{(g(x))^2}.

The invariant: The result is the exact derivative of the quotient — it produces an expression equal to (fg)\left(\frac{f}{g}\right)' for every xx where both functions are differentiable and g(x)0g(x) \neq 0.

Pattern: ddx(f(x)g(x))f(x)g(x)f(x)g(x)(g(x))2\frac{d}{dx}\left(\frac{f(x)}{g(x)}\right) \quad\longrightarrow\quad \frac{f'(x)g(x)-f(x)g'(x)}{(g(x))^2}

Legal ✓Illegal ✗
ddx(x2+1x2)2x(x2)(x2+1)1(x2)2\dfrac{d}{dx}\left(\dfrac{x^2+1}{x-2}\right) \to \dfrac{2x(x-2)-(x^2+1)\cdot 1}{(x-2)^2}ddx(x2+1x(x1))x=0↛2xx(x1)(x2+1)(2x1)(x(x1))2x=0\dfrac{d}{dx}\left(\dfrac{x^2+1}{x(x-1)}\right)\big\rvert_{x=0} \not\to \dfrac{2x\,x(x-1)-(x^2+1)(2x-1)}{(x(x-1))^2}\big\rvert_{x=0}

The right column is blocked because at x=0x=0 the denominator factor is g(0)=0g(0)=0, so the quotient is undefined there and the quotient-rule move is not available.


Conditions of Applicability

Condition: f and g differentiable; g(x)0g(x)\neq 0

Before applying, check: Confirm g(x)0g(x) \neq 0 on the domain (or at the point) where you are differentiating — if g(x0)=0g(x_0) = 0, the quotient f/gf/g is not even defined at x0x_0, and no derivative exists there.

  • When g(x)=0g(x) = 0 at a point: The quotient rule cannot be applied at that point. The denominator factor (g(x))2(g(x))^2 in the formula would be zero, and the underlying function f/gf/g is undefined.
  • When gg is not differentiable at a point: Even if g(x)0g(x) \neq 0 there, the quotient rule requires gg to be differentiable so that gg' can be computed.

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


Common Failure Modes

Failure mode: writing ddx ⁣[f(x)g(x)]=f(x)g(x)\dfrac{d}{dx}\!\left[\dfrac{f(x)}{g(x)}\right] = \dfrac{f'(x)}{g'(x)} — distributing the derivative operator to numerator and denominator separately → this produces the wrong formula; the denominator g2g^2 is lost, and the cross term fgf \cdot g' is dropped entirely.

Debug: ask “do I have fgfgf'g - fg' in the numerator and g2g^2 in the denominator?” If either part is missing, the formula is wrong.


Elaborative Encoding

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

Within the Principle

  • What role does each term in the numerator f(x)g(x)f(x)g(x)f'(x)\,g(x) - f(x)\,g'(x) play — why does the formula need both fgf'g and fgfg'?
  • Why does the denominator involve (g(x))2(g(x))^2 rather than just g(x)g(x)?

For the Principle

  • How do you decide whether g(x)0g(x) \neq 0 holds on the domain before applying the rule?
  • What step would you add if you were unsure whether the denominator could be zero?

Between Principles

  • How does the quotient rule relate to the product rule — can you derive the quotient rule by writing f/g=fg1f/g = f \cdot g^{-1} and applying the product rule?

Generate an Example

  • Describe a problem where the quotient rule appears necessary but you could avoid it by simplifying the fraction first. What does that tell you about when to reach for the quotient rule?

Retrieval Practice

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

State the quotient rule move in one sentence: _____Differentiate f(x)/g(x) by computing [f-prime times g minus f times g-prime] all divided by g squared.
Write the canonical quotient rule formula: _____ddx(f(x)g(x))=f(x)g(x)f(x)g(x)(g(x))2\frac{d}{dx}\left(\frac{f(x)}{g(x)}\right)=\frac{f'(x)g(x)-f(x)g'(x)}{(g(x))^2}
State the canonical condition: _____f and g differentiable;g(x)0\text{f and g differentiable};\, g(x)\neq 0

Practice Ground

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

Procedure Walkthrough

Compute ddx ⁣[x2+1x2]\dfrac{d}{dx}\!\left[\dfrac{x^2+1}{x-2}\right].

Identify: f(x)=x2+1f(x) = x^2+1, g(x)=x2g(x) = x-2. Note g(x)=0g(x) = 0 only when x=2x = 2, so the rule applies for all x2x \neq 2.

StepExpressionOperation
0ddx(x2+1x2)\dfrac{d}{dx}\left(\dfrac{x^2+1}{x-2}\right)
12x(x2)(x2+1)1(x2)2\dfrac{2x(x-2)-(x^2+1)\cdot 1}{(x-2)^2}Apply quotient rule after checking x2x \neq 2 so g(x)0g(x)\neq 0
22x24xx21(x2)2\dfrac{2x^2-4x-x^2-1}{(x-2)^2}Expand the numerator
3x24x1(x2)2\dfrac{x^2-4x-1}{(x-2)^2}Collect like terms

Drills

Format A — Forward step (apply the quotient rule)

Apply the quotient rule once and simplify the numerator.

ddx ⁣[xx2+4]\frac{d}{dx}\!\left[\frac{x}{x^2+4}\right]

Reveal

f=xf = x, g=x2+4g = x^2+4; f=1f' = 1, g=2xg' = 2x. Note g(x)=x2+4>0g(x) = x^2+4 > 0 for all xx, so the condition holds everywhere.

1(x2+4)x2x(x2+4)2=4x2(x2+4)2\frac{1\cdot(x^2+4)\,-\,x\cdot 2x}{(x^2+4)^2} = \frac{4-x^2}{(x^2+4)^2}


Apply the quotient rule once. State which values of xx must be excluded.

ddx ⁣[2x31x+3]\frac{d}{dx}\!\left[\frac{2x^3-1}{x+3}\right]

Reveal

f=2x31f = 2x^3-1, g=x+3g = x+3; f=6x2f' = 6x^2, g=1g' = 1. Excluding x=3x = -3 (where g(3)=0g(-3) = 0):

6x2(x+3)(2x31)1(x+3)2=4x3+18x2+1(x+3)2\frac{6x^2(x+3)\,-\,(2x^3-1)\cdot 1}{(x+3)^2} = \frac{4x^3+18x^2+1}{(x+3)^2}


Apply the quotient rule. State the excluded value before computing.

ddx ⁣[exx2]\frac{d}{dx}\!\left[\frac{e^x}{x^2}\right]

Reveal

f=exf = e^x, g=x2g = x^2; f=exf' = e^x, g=2xg' = 2x. Excluded: x=0x = 0 (where g(0)=0g(0) = 0).

exx2ex2xx4=ex(x2)x3\frac{e^x\cdot x^2 - e^x\cdot 2x}{x^4} = \frac{e^x(x-2)}{x^3}


[Near-miss: applicability check] Is the quotient rule applicable to h(x)=x+1x21h(x) = \dfrac{x+1}{x^2-1} at x=1x = 1, x=1x = -1, and x=2x = 2?

Reveal

g(x)=x21=(x+1)(x1)g(x) = x^2 - 1 = (x+1)(x-1).

  • At x=1x = 1: g(1)=0g(1) = 0 — the function hh is not defined at x=1x = 1. The quotient rule does not apply.
  • At x=1x = -1: g(1)=0g(-1) = 0 — same situation. Not applicable.
  • At x=2x = 2: g(2)=30g(2) = 3 \neq 0 — the condition holds; the quotient rule applies here.

The expression looks like a well-formed quotient, but the condition g(x)0g(x) \neq 0 fails at two points. Note: for x±1x \neq \pm 1, h(x)=x+1(x+1)(x1)=1x1h(x) = \frac{x+1}{(x+1)(x-1)} = \frac{1}{x-1}, so the derivative at eligible points simplifies to 1(x1)2-\frac{1}{(x-1)^2}.


Use the quotient rule to verify that ddx[tanx]=sec2x\dfrac{d}{dx}[\tan x] = \sec^2 x. Assume cosx0\cos x \neq 0.

ddx ⁣[sinxcosx]\frac{d}{dx}\!\left[\frac{\sin x}{\cos x}\right]

Reveal

f=sinxf = \sin x, g=cosxg = \cos x; f=cosxf' = \cos x, g=sinxg' = -\sin x. Condition: cosx0\cos x \neq 0.

cosxcosxsinx(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x\frac{\cos x\cdot\cos x - \sin x\cdot(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x


Format B — Action label (identify the rule and its setup)

State which differentiation rule was used and identify ff and gg.

ddx ⁣[xx2+4]    (x2+4)x2x(x2+4)2\frac{d}{dx}\!\left[\frac{x}{x^2+4}\right] \;\longrightarrow\; \frac{(x^2+4) - x\cdot 2x}{(x^2+4)^2}

Reveal

Quotient rule, with f(x)=xf(x) = x and g(x)=x2+4g(x) = x^2+4. The form fgfgf'g - fg' over g2g^2 is recognizable: numerator is 1(x2+4)x2x1\cdot(x^2+4) - x\cdot 2x, denominator is (x2+4)2(x^2+4)^2.


Below is a student’s computation. What rule was applied, and was it applied correctly? Identify the error if any.

ddx ⁣[x2+3x+1]  =?  2x1=2x\frac{d}{dx}\!\left[\frac{x^2+3}{x+1}\right] \;\overset{?}{=}\; \frac{2x}{1} = 2x

Reveal

Invalid move. The student differentiated the numerator and denominator separately and divided — this is not a valid rule. The quotient rule requires fgfgg2\frac{f'g - fg'}{g^2}, not fg\frac{f'}{g'}.

Correct result: f=x2+3f = x^2+3, g=x+1g = x+1; f=2xf' = 2x, g=1g' = 1.

2x(x+1)(x2+3)1(x+1)2=x2+2x3(x+1)2=(x+3)(x1)(x+1)2\frac{2x(x+1) - (x^2+3)\cdot 1}{(x+1)^2} = \frac{x^2+2x-3}{(x+1)^2} = \frac{(x+3)(x-1)}{(x+1)^2}


Identify which differentiation rule was applied at each labeled arrow.

x2sinxh(x)    P    2xsinx+x2cosx    Q    2xsinx+x2cosxcos2x+sin2x\underbrace{x^2 \sin x}_{h(x)} \;\xrightarrow{\;P\;}\; 2x\sin x + x^2\cos x \;\xrightarrow{\;Q\;}\; \frac{2x\sin x + x^2\cos x}{\cos^2 x + \sin^2 x}

(Arrow QQ produces the ratio above. Arrow PP produces the derivative of the numerator.)

Reveal

Arrow PP: Product rule — differentiating x2sinxx^2 \sin x gives 2xsinx+x2cosx2x\sin x + x^2\cos x.

Arrow QQ: Not the quotient rule — dividing by cos2x+sin2x=1\cos^2 x + \sin^2 x = 1 is a Pythagorean identity simplification, not a differentiation step. No differentiation rule is applied at QQ.

(This illustrates that an expression that looks like a quotient is not automatically the result of the quotient rule.)


Format C — Transition identification (multi-step chain)

A student differentiates k(x)=(x+1)2x2+1k(x) = \dfrac{(x+1)^2}{x^2+1} in two ways. Which version uses the quotient rule, and at which step?

Version A: Expand numerator first: (x+1)2=x2+2x+1(x+1)^2 = x^2+2x+1, so k=x2+2x+1x2+1=1+2xx2+1k = \dfrac{x^2+2x+1}{x^2+1} = 1 + \dfrac{2x}{x^2+1}. Then differentiate each term.

Version B: Apply the quotient rule directly to (x+1)2x2+1\dfrac{(x+1)^2}{x^2+1} with f=(x+1)2f = (x+1)^2, g=x2+1g = x^2+1.

Reveal

Version A uses the quotient rule on the sub-expression 2xx2+1\dfrac{2x}{x^2+1} (one term after splitting). The quotient rule appears in the middle of the computation, not as the first move.

Version B uses the quotient rule as the first and only transformation step, after which the result is expanded.

Both routes are valid since g(x)=x2+1>0g(x) = x^2+1 > 0 for all xx.

In version B: f=(x+1)2f = (x+1)^2, f=2(x+1)f' = 2(x+1); g=x2+1g = x^2+1, g=2xg' = 2x. k(x)=2(x+1)(x2+1)(x+1)22x(x2+1)2=2(x+1)(x2+1x(x+1))(x2+1)2=2(x+1)(1x)(x2+1)2k'(x) = \frac{2(x+1)(x^2+1) - (x+1)^2 \cdot 2x}{(x^2+1)^2} = \frac{2(x+1)(x^2+1-x(x+1))}{(x^2+1)^2} = \frac{2(x+1)(1-x)}{(x^2+1)^2}


In the derivation below, identify every step that uses the quotient rule (there may be more than one, or none at a given step).

StepMove
3x2+6x3x\dfrac{3x^2+6x}{3x}Identify as quotient
=x+2= x + 2Cancel 3x3x from numerator (algebraic, x0x \neq 0)
ddx[x+2]=1\dfrac{d}{dx}[x+2] = 1Differentiate after simplification
Reveal

No step uses the quotient rule. Step 1 is algebraic: 3x(x+2)3x=x+2\frac{3x(x+2)}{3x} = x+2 for x0x \neq 0. Step 2 differentiates a polynomial — power rule and sum rule only.

If instead you applied the quotient rule before simplifying, with f=3x2+6xf = 3x^2+6x and g=3xg = 3x:

(6x+6)3x(3x2+6x)3(3x)2=18x2+18x9x218x9x2=9x29x2=1\frac{(6x+6)\cdot 3x - (3x^2+6x)\cdot 3}{(3x)^2} = \frac{18x^2+18x - 9x^2-18x}{9x^2} = \frac{9x^2}{9x^2} = 1

Same result, but only valid for x0x \neq 0.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem: Compute h(x)h'(x) where h(x)=2x+1x2x+2h(x) = \dfrac{2x+1}{x^2-x+2}. Confirm the quotient rule condition holds before starting.

Full solution

Condition check: g(x)=x2x+2g(x) = x^2 - x + 2. Discriminant: (1)24(1)(2)=18=7<0(-1)^2 - 4(1)(2) = 1 - 8 = -7 < 0 and g(0)=2>0g(0) = 2 > 0, so g(x)>0g(x) > 0 for all real xx. The condition g(x)0g(x) \neq 0 holds everywhere — no values need to be excluded.

StepExpressionMove
0ddx(2x+1x2x+2)\dfrac{d}{dx}\left(\dfrac{2x+1}{x^2-x+2}\right)Start after confirming x2x+2>0x^2-x+2 > 0 for all real xx
12(x2x+2)(2x+1)(2x1)(x2x+2)2\dfrac{2(x^2-x+2)-(2x+1)(2x-1)}{(x^2-x+2)^2}Apply quotient rule: fgfgf'g - fg' over g2g^2
22x22x+4(4x21)(x2x+2)2\dfrac{2x^2-2x+4-(4x^2-1)}{(x^2-x+2)^2}Expand; (2x+1)(2x1)=4x21(2x+1)(2x-1)=4x^2-1
32x22x+5(x2x+2)2\dfrac{-2x^2-2x+5}{(x^2-x+2)^2}Collect like terms

h(x)=2x22x+5(x2x+2)2h'(x) = \frac{-2x^2-2x+5}{(x^2-x+2)^2}


PrincipleRelationship
Derivative Product RuleClosest sibling — the quotient rule can be derived by rewriting f/gf/g as fg1f \cdot g^{-1} and then using product-style structure with a derivative on the reciprocal
Derivative Chain RuleNeeded whenever the numerator or denominator has an inner function, because the quotient rule does not replace the chain rule inside those factors
Derivative Power RuleShows up in the reciprocal-derivative derivation and in many quotient examples where polynomial pieces inside the numerator or denominator still need differentiation
Derivative Sum RuleOften used to differentiate or simplify expanded numerator pieces after the quotient-rule structure is chosen

FAQ

What is the quotient rule?

The quotient rule is a differentiation formula for a ratio of two functions. If h(x)=f(x)/g(x)h(x) = f(x)/g(x), then h(x)=f(x)g(x)f(x)g(x)(g(x))2h'(x) = \frac{f'(x)\,g(x) - f(x)\,g'(x)}{(g(x))^2}, valid wherever ff and gg are differentiable and g(x)0g(x) \neq 0.

When is the quotient rule valid?

The condition has two parts: both ff and gg must be differentiable at the point, and g(x)0g(x) \neq 0 there. If g(x0)=0g(x_0) = 0, the function f/gf/g is undefined at x0x_0, so no derivative exists and the rule cannot be applied.

What goes wrong if I forget the condition?

If g(x0)=0g(x_0) = 0, the quotient f/gf/g is undefined at x0x_0, so the quotient rule cannot be applied there. The formula also becomes undefined because its denominator is (g(x0))2=0(g(x_0))^2 = 0. A more common authoring mistake is to compute a formally correct derivative expression but forget to exclude the zeros of gg from the domain statement.

How is the quotient rule different from the product rule?

The product rule handles f(x)g(x)f(x) \cdot g(x) and gives fg+fgf'g + fg' — both terms are additive. The quotient rule handles f(x)/g(x)f(x)/g(x) and gives (fgfg)/g2(f'g - fg')/g^2 — the numerator is a difference, and the denominator g2g^2 appears. You can derive the quotient rule from the product rule by writing f/g=fg1f/g = f \cdot g^{-1} and applying the chain rule to g1g^{-1}.

Can I always simplify the fraction before differentiating?

Yes — simplifying first is often cleaner and valid as long as you track any points where cancellation changes the domain. If h(x)=(x(x+1))/x=x+1h(x) = (x(x+1))/x = x+1 for x0x \neq 0, differentiating after simplification gives 11 and is correct, but the derivative is still undefined at x=0x = 0 even though the simplified form looks continuous there.

Does a mnemonic help with the quotient rule formula?

The phrase “low d-high minus high d-low over low squared” (where “low” = gg and “high” = ff) encodes the formula. Use it as a check after writing the formula, but always confirm the condition g(x)0g(x) \neq 0 before applying it.


How This Fits in Unisium

Within the calculus subdomain, the quotient rule is one of the core derivative-building moves in single-variable calculus, alongside the product rule and chain rule. In Unisium, it is trained as a conditional move: learners are repeatedly pushed to check whether g(x)0g(x) \neq 0 before applying the formula, so condition checking becomes part of the routine rather than an afterthought. The drill yard above mirrors how Unisium surfaces the move through forward-step exercises, action-label exercises, and transition-identification exercises — building both execution fluency and the ability to recognize where the rule applies in longer chains.

Explore further:

  • Calculus Subdomain Map — Return to the calculus hub to see where quotient work sits relative to the other derivative-structure rules
  • Principle Structures — See how the quotient rule sits alongside the product rule and chain rule in the calculus principle hierarchy
  • Elaborative Encoding — Build deep understanding of why the condition g(x)0g(x) \neq 0 is structural, not optional
  • Retrieval Practice — Make the formula and condition instantly accessible under exam pressure

Ready to practice the quotient rule? Start drilling 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 →