MathIsimple
π
θ
Δ
ε
HomeCalculusChapter 4Derivative Definition
CALC-4.1
4-5 hours
Foundation

Derivative Definition and Basic Rules

Master the rigorous limit definition of derivatives, understand one-sided derivatives and their relationship to differentiability, prove the fundamental connection between differentiability and continuity, and learn essential algebraic rules for computing derivatives efficiently.

5

Sections

8

Theorems

15+

Examples

12

Questions

Learning Objectives
By the end of this module, you will be able to:
1
Define the derivative of a function at a point using the limit of the difference quotient
2
Interpret the derivative geometrically as the slope of the tangent line
3
Understand and compute one-sided (left and right) derivatives
4
State and prove the theorem that differentiability implies continuity
5
Recognize functions that are continuous but not differentiable at certain points
6
Apply the basic derivative formulas for polynomial, exponential, and trigonometric functions
7
Derive and apply the sum, difference, product, and quotient rules
8
Use multiple differentiation rules together to find derivatives of complex expressions
9
Determine differentiability of piecewise functions at junction points
10
Understand the notation systems for derivatives (Leibniz, Lagrange, Newton)

Prerequisites

Before studying derivatives, ensure you have mastered:

  • Limit definitions and computation techniques (Chapter 2 & 3)
  • Continuity and its relationship to limits
  • Properties of elementary functions (exponential, logarithmic, trigonometric)

1. The Definition of Derivative

Understanding the limit definition and its geometric meaning

The derivative is one of the two fundamental concepts of calculus (the other being the integral). It measures the instantaneous rate of change of a function at a point, generalizing the notion of velocity from physics to arbitrary functions. The key insight is that we can compute instantaneous rates by taking limits of average rates over smaller and smaller intervals.

Historically, Newton developed derivatives (which he called "fluxions") to describe motion and physics, while Leibniz independently developed the same concepts with notation emphasizing infinitesimals. The modern rigorous definition using limits was formalized by Cauchy and Weierstrass in the 19th century.

In this section, we begin with the precise ε-δ style definition of the derivative, then explore its various equivalent formulations and geometric interpretations.

Definition 4.1: Derivative at a Point

Let ff be a function defined on an open interval containing x0x_0(i.e., on some neighborhood U(x0)U(x_0)). If the limit

limxx0f(x)f(x0)xx0\lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0}

exists and is finite, we say ff is differentiable at x0x_0, and we call this limit the derivative of ff at x0x_0.

Common notations for the derivative include:

f(x0),dfdxx=x0,dydxx=x0,y(x0),Df(x0)f'(x_0), \quad \frac{df}{dx}\bigg|_{x=x_0}, \quad \frac{dy}{dx}\bigg|_{x=x_0}, \quad y'(x_0), \quad Df(x_0)

If this limit does not exist (or is infinite), we say ff is not differentiable at x0x_0.

Remark 4.1: Equivalent Formulations

By making the substitution x=x0+hx = x_0 + h (or equivalently x=x0+Δxx = x_0 + \Delta x), the derivative definition can be written in several equivalent forms:

f(x0)=limh0f(x0+h)f(x0)hf'(x_0) = \lim_{h \to 0} \frac{f(x_0 + h) - f(x_0)}{h}
f(x0)=limΔx0f(x0+Δx)f(x0)Δx=limΔx0ΔyΔxf'(x_0) = \lim_{\Delta x \to 0} \frac{f(x_0 + \Delta x) - f(x_0)}{\Delta x} = \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}

The expression f(x0+h)f(x0)h\frac{f(x_0 + h) - f(x_0)}{h} is called the difference quotient. It represents the average rate of change of ff over the interval [x0,x0+h][x_0, x_0 + h].

Geometric interpretation: The difference quotient is the slope of the secant linethrough points (x0,f(x0))(x_0, f(x_0)) and (x0+h,f(x0+h))(x_0 + h, f(x_0 + h)). As h0h \to 0, this secant line approaches the tangent line, and its slope approaches f(x0)f'(x_0).

Physical interpretation: If f(t)f(t) represents position at time tt, then f(t0)f'(t_0) is the instantaneous velocity at time t0t_0.

Definition 4.2: Derivative Function

If f(x)f(x) is differentiable at every point of an open interval (a,b)(a, b), then f(x)f'(x) defines a new function on (a,b)(a, b), called the derivative function (or simply the derivative) of ff:

f:(a,b)R,xf(x)=limh0f(x+h)f(x)hf': (a,b) \to \mathbb{R}, \quad x \mapsto f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

We write fD(a,b)f \in D(a, b) or say "ff is differentiable on (a,b)(a, b)" to denote that ff has a derivative at every point of the interval.

Example 4.1: Derivative from Definition: Power Function

Problem: Use the definition to find the derivative of f(x)=x2f(x) = x^2.

Solution:

Using the definition with f(x)=x2f(x) = x^2:

f(x0)=limh0(x0+h)2x02hf'(x_0) = \lim_{h \to 0} \frac{(x_0 + h)^2 - x_0^2}{h}

Expanding the numerator:

=limh0x02+2x0h+h2x02h=limh02x0h+h2h= \lim_{h \to 0} \frac{x_0^2 + 2x_0 h + h^2 - x_0^2}{h} = \lim_{h \to 0} \frac{2x_0 h + h^2}{h}

Factoring out hh and canceling:

=limh0h(2x0+h)h=limh0(2x0+h)=2x0= \lim_{h \to 0} \frac{h(2x_0 + h)}{h} = \lim_{h \to 0} (2x_0 + h) = 2x_0

Conclusion: (x2)=2x(x^2)' = 2x, which matches the power rule with n=2n = 2.

Example 4.2: Derivative from Definition: Exponential Function

Problem: Prove that (ex)=ex(e^x)' = e^x using the definition.

Solution:

f(x)=limh0ex+hexhf'(x) = \lim_{h \to 0} \frac{e^{x+h} - e^x}{h}

Using the exponential property ex+h=exehe^{x+h} = e^x \cdot e^h:

=limh0ex(eh1)h=exlimh0eh1h= \lim_{h \to 0} \frac{e^x(e^h - 1)}{h} = e^x \cdot \lim_{h \to 0} \frac{e^h - 1}{h}

Recall the fundamental limit limh0eh1h=1\lim_{h \to 0} \frac{e^h - 1}{h} = 1:

f(x)=ex1=exf'(x) = e^x \cdot 1 = e^x

Remarkable property: The function exe^x is its own derivative! This is why ee is the "natural" base for exponentials.

Example 4.3: Derivative from Definition: Sine Function

Problem: Prove that (sinx)=cosx(\sin x)' = \cos x using the definition.

Solution:

(sinx)=limh0sin(x+h)sinxh(\sin x)' = \lim_{h \to 0} \frac{\sin(x+h) - \sin x}{h}

Using the angle addition formula sin(x+h)=sinxcosh+cosxsinh\sin(x+h) = \sin x \cos h + \cos x \sin h:

=limh0sinxcosh+cosxsinhsinxh= \lim_{h \to 0} \frac{\sin x \cos h + \cos x \sin h - \sin x}{h}

Rearranging:

=limh0[sinxcosh1h+cosxsinhh]= \lim_{h \to 0} \left[ \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h} \right]

Using limh0sinhh=1\lim_{h \to 0} \frac{\sin h}{h} = 1 and limh0cosh1h=0\lim_{h \to 0} \frac{\cos h - 1}{h} = 0:

=sinx0+cosx1=cosx= \sin x \cdot 0 + \cos x \cdot 1 = \cos x
Example 4.4: Derivative from Definition: Cosine Function

Problem: Prove that (cosx)=sinx(\cos x)' = -\sin x.

Solution:

(cosx)=limh0cos(x+h)cosxh(\cos x)' = \lim_{h \to 0} \frac{\cos(x+h) - \cos x}{h}

Using cos(x+h)=cosxcoshsinxsinh\cos(x+h) = \cos x \cos h - \sin x \sin h:

=limh0cosxcoshsinxsinhcosxh= \lim_{h \to 0} \frac{\cos x \cos h - \sin x \sin h - \cos x}{h}
=limh0[cosxcosh1hsinxsinhh]= \lim_{h \to 0} \left[ \cos x \cdot \frac{\cos h - 1}{h} - \sin x \cdot \frac{\sin h}{h} \right]
=cosx0sinx1=sinx= \cos x \cdot 0 - \sin x \cdot 1 = -\sin x
Example 4.5: Derivative from Definition: Natural Logarithm

Problem: Prove that (lnx)=1x(\ln x)' = \frac{1}{x} for x>0x > 0.

Solution:

(lnx)=limh0ln(x+h)lnxh=limh01hlnx+hx(\ln x)' = \lim_{h \to 0} \frac{\ln(x+h) - \ln x}{h} = \lim_{h \to 0} \frac{1}{h} \ln\frac{x+h}{x}
=limh01hln(1+hx)=limh01xxhln(1+hx)= \lim_{h \to 0} \frac{1}{h} \ln\left(1 + \frac{h}{x}\right) = \lim_{h \to 0} \frac{1}{x} \cdot \frac{x}{h} \ln\left(1 + \frac{h}{x}\right)

Let u=h/xu = h/x, so as h0h \to 0, u0u \to 0:

=1xlimu0ln(1+u)u=1x1=1x= \frac{1}{x} \lim_{u \to 0} \frac{\ln(1+u)}{u} = \frac{1}{x} \cdot 1 = \frac{1}{x}
Remark 4.0: Geometric Interpretation of Derivative

The derivative has a beautiful geometric interpretation that helps us visualize what differentiation means:

Secant Line

A line through two points (x0,f(x0))(x_0, f(x_0)) and (x0+h,f(x0+h))(x_0+h, f(x_0+h)) on the curve.

Slope = f(x0+h)f(x0)h\frac{f(x_0+h) - f(x_0)}{h} (difference quotient)

Tangent Line

The limiting position of secant lines as the second point approaches the first.

Slope = f(x0)=limh0f(x0+h)f(x0)hf'(x_0) = \lim_{h \to 0} \frac{f(x_0+h) - f(x_0)}{h}

Tangent Line Equation

At point (x0,f(x0))(x_0, f(x_0)), the tangent line is: yf(x0)=f(x0)(xx0)y - f(x_0) = f'(x_0)(x - x_0)

Example 4.5b: Finding Tangent Line Equations

Problem: Find the equation of the tangent line to y=x2y = x^2 at x=2x = 2.

Solution:

Step 1: Find the point on the curve.

At x0=2x_0 = 2: f(2)=22=4f(2) = 2^2 = 4, so the point is (2,4)(2, 4).

Step 2: Find the derivative (slope of tangent).

f(x)=2xf'(x) = 2x, so f(2)=4f'(2) = 4

Step 3: Write the tangent line equation.

y4=4(x2)    y=4x4y - 4 = 4(x - 2) \implies y = 4x - 4
Example 4.5c: When Tangent Line is Horizontal

Problem: Find points where the tangent to y=x33xy = x^3 - 3x is horizontal.

Solution:

A horizontal tangent means slope = 0, i.e., f(x)=0f'(x) = 0.

f(x)=3x23=0    x2=1    x=±1f'(x) = 3x^2 - 3 = 0 \implies x^2 = 1 \implies x = \pm 1

The points are:

  • At x=1x = 1: y=13=2y = 1 - 3 = -2, point (1,2)(1, -2)
  • At x=1x = -1: y=1+3=2y = -1 + 3 = 2, point (1,2)(-1, 2)

2. One-Sided Derivatives

Left and right derivatives and characterization of differentiability

Just as we defined one-sided limits, we can define one-sided derivatives by approaching the point from only one direction. These are useful for analyzing functions at endpoints, at corners, or at points where behavior differs on different sides. Understanding one-sided derivatives gives us a precise characterization of when the (two-sided) derivative exists.

Definition 4.3: One-Sided Derivatives

Let ff be defined on a neighborhood of x0x_0.

Right Derivative (derivative from the right):

f+(x0)=limh0+f(x0+h)f(x0)h=limxx0+f(x)f(x0)xx0f'_+(x_0) = \lim_{h \to 0^+} \frac{f(x_0 + h) - f(x_0)}{h} = \lim_{x \to x_0^+} \frac{f(x) - f(x_0)}{x - x_0}

Left Derivative (derivative from the left):

f(x0)=limh0f(x0+h)f(x0)h=limxx0f(x)f(x0)xx0f'_-(x_0) = \lim_{h \to 0^-} \frac{f(x_0 + h) - f(x_0)}{h} = \lim_{x \to x_0^-} \frac{f(x) - f(x_0)}{x - x_0}
Theorem 4.1: Characterization of Differentiability

A function ff is differentiable at x0x_0 if and only if both one-sided derivatives exist and are equal:

f(x0) exists    f+(x0)=f(x0)f'(x_0) \text{ exists} \iff f'_+(x_0) = f'_-(x_0)

In this case, f(x0)=f+(x0)=f(x0)f'(x_0) = f'_+(x_0) = f'_-(x_0).

Proof of Theorem 4.1:

(⇒) Suppose f(x0)f'(x_0) exists. Since the two-sided limit exists, both one-sided limits must exist and equal the same value.

(⇐) Suppose f+(x0)=f(x0)=Lf'_+(x_0) = f'_-(x_0) = L. Then both one-sided limits of the difference quotient equal LL, so the two-sided limit exists and equals LL.

Example 4.6: The Absolute Value Function

Problem: Analyze the differentiability of f(x)=xf(x) = |x| at x=0x = 0.

Solution:

Recall x=x|x| = x for x0x \geq 0 and x=x|x| = -x for x<0x < 0.

Right derivative:

f+(0)=limh0+h0h=limh0+hh=1f'_+(0) = \lim_{h \to 0^+} \frac{|h| - 0}{h} = \lim_{h \to 0^+} \frac{h}{h} = 1

Left derivative:

f(0)=limh0h0h=limh0hh=1f'_-(0) = \lim_{h \to 0^-} \frac{|h| - 0}{h} = \lim_{h \to 0^-} \frac{-h}{h} = -1

Conclusion: Since f+(0)=11=f(0)f'_+(0) = 1 \neq -1 = f'_-(0), x|x| is not differentiable at 0.

Example 4.7: Differentiability of x|x|

Problem: Is f(x)=xxf(x) = x|x| differentiable at x=0x = 0?

Solution:

Note: xx=x2x|x| = x^2 for x0x \geq 0 and xx=x2x|x| = -x^2 for x<0x < 0.

f+(0)=limh0+h20h=limh0+h=0f'_+(0) = \lim_{h \to 0^+} \frac{h^2 - 0}{h} = \lim_{h \to 0^+} h = 0
f(0)=limh0h20h=limh0(h)=0f'_-(0) = \lim_{h \to 0^-} \frac{-h^2 - 0}{h} = \lim_{h \to 0^-} (-h) = 0

Conclusion: Since f+(0)=f(0)=0f'_+(0) = f'_-(0) = 0, xxx|x| is differentiable at 0 with f(0)=0f'(0) = 0.

Example 4.8: Piecewise Function Analysis

Problem: Is f(x)={x2x12x1x>1f(x) = \begin{cases} x^2 & x \leq 1 \\ 2x - 1 & x > 1 \end{cases} differentiable at x=1x = 1?

Solution:

First check continuity: f(1)=1f(1) = 1, limx1x2=1\lim_{x \to 1^-} x^2 = 1, limx1+(2x1)=1\lim_{x \to 1^+} (2x-1) = 1. ✓ Continuous.

f(1)=limh0(1+h)21h=limh02h+h2h=2f'_-(1) = \lim_{h \to 0^-} \frac{(1+h)^2 - 1}{h} = \lim_{h \to 0^-} \frac{2h + h^2}{h} = 2
f+(1)=limh0+2(1+h)11h=limh0+2hh=2f'_+(1) = \lim_{h \to 0^+} \frac{2(1+h) - 1 - 1}{h} = \lim_{h \to 0^+} \frac{2h}{h} = 2

Conclusion: f(1)=f+(1)=2f'_-(1) = f'_+(1) = 2, so ff is differentiable at 1 with f(1)=2f'(1) = 2.

Example 4.8b: Piecewise Function - Not Differentiable

Problem: Is g(x)={x2x1xx>1g(x) = \begin{cases} x^2 & x \leq 1 \\ x & x > 1 \end{cases} differentiable at x=1x = 1?

Solution:

Check continuity: g(1)=1g(1) = 1, limx1x2=1\lim_{x \to 1^-} x^2 = 1, limx1+x=1\lim_{x \to 1^+} x = 1. ✓ Continuous.

g(1)=limh0(1+h)21h=2g'_-(1) = \lim_{h \to 0^-} \frac{(1+h)^2 - 1}{h} = 2
g+(1)=limh0+(1+h)1h=limh0+hh=1g'_+(1) = \lim_{h \to 0^+} \frac{(1+h) - 1}{h} = \lim_{h \to 0^+} \frac{h}{h} = 1

Conclusion: g(1)=21=g+(1)g'_-(1) = 2 \neq 1 = g'_+(1), so gg is NOT differentiable at 1.

Geometric insight: The graph has a "corner" at x=1x = 1 where the slope changes abruptly from 2 to 1.

Remark 4.1b: Endpoints of Intervals

At endpoints of the domain, only one-sided derivatives can be defined:

  • At left endpoint aa of [a,b][a, b]: only f+(a)f'_+(a) makes sense
  • At right endpoint bb of [a,b][a, b]: only f(b)f'_-(b) makes sense

Example: For f(x)=xf(x) = \sqrt{x} on [0,)[0, \infty), at x=0x = 0:

f+(0)=limh0+h0h=limh0+1h=+f'_+(0) = \lim_{h \to 0^+} \frac{\sqrt{h} - 0}{h} = \lim_{h \to 0^+} \frac{1}{\sqrt{h}} = +\infty

So x\sqrt{x} has a vertical tangent at x=0x = 0.

Example 4.8c: Vertical Tangent

Problem: Analyze the differentiability of f(x)=x3=x1/3f(x) = \sqrt[3]{x} = x^{1/3} at x=0x = 0.

Solution:

f(0)=limh0h30h=limh0h1/3h=limh0h2/3=limh01h2/3f'(0) = \lim_{h \to 0} \frac{\sqrt[3]{h} - 0}{h} = \lim_{h \to 0} \frac{h^{1/3}}{h} = \lim_{h \to 0} h^{-2/3} = \lim_{h \to 0} \frac{1}{h^{2/3}}

As h0h \to 0, h2/30+h^{2/3} \to 0^+, so the limit is ++\infty.

Conclusion: ff is not differentiable at 0 (in the usual sense), but has a vertical tangent there. The function is continuous at 0 but the tangent line is vertical.

3. Differentiability and Continuity

The fundamental relationship between these conditions

Theorem 4.2: Differentiability Implies Continuity

If ff is differentiable at x0x_0, then ff is continuous at x0x_0:

f(x0) exists    f is continuous at x0f'(x_0) \text{ exists} \implies f \text{ is continuous at } x_0

Important: The converse is FALSE. Continuity does NOT imply differentiability.

Proof of Theorem 4.2:

Suppose f(x0)f'(x_0) exists. We need to show limxx0f(x)=f(x0)\lim_{x \to x_0} f(x) = f(x_0).

For xx0x \neq x_0, we can write:

f(x)f(x0)=f(x)f(x0)xx0(xx0)f(x) - f(x_0) = \frac{f(x) - f(x_0)}{x - x_0} \cdot (x - x_0)

Taking the limit as xx0x \to x_0:

limxx0[f(x)f(x0)]=limxx0f(x)f(x0)xx0limxx0(xx0)=f(x0)0=0\lim_{x \to x_0} [f(x) - f(x_0)] = \lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0} \cdot \lim_{x \to x_0}(x - x_0) = f'(x_0) \cdot 0 = 0

Therefore limxx0f(x)=f(x0)\lim_{x \to x_0} f(x) = f(x_0), which is the definition of continuity at x0x_0. ∎

Corollary 4.1: Contrapositive Form

If ff is discontinuous at x0x_0, then ff is not differentiable at x0x_0.

Example 4.9: Continuous but Not Differentiable

The function f(x)=xf(x) = |x| demonstrates that continuity ≠ differentiability:

  • Continuous at 0: limx0x=0=0\lim_{x \to 0} |x| = 0 = |0|
  • Not differentiable at 0: f+(0)=11=f(0)f'_+(0) = 1 \neq -1 = f'_-(0)

Geometric interpretation: The graph has a "corner" at x=0x = 0where no unique tangent line exists. The left tangent has slope -1, the right tangent has slope 1.

Example 4.10: x·sin(1/x) Analysis

Problem: Analyze f(x)=xsin(1/x)f(x) = x\sin(1/x) for x0x \neq 0, f(0)=0f(0) = 0.

Solution:

Continuity at 0:

Since xsin(1/x)x0|x\sin(1/x)| \leq |x| \to 0, by squeeze theorem limx0f(x)=0=f(0)\lim_{x \to 0} f(x) = 0 = f(0). ✓

Differentiability at 0:

f(0)=limh0hsin(1/h)0h=limh0sin1hf'(0) = \lim_{h \to 0} \frac{h\sin(1/h) - 0}{h} = \lim_{h \to 0} \sin\frac{1}{h}

This limit does not exist because sin(1/h)\sin(1/h) oscillates. So ff is continuous but not differentiable at 0.

Example 4.11: x²·sin(1/x) Analysis

Problem: Analyze g(x)=x2sin(1/x)g(x) = x^2\sin(1/x) for x0x \neq 0, g(0)=0g(0) = 0.

Solution:

g(0)=limh0h2sin(1/h)0h=limh0hsin1hg'(0) = \lim_{h \to 0} \frac{h^2\sin(1/h) - 0}{h} = \lim_{h \to 0} h\sin\frac{1}{h}

Since hsin(1/h)h0|h\sin(1/h)| \leq |h| \to 0, by squeeze theorem:

g(0)=0g'(0) = 0. The extra factor of xx provides enough decay!

Remark 4.1c: Summary: Differentiability vs Continuity
ConditionContinuous?Differentiable?Example
Smooth function✓ Yes✓ Yesx2,ex,sinxx^2, e^x, \sin x
Corner point✓ Yes✗ Nox|x| at 0
Vertical tangent✓ Yes✗ Nox3\sqrt[3]{x} at 0
Cusp✓ Yes✗ Nox2/3x^{2/3} at 0
Jump discontinuity✗ No✗ NoStep function
Oscillating✓ Yes*✗ Noxsin(1/x)x\sin(1/x) at 0

*Requires proper definition at the point (e.g., f(0)=0f(0) = 0)

Example 4.11b: Cusp Analysis

Problem: Analyze f(x)=x2/3f(x) = x^{2/3} at x=0x = 0.

Solution:

Check continuity: limx0x2/3=0=f(0)\lim_{x \to 0} x^{2/3} = 0 = f(0). ✓

Check differentiability:

f+(0)=limh0+h2/30h=limh0+h1/3=+f'_+(0) = \lim_{h \to 0^+} \frac{h^{2/3} - 0}{h} = \lim_{h \to 0^+} h^{-1/3} = +\infty
f(0)=limh0h2/30h=limh0(h)2/3h=limh0h1/3=f'_-(0) = \lim_{h \to 0^-} \frac{|h|^{2/3} - 0}{h} = \lim_{h \to 0^-} \frac{(-h)^{2/3}}{h} = \lim_{h \to 0^-} -|h|^{-1/3} = -\infty

Conclusion: ff is continuous at 0 but NOT differentiable. It has a cusp: left tangent is vertical downward, right tangent is vertical upward.

Theorem 4.2b: Local Linear Approximation

If ff is differentiable at x0x_0, then near x0x_0:

f(x)f(x0)+f(x0)(xx0)f(x) \approx f(x_0) + f'(x_0)(x - x_0)

This is the linear approximation or tangent line approximation. The error goes to zero faster than (xx0)(x - x_0):

f(x)=f(x0)+f(x0)(xx0)+o(xx0) as xx0f(x) = f(x_0) + f'(x_0)(x - x_0) + o(x - x_0) \text{ as } x \to x_0

Application: Use to approximate 4.14+124(0.1)=2.025\sqrt{4.1} \approx \sqrt{4} + \frac{1}{2\sqrt{4}}(0.1) = 2.025

4. Basic Derivative Formulas

Essential derivatives of elementary functions

Elementary Function Derivatives
(c)(c)'=00

Constant function

(xn)(x^n)'=nxn1nx^{n-1}

Power rule (n ∈ ℝ)

(ex)(e^x)'=exe^x

Natural exponential

(ax)(a^x)'=axlnaa^x \ln a

General exponential (a > 0)

(lnx)(\ln x)'=1x\frac{1}{x}

Natural logarithm

(logax)(\log_a x)'=1xlna\frac{1}{x \ln a}

General logarithm

(sinx)(\sin x)'=cosx\cos x

Sine function

(cosx)(\cos x)'=sinx-\sin x

Cosine function

(tanx)(\tan x)'=sec2x\sec^2 x

Tangent function

(cotx)(\cot x)'=csc2x-\csc^2 x

Cotangent function

(secx)(\sec x)'=secxtanx\sec x \tan x

Secant function

(cscx)(\csc x)'=cscxcotx-\csc x \cot x

Cosecant function

Inverse Trigonometric
(arcsinx)(\arcsin x)'=11x2\frac{1}{\sqrt{1-x^2}}

|x| < 1

(arccosx)(\arccos x)'=11x2-\frac{1}{\sqrt{1-x^2}}

|x| < 1

(arctanx)(\arctan x)'=11+x2\frac{1}{1+x^2}

x ∈ ℝ

(arccot x)(\text{arccot } x)'=11+x2-\frac{1}{1+x^2}

x ∈ ℝ

Example 4.12: Proving the Power Rule

Method 1: Using Binomial Theorem (n ∈ ℕ)

(xn)=limh0(x+h)nxnh(x^n)' = \lim_{h \to 0} \frac{(x+h)^n - x^n}{h}

Using binomial theorem:

(x+h)n=k=0n(nk)xnkhk=xn+nxn1h+(n2)xn2h2+(x+h)^n = \sum_{k=0}^{n} \binom{n}{k} x^{n-k} h^k = x^n + nx^{n-1}h + \binom{n}{2}x^{n-2}h^2 + \cdots
=limh0nxn1h+O(h2)h=limh0[nxn1+O(h)]=nxn1= \lim_{h \to 0} \frac{nx^{n-1}h + O(h^2)}{h} = \lim_{h \to 0} \left[nx^{n-1} + O(h)\right] = nx^{n-1}
Example 4.13: Derivative of Square Root

Problem: Prove (x)=12x(\sqrt{x})' = \frac{1}{2\sqrt{x}} for x>0x > 0.

Solution:

(x)=limh0x+hxh(\sqrt{x})' = \lim_{h \to 0} \frac{\sqrt{x+h} - \sqrt{x}}{h}

Rationalize by multiplying by conjugate:

=limh0(x+hx)(x+h+x)h(x+h+x)= \lim_{h \to 0} \frac{(\sqrt{x+h} - \sqrt{x})(\sqrt{x+h} + \sqrt{x})}{h(\sqrt{x+h} + \sqrt{x})}
=limh0(x+h)xh(x+h+x)=limh0hh(x+h+x)= \lim_{h \to 0} \frac{(x+h) - x}{h(\sqrt{x+h} + \sqrt{x})} = \lim_{h \to 0} \frac{h}{h(\sqrt{x+h} + \sqrt{x})}
=limh01x+h+x=12x= \lim_{h \to 0} \frac{1}{\sqrt{x+h} + \sqrt{x}} = \frac{1}{2\sqrt{x}}

Note: This confirms the power rule with n=1/2n = 1/2: (x1/2)=12x1/2(x^{1/2})' = \frac{1}{2}x^{-1/2}.

Example 4.14: Derivative of 1/x

Problem: Prove (1/x)=1/x2(1/x)' = -1/x^2 for x0x \neq 0.

Solution:

(1x)=limh01x+h1xh\left(\frac{1}{x}\right)' = \lim_{h \to 0} \frac{\frac{1}{x+h} - \frac{1}{x}}{h}

Combining fractions:

=limh01hx(x+h)x(x+h)=limh0hhx(x+h)= \lim_{h \to 0} \frac{1}{h} \cdot \frac{x - (x+h)}{x(x+h)} = \lim_{h \to 0} \frac{-h}{hx(x+h)}
=limh01x(x+h)=1xx=1x2= \lim_{h \to 0} \frac{-1}{x(x+h)} = \frac{-1}{x \cdot x} = -\frac{1}{x^2}
Remark 4.2: Extension of Power Rule

The power rule (xn)=nxn1(x^n)' = nx^{n-1} holds for all real exponents nRn \in \mathbb{R}, not just positive integers:

  • Negative integers: (xn)=nxn1(x^{-n})' = -nx^{-n-1} (can verify using quotient rule)
  • Fractions: (xp/q)=pqxp/q1(x^{p/q})' = \frac{p}{q}x^{p/q - 1} (requires implicit differentiation)
  • Irrationals: (xπ)=πxπ1(x^\pi)' = \pi x^{\pi - 1} (requires logarithmic differentiation)

The general proof uses logarithmic differentiation: y=xnlny=nlnxy = x^n \Rightarrow \ln y = n\ln x.

Remark 4.3: Important Limits for Derivatives

These fundamental limits are essential for computing derivatives from definition:

limh0sinhh=1\lim_{h \to 0} \frac{\sin h}{h} = 1
limh0cosh1h=0\lim_{h \to 0} \frac{\cos h - 1}{h} = 0
limh0eh1h=1\lim_{h \to 0} \frac{e^h - 1}{h} = 1
limh0ln(1+h)h=1\lim_{h \to 0} \frac{\ln(1+h)}{h} = 1
limh0ah1h=lna\lim_{h \to 0} \frac{a^h - 1}{h} = \ln a
limh0(1+h)n1h=n\lim_{h \to 0} \frac{(1+h)^n - 1}{h} = n
Example 4.14b: Derivative of General Exponential

Problem: Prove (ax)=axlna(a^x)' = a^x \ln a for a>0,a1a > 0, a \neq 1.

Solution:

Write ax=exlnaa^x = e^{x \ln a} using the identity a=elnaa = e^{\ln a}.

(ax)=limh0ax+haxh=limh0ax(ah1)h(a^x)' = \lim_{h \to 0} \frac{a^{x+h} - a^x}{h} = \lim_{h \to 0} \frac{a^x(a^h - 1)}{h}
=axlimh0ah1h= a^x \lim_{h \to 0} \frac{a^h - 1}{h}

Using the fundamental limit limh0ah1h=lna\lim_{h \to 0} \frac{a^h - 1}{h} = \ln a:

(ax)=axlna(a^x)' = a^x \ln a

Special case: When a=ea = e, lne=1\ln e = 1, so (ex)=ex(e^x)' = e^x.

Example 4.14c: Derivative of General Logarithm

Problem: Prove (logax)=1xlna(\log_a x)' = \frac{1}{x \ln a} for a>0,a1,x>0a > 0, a \neq 1, x > 0.

Solution:

Use the change of base formula: logax=lnxlna\log_a x = \frac{\ln x}{\ln a}

(logax)=(lnxlna)=1lna(lnx)=1lna1x=1xlna(\log_a x)' = \left(\frac{\ln x}{\ln a}\right)' = \frac{1}{\ln a} \cdot (\ln x)' = \frac{1}{\ln a} \cdot \frac{1}{x} = \frac{1}{x \ln a}

Special case: When a=ea = e, logex=lnx\log_e x = \ln x, so (lnx)=1x(\ln x)' = \frac{1}{x}.

Remark 4.3b: Hyperbolic Functions Derivatives

The hyperbolic functions and their derivatives mirror trigonometric functions:

(sinhx)=coshx(\sinh x)' = \cosh x

where sinhx=exex2\sinh x = \frac{e^x - e^{-x}}{2}

(coshx)=sinhx(\cosh x)' = \sinh x

where coshx=ex+ex2\cosh x = \frac{e^x + e^{-x}}{2}

(tanhx)=sech2x(\tanh x)' = \text{sech}^2 x

Similar to (tanx)=sec2x(\tan x)' = \sec^2 x

(coth x)=csch2x(\text{coth } x)' = -\text{csch}^2 x

Similar to (cotx)=csc2x(\cot x)' = -\csc^2 x

Note: Unlike trig functions, (coshx)=sinhx(\cosh x)' = \sinh x (positive), not sinhx-\sinh x.

5. Differentiation Rules

Product, quotient, and sum rules

Theorem 4.3: Algebraic Rules

Sum Rule:

(f±g)(x)=f(x)±g(x)(f \pm g)'(x) = f'(x) \pm g'(x)

Product Rule:

(fg)(x)=f(x)g(x)+f(x)g(x)(f \cdot g)'(x) = f'(x) g(x) + f(x) g'(x)

Quotient Rule:

(fg)(x)=f(x)g(x)f(x)g(x)[g(x)]2\left(\frac{f}{g}\right)'(x) = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}
Proof of Theorem 4.3 (Quotient Rule):

We derive the quotient rule from the product rule. Write f/g=fg1f/g = f \cdot g^{-1}.

First, we need (g1)=g/g2(g^{-1})' = -g'/g^2 (which can be proven using the definition).

(fg)=(fg1)=fg1+f(g1)\left(\frac{f}{g}\right)' = (f \cdot g^{-1})' = f' \cdot g^{-1} + f \cdot (g^{-1})'
=fg+f(gg2)=fgfgg2= \frac{f'}{g} + f \cdot \left(-\frac{g'}{g^2}\right) = \frac{f'}{g} - \frac{fg'}{g^2}
=fgfgg2= \frac{f'g - fg'}{g^2}
Example 4.15: Product Rule Applications

(a) (x2ex)(x^2 e^x)'

=(x2)ex+x2(ex)=2xex+x2ex=x(x+2)ex= (x^2)' \cdot e^x + x^2 \cdot (e^x)' = 2xe^x + x^2 e^x = x(x+2)e^x

(b) (xsinx)(x\sin x)'

=(x)sinx+x(sinx)=sinx+xcosx= (x)' \cdot \sin x + x \cdot (\sin x)' = \sin x + x\cos x

(c) (excosx)(e^x \cos x)'

=excosx+ex(sinx)=ex(cosxsinx)= e^x \cos x + e^x(-\sin x) = e^x(\cos x - \sin x)

(d) (x3lnx)(x^3 \ln x)' for x>0x > 0

=3x2lnx+x31x=3x2lnx+x2=x2(3lnx+1)= 3x^2 \ln x + x^3 \cdot \frac{1}{x} = 3x^2 \ln x + x^2 = x^2(3\ln x + 1)
Example 4.16: Quotient Rule Applications

(a) (tanx)=(sinxcosx)(\tan x)' = \left(\frac{\sin x}{\cos x}\right)'

=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

(b) (cotx)=(cosxsinx)(\cot x)' = \left(\frac{\cos x}{\sin x}\right)'

=sinxsinxcosxcosxsin2x=(sin2x+cos2x)sin2x=1sin2x=csc2x= \frac{-\sin x \cdot \sin x - \cos x \cdot \cos x}{\sin^2 x} = \frac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} = -\frac{1}{\sin^2 x} = -\csc^2 x

(c) (x1+x2)\left(\frac{x}{1+x^2}\right)'

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

(d) (exx2)\left(\frac{e^x}{x^2}\right)'

=exx2ex2xx4=ex(x22x)x4=ex(x2)x3= \frac{e^x \cdot x^2 - e^x \cdot 2x}{x^4} = \frac{e^x(x^2 - 2x)}{x^4} = \frac{e^x(x-2)}{x^3}
Example 4.17: Combined Rules - Complex Examples

(a) Find (x2sinxex)\left(\frac{x^2 \sin x}{e^x}\right)'

Let u=x2sinxu = x^2 \sin x, then u=2xsinx+x2cosxu' = 2x\sin x + x^2\cos x.

(uex)=uexuexe2x=(2xsinx+x2cosxx2sinx)exe2x\left(\frac{u}{e^x}\right)' = \frac{u' \cdot e^x - u \cdot e^x}{e^{2x}} = \frac{(2x\sin x + x^2\cos x - x^2\sin x)e^x}{e^{2x}}
=2xsinx+x2(cosxsinx)ex= \frac{2x\sin x + x^2(\cos x - \sin x)}{e^x}

(b) Find (lnxx2)\left(\frac{\ln x}{x^2}\right)' for x>0x > 0

=1xx2lnx2xx4=x2xlnxx4=12lnxx3= \frac{\frac{1}{x} \cdot x^2 - \ln x \cdot 2x}{x^4} = \frac{x - 2x\ln x}{x^4} = \frac{1 - 2\ln x}{x^3}

(c) Find (x2exsinx)(x^2 e^x \sin x)'

Using product rule on three functions: (uvw)=uvw+uvw+uvw(uvw)' = u'vw + uv'w + uvw'

=2xexsinx+x2exsinx+x2excosx= 2x \cdot e^x \sin x + x^2 \cdot e^x \sin x + x^2 e^x \cos x
=xex(2sinx+xsinx+xcosx)=xex[(x+2)sinx+xcosx]= x e^x (2\sin x + x\sin x + x\cos x) = xe^x[(x+2)\sin x + x\cos x]
Remark 4.4: Derivative Notation Comparison
NotationNameBest For
f(x),yf'(x), y'LagrangeCompact notation, function emphasis
dydx,dfdx\frac{dy}{dx}, \frac{df}{dx}LeibnizChain rule, related rates, integration
y˙,x˙\dot{y}, \dot{x}NewtonTime derivatives (physics)
Df,DxfDf, D_x fOperatorAbstract analysis, operators
Remark 4.5: Common Differentiation Mistakes

❌ Wrong: (fg)=fg(fg)' = f'g'

✓ Correct: (fg)=fg+fg(fg)' = f'g + fg' (Product rule)

❌ Wrong: (fg)=fg\left(\frac{f}{g}\right)' = \frac{f'}{g'}

✓ Correct: (fg)=fgfgg2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}

❌ Wrong: (xn)=xn1(x^n)' = x^{n-1}

✓ Correct: (xn)=nxn1(x^n)' = nx^{n-1} (Don't forget the coefficient!)

Practice Quiz
Derivative Definition Quiz
18
Questions
0
Correct
0%
Accuracy
1
What is the formal definition of the derivative f(x0)f'(x_0)?
Easy
Not attempted
2
For f(x)=xf(x) = |x|, what can we say about f(0)f'(0)?
Medium
Not attempted
3
Which statement about differentiability and continuity is correct?
Easy
Not attempted
4
Calculate (x3ex)(x^3 \cdot e^x)' using the product rule.
Medium
Not attempted
5
What is (sinxx)(\frac{\sin x}{x})' for x0x \neq 0?
Medium
Not attempted
6
If f+(x0)=f(x0)=2f'_+(x_0) = f'_-(x_0) = 2, what is f(x0)f'(x_0)?
Easy
Not attempted
7
For f(x)=x2sin(1/x)f(x) = x^2 \sin(1/x) (x0x \neq 0), f(0)=0f(0) = 0, is ff differentiable at 0?
Hard
Not attempted
8
What is (tanx)(\tan x)'?
Easy
Not attempted
9
For f(x)=xf(x) = \sqrt{x}, what is f(x)f'(x) for x>0x > 0?
Easy
Not attempted
10
The quotient rule states (f/g)=(f/g)' = ?
Medium
Not attempted
11
Find (xx)(x^x)' for x>0x > 0.
Hard
Not attempted
12
What is the geometric meaning of f(x0)f'(x_0)?
Easy
Not attempted
13
What is (lnx)(\ln x)' for x>0x > 0?
Easy
Not attempted
14
Find (exsinx)(e^x \sin x)'.
Medium
Not attempted
15
What is (secx)(\sec x)'?
Medium
Not attempted
16
If f(x)=x33xf(x) = x^3 - 3x, find f(2)f'(2).
Easy
Not attempted
17
What is ddx(arctanx)\frac{d}{dx}(\arctan x)?
Medium
Not attempted
18
If ff is differentiable at aa, which is guaranteed?
Medium
Not attempted

Frequently Asked Questions

What is the geometric interpretation of the derivative?

The derivative f'(x₀) represents the slope of the tangent line to the graph of f at (x₀, f(x₀)). It is the limit of secant line slopes as the second point approaches (x₀, f(x₀)).

Why does differentiability imply continuity but not vice versa?

If f'(x₀) exists, we can write f(x) - f(x₀) = [(f(x) - f(x₀))/(x - x₀)] · (x - x₀). As x → x₀, first factor → f'(x₀), second → 0, so f(x) → f(x₀). The converse fails because |x| has a corner at 0.

How do I remember the quotient rule?

'Low d-high minus high d-low, over low squared': (f/g)' = (g·f' - f·g')/g². Low = denominator g, high = numerator f, d = derivative.

What's the difference between f'(x₀) and f'₊(x₀)?

f'(x₀) requires limits from both sides to be equal. f'₊(x₀) only considers x → x₀⁺. The derivative exists iff f'₊(x₀) = f'₋(x₀).

Can a function have a discontinuous derivative?

Yes! f(x) = x²sin(1/x) for x ≠ 0 and f(0) = 0 is differentiable everywhere, but f'(x) is discontinuous at 0 because cos(1/x) oscillates.

When should I use the definition vs differentiation rules?

Use the definition for: proving rules, piecewise functions at junction points, functions defined by limits/series, checking existence. Use rules for efficient computation.

What are the most common mistakes in differentiation?

Common mistakes include: (1) Forgetting to apply product rule when multiplying functions, (2) Mixing up signs in quotient rule, (3) Forgetting the coefficient in power rule (writing x^(n-1) instead of nx^(n-1)), (4) Not checking domain restrictions.

How do I find the equation of a tangent line?

At point (x₀, f(x₀)): (1) Find f'(x₀) for the slope, (2) Use point-slope form: y - f(x₀) = f'(x₀)(x - x₀). This can be rewritten as y = f(x₀) + f'(x₀)(x - x₀).

What does it mean if the derivative is zero at a point?

If f'(x₀) = 0, the tangent line is horizontal at x₀. This point is called a critical point. It could be a local maximum, local minimum, or inflection point - further analysis (second derivative test or first derivative test) is needed.

Can a function be continuous everywhere but differentiable nowhere?

Yes! The Weierstrass function is continuous everywhere but differentiable nowhere. It's defined as an infinite sum of cosines with rapidly increasing frequencies. This counterintuitive example shows continuity and differentiability are very different properties.

What is logarithmic differentiation and when should I use it?

Logarithmic differentiation involves taking ln of both sides, then differentiating. Use it for: (1) Functions like x^x where variable is in both base and exponent, (2) Products of many functions, (3) Complicated quotients. The technique simplifies multiplication to addition.

How do I check if a piecewise function is differentiable at the junction?

At junction point x₀: (1) Check continuity: lim(x→x₀⁻) f(x) = lim(x→x₀⁺) f(x) = f(x₀), (2) Check derivatives match: f'₋(x₀) = f'₊(x₀). Both conditions must hold for differentiability.

Key Takeaways

Definition

f(x0)=limh0f(x0+h)f(x0)hf'(x_0) = \lim_{h \to 0} \frac{f(x_0+h)-f(x_0)}{h}

Key Relationship

Differentiable ⟹ Continuous (not vice versa)

One-Sided Test

ff' exists ⟺ f+=ff'_+ = f'_-

Product Rule

(fg)=fg+fg(fg)' = f'g + fg'

Quotient Rule

(f/g)=fgfgg2(f/g)' = \frac{f'g - fg'}{g^2}

Power Rule

(xn)=nxn1(x^n)' = nx^{n-1}

Exponential

(ex)=ex,(ax)=axlna(e^x)' = e^x, \quad (a^x)' = a^x \ln a

Logarithm

(lnx)=1x(\ln x)' = \frac{1}{x}

Trigonometric

(sinx)=cosx,(cosx)=sinx(\sin x)' = \cos x, \, (\cos x)' = -\sin x

Tangent Line

y=f(x0)+f(x0)(xx0)y = f(x_0) + f'(x_0)(x - x_0)

What's Next?

In the next module, you will learn about the Chain Rule for differentiating composite functions, and Higher-Order Derivatives including the second derivative and beyond.

  • Chain rule: (fg)(x)=f(g(x))g(x)(f \circ g)'(x) = f'(g(x)) \cdot g'(x)
  • Implicit differentiation for equations like x2+y2=1x^2 + y^2 = 1
  • Higher derivatives: f,f,f(n)f'', f''', f^{(n)}
  • Leibniz formula for nth derivative of products
  • Parametric differentiation for curves (x(t),y(t))(x(t), y(t))
  • Inverse function derivatives

Study Tips

Practice Strategy

Start with simple functions, then gradually combine rules. Always verify your answers using the definition for a few cases.

Memorization

Memorize the basic formulas table. Create flashcards for quick review. Understanding the proofs helps remember the formulas.

Common Pitfalls

Don't forget the coefficient in power rule. Always check if product/quotient rule is needed before differentiating.

Verification

Check your answers by substituting specific values. Use graphing tools to visualize tangent lines.