The quotient rule: for \( v(x) \neq 0 \),
$$\frac{d}{dx}\left(\frac{u}{v}\right) = \frac{u'\,v - u\,v'}{v^{2}}$$
Memory trick: “low d-high minus high d-low, over the square of what’s below.” (Low = denominator, high = numerator, d = derivative of.)
The order in the numerator matters because of the minus sign. Always start with the derivative of the top.
You reach for the quotient rule when one function of \( x \) is divided by another and the fraction does not simplify: rational functions like \( \frac{x^2+1}{x-3} \), and mixtures like \( \frac{\sin x}{x} \) or \( \frac{\ln x}{x} \). It is also how the derivatives of tangent, secant, cotangent and cosecant are found.
The intuition: why a minus sign and a square
Think about what each part of a fraction does. If the numerator grows, the fraction grows, so \( u' \) enters with a plus sign. If the denominator grows, you are dividing by something bigger, so the fraction shrinks. That is why the \( v' \) term is subtracted.
The simplest case shows where the square comes from. With a constant numerator of 1, the rule gives the reciprocal rule:
$$\frac{d}{dx}\frac{1}{v} = -\frac{v'}{v^2}$$
For \( v = x \) this is \( -\frac{1}{x^2} \), which matches the power rule applied to \( x^{-1} \). The \( v^2 \) is simply what the power rule produces when it lowers the exponent from \( -1 \) to \( -2 \).
Where it comes from
Write the quotient as a product, \( \frac{u}{v} = u\cdot v^{-1} \), and use the product rule plus the chain rule:
$$\begin{aligned} \frac{d}{dx}\left(u\,v^{-1}\right) &= u'v^{-1} + u\cdot(-v^{-2}v') \\ &= \frac{u'}{v} - \frac{uv'}{v^2} \\ &= \frac{u'v - uv'}{v^2} \end{aligned}$$
The last step puts both terms over the common denominator \( v^2 \) by multiplying the first by \( \frac{v}{v} \).
A second derivation. Call the quotient \( q = \frac{u}{v} \), so \( u = qv \). Differentiate both sides with the product rule: \( u' = q'v + qv' \). Solve for \( q' \) and replace \( q \) with \( \frac{u}{v} \):
$$q' = \frac{u' - qv'}{v} = \frac{u'v - uv'}{v^2}$$
Both routes land on the same formula, which is a good sign you have remembered it correctly.
A 4-step method
- Label the numerator \( u \) and the denominator \( v \).
- Differentiate each separately to get \( u' \) and \( v' \).
- Substitute into \( \frac{u'v - uv'}{v^2} \), with brackets around every piece.
- Simplify the numerator only. Expand and collect terms on top, but leave the denominator squared and factored.
Worked examples
1. \( \frac{x^2 + 1}{x - 3} \). Here \( u' = 2x \) and \( v' = 1 \):
$$\frac{2x(x-3) - (x^2+1)(1)}{(x-3)^2} = \frac{x^2 - 6x - 1}{(x-3)^2}$$
2. \( \frac{\sin x}{x} \). \( u' = \cos x \), \( v' = 1 \):
$$\frac{x\cos x - \sin x}{x^2}$$
3. \( \frac{x}{x^2+1} \). \( u' = 1 \), \( v' = 2x \):
$$\frac{(x^2+1) - x\cdot 2x}{(x^2+1)^2} = \frac{1 - x^2}{(x^2+1)^2}$$
The derivative is zero at \( x = \pm1 \), the maximum and minimum of this curve.
4. \( \frac{e^x}{x} \): \( \frac{xe^x - e^x}{x^2} = \frac{e^x(x-1)}{x^2} \). Factoring out \( e^x \) shows at once that the only horizontal tangent is at \( x = 1 \).
5. \( \frac{\ln x}{x} \): \( \frac{\frac1x\cdot x - \ln x}{x^2} = \frac{1 - \ln x}{x^2} \). The top is zero when \( \ln x = 1 \), so this curve peaks at \( x = e \).
6. \( \frac{x^2 - 1}{x^2 + 1} \) (a common exam problem). Both parts have derivative \( 2x \):
$$\begin{aligned} &\frac{2x(x^2+1) - (x^2-1)\,2x}{(x^2+1)^2} \\ &= \frac{2x^3 + 2x - 2x^3 + 2x}{(x^2+1)^2} = \frac{4x}{(x^2+1)^2} \end{aligned}$$
Notice how the minus sign is distributed across the whole second product. That is where most algebra slips happen.
7. \( \frac{\sqrt x}{x + 1} \) (fractional power on top). With \( u' = \frac{1}{2\sqrt x} \) and \( v' = 1 \), the numerator is \( \frac{x+1}{2\sqrt x} - \sqrt x \). Put it over \( 2\sqrt x \) to get \( \frac{1 - x}{2\sqrt x} \), then divide by \( (x+1)^2 \):
$$\frac{d}{dx}\frac{\sqrt x}{x+1} = \frac{1 - x}{2\sqrt x\,(x+1)^2}$$
8. Average cost (an applied problem). A workshop has fixed costs of 2,000 dollars and each item costs 10 dollars to make, so producing \( x \) items costs \( 2000 + 10x \) dollars. The average cost per item is the total divided by the quantity:
$$A(x) = \frac{2000 + 10x}{x}$$
The quotient rule gives a numerator of \( 10x - (2000 + 10x)(1) = -2000 \), so
$$A'(x) = -\frac{2000}{x^2}$$
The derivative is negative for every positive \( x \), so the average cost always falls as production grows, because the fixed cost is spread over more items. It also falls more slowly as \( x \) gets large, which matches the \( x^2 \) in the denominator. You could get the same result by splitting the fraction into \( \frac{2000}{x} + 10 \) first, and that agreement is a useful check.
How to check a quotient rule answer
Because the algebra is where most errors happen, it pays to have a quick check.
- Redo it as a product. Differentiate \( u\,v^{-1} \) instead and simplify. If both answers agree after combining fractions, you are almost certainly right.
- Test a special point. For example 3, the curve \( \frac{x}{x^2+1} \) has its highest point at \( x = 1 \), so the derivative must be zero there. Plugging in gives \( \frac{1 - 1}{4} = 0 \), as it should.
- Check the sign. If the fraction is clearly increasing somewhere, the derivative must be positive there. A sign that is wrong everywhere usually means the numerator was written in reverse order.
The famous ones: tan x and sec x
Applying the rule to \( \frac{\sin x}{\cos x} \) gives
$$\frac{\cos x\cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x$$
because \( \cos^2 x + \sin^2 x = 1 \). The full working is in derivative of tan x. The reciprocal rule does the same job for \( \sec x = \frac{1}{\cos x} \): the derivative is \( \frac{\sin x}{\cos^2 x} = \sec x\tan x \), as shown in derivative of sec x.
When NOT to use the quotient rule
- Constant denominator. \( \frac{x^3}{5} \) is just \( \frac15 x^3 \): derivative \( \frac35 x^2 \).
- Constant numerator. \( \frac{4}{x^2} = 4x^{-2} \): derivative \( -8x^{-3} \) by the power rule.
- Simplifiable fractions. \( \frac{3x^2 + 2x}{x} = 3x + 2 \) (for \( x \neq 0 \)), so the derivative is 3.
Common mistakes
- Reversing the numerator to \( uv' - u'v \). The sign flips the whole answer.
- Forgetting to square the denominator.
- Expanding the denominator \( (x-3)^2 \). Leave it factored; it is simpler and shows where the derivative is undefined.
- Losing the minus sign on the second product. In example 6, \( -(x^2-1)\,2x \) becomes \( -2x^3 + 2x \), not \( -2x^3 - 2x \).
- Skipping the chain rule for \( v' \). For \( \frac{1}{(x^2+1)^2} \), \( v' = 2(x^2+1)\cdot 2x \), and the derivative is \( -\frac{4x}{(x^2+1)^3} \) after cancelling.
Where it’s used
Beyond the trigonometric derivatives, the quotient rule is the standard tool for analyzing rational functions: finding horizontal tangents, increasing and decreasing intervals, and critical points. In economics, average cost is total cost divided by quantity, and its derivative comes from the quotient rule. It also shows up whenever a rate is itself a ratio, such as concentration, which is amount divided by volume.
Try it yourself
Step-by-step solver·Exact symbolic engine
Interactive Calculus Problem Solver
Derivatives, antiderivatives, definite and improper integrals, and limits. Every answer comes with the rules used, and antiderivatives are verified by differentiating them back.
Input syntax
- Powers
x^2, rootssqrt(x),cbrt(x), absolute value|x| - Implicit multiplication works:
3x sin(2x) sin cos tan sec csc cot,asin acos atan,sinh cosh tanhe^xorexp(x);ln(x)andlog(x)are both the natural log- Constants
piande; bounds acceptinfand-inf
The derivative calculator shows the \( u \), \( v \), \( u' \) and \( v' \) it used, so you can compare each piece with your own work.
Practice problems
Try these before checking the answers.
- \( \frac{d}{dx}\frac{x^2}{x + 1} \)
- \( \frac{d}{dx}\frac{\cos x}{x} \)
- \( \frac{d}{dx}\frac{e^x}{1 + e^x} \)
- \( \frac{d}{dx}\frac{x}{x - 2} \)
- \( \frac{d}{dx}\frac{2x + 3}{3x - 1} \)
- \( \frac{d}{dx}\frac{\sin x}{1 + \cos x} \)
- \( \frac{d}{dx}\cot x \), using \( \cot x = \frac{\cos x}{\sin x} \)
Answers: (1) \( \frac{x^2 + 2x}{(x+1)^2} \); (2) \( \frac{-x\sin x - \cos x}{x^2} \); (3) \( \frac{e^x}{(1+e^x)^2} \); (4) \( -\frac{2}{(x-2)^2} \); (5) \( -\frac{11}{(3x-1)^2} \); (6) \( \frac{1}{1 + \cos x} \); (7) \( -\csc^2 x \).
Hints: in (6) the numerator simplifies to \( \cos x + 1 \) using \( \sin^2 x + \cos^2 x = 1 \), and one factor cancels; in (7) the same identity turns the numerator into \( -1 \).
FAQ
Can I always use the product rule instead?
Yes. Writing \( \frac{u}{v} = u\,v^{-1} \) always works; it just gives the answer in a different-looking form.
Why is there a minus sign in the quotient rule?
Because increasing the denominator makes the fraction smaller. The \( uv' \) term measures that effect, so it is subtracted.
How do I remember which term comes first?
Start with the derivative of the top: “low d-high” first. If you are unsure, test the formula on \( \frac{1}{x} \), whose derivative must be \( -\frac{1}{x^2} \).
Do I have to simplify the answer?
Not always, but simplify the numerator if you need to find where the derivative is zero. Leave the squared denominator factored.
What is the reciprocal rule?
It is the special case of the quotient rule with a numerator of 1: the derivative of \( \frac{1}{v} \) is \( -\frac{v'}{v^2} \). It is worth memorizing on its own, because it handles secant, cosecant and any “one over something” expression in a single step.
What is the quotient rule for integrals?
There isn’t a direct one. For fractions, try u-substitution or partial fractions.
Further reading
- Product and Quotient Rule (Paul’s Online Math Notes) — more quotient rule examples, including when to simplify first.
- Differentiation Rules (OpenStax Calculus Volume 1, Section 3.3) — the textbook statement of the quotient rule with worked exercises.
- Quotient rule (Wikipedia) — five different proofs, from limits to implicit differentiation.
Calculators for this topic
Keep learning
Implicit Differentiation: Step-by-Step Method with Examples
How to find dy/dx when y isn’t isolated. A 4-step implicit differentiation method with circle, x³+y³=6xy and trig examples, plus tangent lines.
Chain Rule Explained: Formula, Steps and 8 Examples
The chain rule differentiates composite functions: d/dx f(g(x)) = f'(g(x))·g'(x). Clear steps, 8 worked examples and the most common mistakes.

