Operation Rules of Differentiation

The operation rules of differentiation are an essential tool for computing the derivatives of complicated functions. Mastering them lets you break the differentiation of a complicated function down into the differentiation of simple ones.

Sum and Difference Rule

Sum and Difference Rule

(u±v)′=u′±v′(u \pm v)' = u' \pm v'

Derivation:

Let f(x)=u(x)+v(x)f(x) = u(x) + v(x). Starting from the definition of the derivative: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

=lim⁡h→0[u(x+h)+v(x+h)]−[u(x)+v(x)]h= \lim_{h \to 0} \frac{[u(x + h) + v(x + h)] - [u(x) + v(x)]}{h}

=lim⁡h→0[u(x+h)−u(x)]+[v(x+h)−v(x)]h= \lim_{h \to 0} \frac{[u(x + h) - u(x)] + [v(x + h) - v(x)]}{h}

=lim⁡h→0u(x+h)−u(x)h+lim⁡h→0v(x+h)−v(x)h= \lim_{h \to 0} \frac{u(x + h) - u(x)}{h} + \lim_{h \to 0} \frac{v(x + h) - v(x)}{h}

=u′(x)+v′(x)= u'(x) + v'(x)

The difference case is proved in exactly the same way, giving (u−v)′=u′−v′(u - v)' = u' - v'.

Explanation: the derivative of the sum (difference) of two functions equals the sum (difference) of their derivatives.

Examples:

  • (x2+3x)′=(x2)′+(3x)′=2x+3(x^2 + 3x)' = (x^2)' + (3x)' = 2x + 3
  • (x3−x2)′=(x3)′−(x2)′=3x2−2x(x^3 - x^2)' = (x^3)' - (x^2)' = 3x^2 - 2x

Product Rule

Product Rule

(uv)′=u′v+uv′(uv)' = u'v + uv'

Derivation:

Let f(x)=u(x)v(x)f(x) = u(x)v(x). Starting from the definition of the derivative: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

=lim⁡h→0u(x+h)v(x+h)−u(x)v(x)h= \lim_{h \to 0} \frac{u(x + h)v(x + h) - u(x)v(x)}{h}

Add and subtract u(x)v(x+h)u(x)v(x + h): =lim⁡h→0u(x+h)v(x+h)−u(x)v(x+h)+u(x)v(x+h)−u(x)v(x)h= \lim_{h \to 0} \frac{u(x + h)v(x + h) - u(x)v(x + h) + u(x)v(x + h) - u(x)v(x)}{h}

=lim⁡h→0[u(x+h)−u(x)]v(x+h)+u(x)[v(x+h)−v(x)]h= \lim_{h \to 0} \frac{[u(x + h) - u(x)]v(x + h) + u(x)[v(x + h) - v(x)]}{h}

=lim⁡h→0u(x+h)−u(x)h⋅lim⁡h→0v(x+h)+u(x)⋅lim⁡h→0v(x+h)−v(x)h= \lim_{h \to 0} \frac{u(x + h) - u(x)}{h} \cdot \lim_{h \to 0} v(x + h) + u(x) \cdot \lim_{h \to 0} \frac{v(x + h) - v(x)}{h}

=u′(x)v(x)+u(x)v′(x)= u'(x)v(x) + u(x)v'(x)

Explanation: the derivative of the product of two functions equals the derivative of the first function times the second, plus the first function times the derivative of the second.

Memory aid: (uv)′=u′v+uv′(uv)' = u'v + uv' (differentiate the first factor only, then the second factor only)

Examples:

  • (x2⋅sin⁡x)′=2x⋅sin⁡x+x2⋅cos⁡x(x^2 \cdot \sin x)' = 2x \cdot \sin x + x^2 \cdot \cos x
  • (ex⋅x)′=ex⋅x+ex⋅1=ex(x+1)(e^x \cdot x)' = e^x \cdot x + e^x \cdot 1 = e^x(x + 1)

Quotient Rule

Quotient Rule

(uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}

Derivation:

Let f(x)=u(x)v(x)f(x) = \frac{u(x)}{v(x)}. Starting from the definition of the derivative: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

=lim⁡h→0u(x+h)v(x+h)−u(x)v(x)h= \lim_{h \to 0} \frac{\frac{u(x + h)}{v(x + h)} - \frac{u(x)}{v(x)}}{h}

Put the fractions over a common denominator: =lim⁡h→0u(x+h)v(x)−u(x)v(x+h)h⋅v(x)v(x+h)= \lim_{h \to 0} \frac{u(x + h)v(x) - u(x)v(x + h)}{h \cdot v(x)v(x + h)}

Add and subtract u(x)v(x)u(x)v(x): =lim⁡h→0[u(x+h)−u(x)]v(x)−u(x)[v(x+h)−v(x)]h⋅v(x)v(x+h)= \lim_{h \to 0} \frac{[u(x + h) - u(x)]v(x) - u(x)[v(x + h) - v(x)]}{h \cdot v(x)v(x + h)}

=lim⁡h→0u(x+h)−u(x)h⋅v(x)−u(x)⋅v(x+h)−v(x)hv(x)v(x+h)= \lim_{h \to 0} \frac{\frac{u(x + h) - u(x)}{h} \cdot v(x) - u(x) \cdot \frac{v(x + h) - v(x)}{h}}{v(x)v(x + h)}

=u′(x)v(x)−u(x)v′(x)v2(x)= \frac{u'(x)v(x) - u(x)v'(x)}{v^2(x)}

Explanation: the derivative of the quotient of two functions equals the derivative of the numerator times the denominator, minus the numerator times the derivative of the denominator, all divided by the square of the denominator.

Memory aid: (uv)′=u′v−uv′v2(\frac{u}{v})' = \frac{u'v - uv'}{v^2} (differentiate the top only minus the bottom only, then divide by the square of the bottom)

Examples:

  • (x2x+1)′=2x(x+1)−x2(1)(x+1)2=2x2+2x−x2(x+1)2=x2+2x(x+1)2(\frac{x^2}{x+1})' = \frac{2x(x+1) - x^2(1)}{(x+1)^2} = \frac{2x^2 + 2x - x^2}{(x+1)^2} = \frac{x^2 + 2x}{(x+1)^2}

Chain Rule

Chain Rule

dydx=dydu⋅dudx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}

Derivation:

Let y=f(u)y = f(u) and u=g(x)u = g(x), so y=f(g(x))y = f(g(x)).

By the definition of the derivative: dydx=lim⁡h→0f(g(x+h))−f(g(x))h\frac{dy}{dx} = \lim_{h \to 0} \frac{f(g(x + h)) - f(g(x))}{h}

Let Δu=g(x+h)−g(x)\Delta u = g(x + h) - g(x), so g(x+h)=g(x)+Δug(x + h) = g(x) + \Delta u.

As h→0h \to 0, we have Δu→0\Delta u \to 0 (because g(x)g(x) is continuous).

Hence: dydx=lim⁡h→0f(g(x)+Δu)−f(g(x))h\frac{dy}{dx} = \lim_{h \to 0} \frac{f(g(x) + \Delta u) - f(g(x))}{h}

=lim⁡h→0f(g(x)+Δu)−f(g(x))Δu⋅Δuh= \lim_{h \to 0} \frac{f(g(x) + \Delta u) - f(g(x))}{\Delta u} \cdot \frac{\Delta u}{h}

=lim⁡Δu→0f(g(x)+Δu)−f(g(x))Δu⋅lim⁡h→0g(x+h)−g(x)h= \lim_{\Delta u \to 0} \frac{f(g(x) + \Delta u) - f(g(x))}{\Delta u} \cdot \lim_{h \to 0} \frac{g(x + h) - g(x)}{h}

=f′(g(x))⋅g′(x)=dydu⋅dudx= f'(g(x)) \cdot g'(x) = \frac{dy}{du} \cdot \frac{du}{dx}

Explanation: the derivative of a composite function equals the derivative of the outer function multiplied by the derivative of the inner function.

Memory aid: work from the outside in, differentiating one layer at a time.

Examples:

  • (sin⁡(x2))′=cos⁡(x2)⋅(x2)′=cos⁡(x2)⋅2x=2xcos⁡(x2)(\sin(x^2))' = \cos(x^2) \cdot (x^2)' = \cos(x^2) \cdot 2x = 2x\cos(x^2)
  • (ex3)′=ex3⋅(x3)′=ex3⋅3x2=3x2ex3(e^{x^3})' = e^{x^3} \cdot (x^3)' = e^{x^3} \cdot 3x^2 = 3x^2e^{x^3}

Exercises

Exercise 1

Find the derivative of f(x)=x3+2x2−5x+1f(x) = x^3 + 2x^2 - 5x + 1.

derivative calculationdifferentiation rules

Approach: Use the sum and difference rule together with the power function derivative formula.

Steps:

  1. Apply the sum and difference rule: f′(x)=(x3)′+(2x2)′−(5x)′+(1)′f'(x) = (x^3)' + (2x^2)' - (5x)' + (1)'

  2. Compute the derivative of each term: (x3)′=3x2(x^3)' = 3x^2 (2x2)′=2⋅2x=4x(2x^2)' = 2 \cdot 2x = 4x (5x)′=5(5x)' = 5 (1)′=0(1)' = 0

  3. Combine the results: f′(x)=3x2+4x−5f'(x) = 3x^2 + 4x - 5

Answer: f′(x)=3x2+4x−5f'(x) = 3x^2 + 4x - 5

Exercise 2

Find the derivative of f(x)=x2sin⁡xf(x) = x^2 \sin x.

derivative calculationdifferentiation rules

Approach: Use the product rule.

Steps:

  1. Let u=x2u = x^2 and v=sin⁡xv = \sin x

  2. Compute u′u' and v′v': u′=2xu' = 2x v′=cos⁡xv' = \cos x

  3. Apply the product rule: f′(x)=u′v+uv′=2x⋅sin⁡x+x2⋅cos⁡xf'(x) = u'v + uv' = 2x \cdot \sin x + x^2 \cdot \cos x

  4. Simplify: f′(x)=2xsin⁡x+x2cos⁡xf'(x) = 2x\sin x + x^2\cos x

Answer: f′(x)=2xsin⁡x+x2cos⁡xf'(x) = 2x\sin x + x^2\cos x

Exercise 3

Find the derivative of f(x)=x2+1x−1f(x) = \frac{x^2 + 1}{x - 1}.

derivative calculationdifferentiation rules

Approach: Use the quotient rule.

Steps:

  1. Let u=x2+1u = x^2 + 1 and v=x−1v = x - 1

  2. Compute u′u' and v′v': u′=2xu' = 2x v′=1v' = 1

  3. Apply the quotient rule: f′(x)=u′v−uv′v2=2x(x−1)−(x2+1)(1)(x−1)2f'(x) = \frac{u'v - uv'}{v^2} = \frac{2x(x-1) - (x^2+1)(1)}{(x-1)^2}

  4. Expand: =2x2−2x−x2−1(x−1)2=x2−2x−1(x−1)2= \frac{2x^2 - 2x - x^2 - 1}{(x-1)^2} = \frac{x^2 - 2x - 1}{(x-1)^2}

Answer: f′(x)=x2−2x−1(x−1)2f'(x) = \frac{x^2 - 2x - 1}{(x-1)^2}

Exercise 4

Find the derivative of f(x)=sin⁡(x2+1)f(x) = \sin(x^2 + 1).

derivative calculationdifferentiation rules

Approach: Use the chain rule.

Steps:

  1. Let u=x2+1u = x^2 + 1, so f(x)=sin⁡uf(x) = \sin u

  2. Compute the derivative of each layer: dfdu=cos⁡u=cos⁡(x2+1)\frac{df}{du} = \cos u = \cos(x^2 + 1) dudx=2x\frac{du}{dx} = 2x

  3. Apply the chain rule: f′(x)=dfdu⋅dudx=cos⁡(x2+1)⋅2xf'(x) = \frac{df}{du} \cdot \frac{du}{dx} = \cos(x^2 + 1) \cdot 2x

  4. Simplify: f′(x)=2xcos⁡(x2+1)f'(x) = 2x\cos(x^2 + 1)

Answer: f′(x)=2xcos⁡(x2+1)f'(x) = 2x\cos(x^2 + 1)

Exercise 5

Suppose lim⁡x→1f(x)ln⁡x=1\lim\limits_{x\to1} \frac{f(x)}{\ln x}=1. Find the value of f′(1)f'(1).

derivative calculationdifferentiation rules

Approach: Use the property of equivalent infinitesimals together with the chain rule.

Steps:

  1. From lim⁡x→1f(x)ln⁡x=1\lim\limits_{x\to1} \frac{f(x)}{\ln x}=1 we get f(x)∼ln⁡xf(x)\sim \ln x as x→1x\to1

  2. As x→1x\to1, ln⁡x→0\ln x\to0, so lim⁡x→1f(x)=0\lim\limits_{x\to1} f(x)=0

  3. Let g(x)=f(x)ln⁡xg(x)=\frac{f(x)}{\ln x}, then f(x)=g(x)ln⁡xf(x)=g(x)\ln x

  4. Apply the product rule: f′(x)=g′(x)ln⁡x+g(x)⋅1xf'(x)=g'(x)\ln x + g(x)\cdot\frac{1}{x}

  5. As x→1x\to1, ln⁡x→0\ln x\to0, 1x→1\frac{1}{x}\to1, g(x)→1g(x)\to1

  6. Therefore f′(1)=lim⁡x→1f′(x)=1f'(1)=\lim\limits_{x\to1} f'(x)=1

Answer: f′(1)=1f'(1)=1

Exercise 6

Suppose the function y=f(x)y=f(x) is determined by the parametric equations {x=2t+∣t∣y=∣t∣sin⁡t\begin{cases}x=2t+|t|\\y=|t|\sin t\end{cases}. Find f′(0)f'(0).

derivative calculationdifferentiation rules

Approach: Use the parametric differentiation formula together with the chain rule.

Steps:

  1. When t≥0t\geq0, x=3t,y=tsin⁡tx=3t, y=t\sin t, so y=x3sin⁡x3y=\frac{x}{3}\sin\frac{x}{3}

  2. When t<0t<0, x=t,y=−tsin⁡tx=t, y=-t\sin t, so y=−xsin⁡xy=-x\sin x

  3. Hence f(x)={x3sin⁡x3,x≥0−xsin⁡x,x<0f(x)=\begin{cases}\frac{x}{3}\sin\frac{x}{3}, & x\geq0\\-x\sin x, & x<0\end{cases}

  4. Compute the left derivative: f−′(0)=lim⁡x→0−−xsin⁡x−0x=−lim⁡x→0−sin⁡x=0f'_-(0)=\lim\limits_{x\to0^-}\frac{-x\sin x-0}{x}=-\lim\limits_{x\to0^-}\sin x=0

  5. Compute the right derivative: f+′(0)=lim⁡x→0+x3sin⁡x3−0x=lim⁡x→0+sin⁡x33=0f'_+(0)=\lim\limits_{x\to0^+}\frac{\frac{x}{3}\sin\frac{x}{3}-0}{x}=\lim\limits_{x\to0^+}\frac{\sin\frac{x}{3}}{3}=0

  6. Since the left and right derivatives are equal, f′(0)=0f'(0)=0

Answer: f′(0)=0f'(0)=0

Exercise 7

Suppose f(u)f(u) is differentiable and z=xyf(yx)z=xyf\left(\frac{y}{x}\right). Find ∂z∂x\frac{\partial z}{\partial x} and ∂z∂y\frac{\partial z}{\partial y}.

derivative calculationdifferentiation rules

Approach: Use the chain rule for partial derivatives together with the product rule.

Steps:

  1. Let u=yxu=\frac{y}{x}, then z=xyf(u)z=xyf(u)

  2. Differentiate with respect to xx: ∂z∂x=yf(u)+xyf′(u)⋅∂u∂x\frac{\partial z}{\partial x}=yf(u)+xyf'(u)\cdot\frac{\partial u}{\partial x} =yf(u)+xyf′(u)⋅(−yx2)=yf(u)+xyf'(u)\cdot\left(-\frac{y}{x^2}\right) =yf(yx)−y2f′(yx)1x=yf\left(\frac{y}{x}\right)-y^2f'\left(\frac{y}{x}\right)\frac{1}{x}

  3. Differentiate with respect to yy: ∂z∂y=xf(u)+xyf′(u)⋅∂u∂y\frac{\partial z}{\partial y}=xf(u)+xyf'(u)\cdot\frac{\partial u}{\partial y} =xf(u)+xyf′(u)⋅1x=xf(u)+xyf'(u)\cdot\frac{1}{x} =xf(yx)+yf′(yx)=xf\left(\frac{y}{x}\right)+yf'\left(\frac{y}{x}\right)

Answer: ∂z∂x=yf(yx)−y2f′(yx)1x\frac{\partial z}{\partial x}=yf\left(\frac{y}{x}\right)-y^2f'\left(\frac{y}{x}\right)\frac{1}{x} ∂z∂y=xf(yx)+yf′(yx)\frac{\partial z}{\partial y}=xf\left(\frac{y}{x}\right)+yf'\left(\frac{y}{x}\right)

Exercise 8

Suppose the curve y=y(x)(x>0)y=y(x)(x>0) passes through the point (1,2)(1,2), and the distance from any point P(x,y)P(x,y) on the curve to the yy-axis equals the intercept of the tangent line at that point on the yy-axis. Find y(x)y(x).

derivative calculationdifferentiation rules

Approach: Use the tangent line equation and the notion of an intercept to set up a differential equation.

Steps:

  1. The distance from P(x,y)P(x,y) to the yy-axis is xx

  2. The tangent line at P(x,y)P(x,y) is: Y−y=y′(x)(X−x)Y-y=y'(x)(X-x)

  3. Its intercept on the yy-axis is: when X=0X=0, Y=y−xy′(x)Y=y-xy'(x)

  4. By the hypothesis: x=y−xy′(x)x=y-xy'(x)

  5. Rearranging: y′(x)=y−xxy'(x)=\frac{y-x}{x}

  6. This is a first-order linear differential equation: y′(x)−1xy=−1y'(x)-\frac{1}{x}y=-1

  7. Solving gives y(x)=x(2−ln⁡x)y(x)=x(2-\ln x)

  8. Check y(1)=2y(1)=2, which satisfies the condition

Answer: y(x)=x(2−ln⁡x)y(x)=x(2-\ln x)

Exercise 9

Given f(x)=∫0xecos⁡tdtf(x)=\int_0^x e^{\cos t}dt, find f′(x)f'(x) and f′′(x)f''(x).

derivative calculationdifferentiation rules

Approach: Use the derivative formula for a function with a variable upper limit together with the chain rule.

Steps:

  1. By the derivative formula for a function with a variable upper limit: f′(x)=ecos⁡xf'(x)=e^{\cos x}

  2. Differentiate f′(x)f'(x) once more: f′′(x)=ddx(ecos⁡x)=ecos⁡x⋅(−sin⁡x)=−ecos⁡xsin⁡xf''(x)=\frac{d}{dx}(e^{\cos x})=e^{\cos x}\cdot(-\sin x)=-e^{\cos x}\sin x

  3. Use the chain rule: let u=cos⁡xu=\cos x, then f′(x)=euf'(x)=e^u ddx(eu)=eu⋅dudx=ecos⁡x⋅(−sin⁡x)\frac{d}{dx}(e^u)=e^u\cdot\frac{du}{dx}=e^{\cos x}\cdot(-\sin x)

Answer: f′(x)=ecos⁡xf'(x)=e^{\cos x} f′′(x)=−ecos⁡xsin⁡xf''(x)=-e^{\cos x}\sin x

Exercise 10

Given f(x)=∫0xet2sin⁡t dtf(x) = \int_0^x e^{t^2} \sin t\,dt, find f′(x)f'(x) and f′′(x)f''(x).

derivative calculationdifferentiation rules

Approach: Use the derivative formula for a function with a variable upper limit together with the product rule.

Steps:

  1. By the derivative formula for a function with a variable upper limit: f′(x)=ex2sin⁡xf'(x) = e^{x^2} \sin x

  2. Differentiate f′(x)f'(x) once more, using the product rule: let u=ex2u = e^{x^2}, v=sin⁡xv = \sin x

    u′=ex2⋅2x=2xex2u' = e^{x^2} \cdot 2x = 2x e^{x^2} v′=cos⁡xv' = \cos x

  3. Apply the product rule: f′′(x)=u′v+uv′=2xex2⋅sin⁡x+ex2⋅cos⁡xf''(x) = u'v + uv' = 2x e^{x^2} \cdot \sin x + e^{x^2} \cdot \cos x =2xex2sin⁡x+ex2cos⁡x= 2x e^{x^2} \sin x + e^{x^2} \cos x

Answer: f′(x)=ex2sin⁡xf'(x) = e^{x^2} \sin x f′′(x)=2xex2sin⁡x+ex2cos⁡xf''(x) = 2x e^{x^2} \sin x + e^{x^2} \cos x


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
u,vu, vMathematical symbolu, vThe two differentiable functions combined by each operation rule
u′,v′u', v'Mathematical symbolu prime, v primeThe derivatives of the two functions, taken one at a time in the product rule
hhMathematical symbolhThe increment in the difference quotient from which every rule on this page is derived
(u±v)′(u \pm v)'Mathematical symbolu plus or minus v primeThe sum and difference rule (u±v)′=u′±v′(u \pm v)' = u' \pm v'
(uv)′(uv)'Mathematical symbolu v primeThe product rule, written u′v+uv′u'v + uv'
(uv)′\left(\frac{u}{v}\right)'Mathematical symbolderivative of u over vThe quotient rule, whose result carries the square v2v^2 of the denominator
Δu\Delta uMathematical symboldelta uThe increment of the inner function in the chain rule, with Δu=g(x+h)−g(x)\Delta u = g(x+h) - g(x)
dydu⋅dudx\frac{dy}{du} \cdot \frac{du}{dx}Mathematical symbold y over d u times d u over d xThe chain rule in differential form, with y=f(u)y = f(u) and u=g(x)u = g(x)
sin⁡x\sin xMathematical symbolsine of xThe trigonometric factor in the product rule example (x2⋅sin⁡x)′(x^2 \cdot \sin x)'
exe^xMathematical symbole to the xThe exponential factor in the product rule example (ex⋅x)′=ex(x+1)(e^x \cdot x)' = e^x(x+1)

Found an issue with this content?

Tell us what could be improved.