Lecture: Derivatives as Limits — The Algebraic Definition

Objective

To introduce the formal definition of the derivative using limits, and apply it to compute derivatives of well-known functions. This builds on the intuition of average and instantaneous rate of change.


Motivation Review: From Average to Instantaneous

Recall from our last lecture:

This is called the difference quotient. It's the heart of differential calculus.


Algebraic Definition of the Derivative

Let f(x)f(x) be a function. The derivative of ff at a point xx is:

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

If this limit exists, ff is said to be differentiable at xx.

This limit represents the slope of the tangent line to the graph of ff at xx.


Notation

There are several ways to denote the derivative of a function. All represent the same concept: the instantaneous rate of change or the slope of the tangent line.

1. Leibniz Notation

Emphasizes the variables involved:

dydx,dfdx,ddx[f(x)]\frac{dy}{dx}, \quad \frac{df}{dx}, \quad \frac{d}{dx}[f(x)]

This notation is especially useful in applied problems (e.g., physics) and when working with related rates or implicit differentiation.

2. Lagrange Notation

Commonly used in pure mathematics:

f(x),yf'(x), \quad y'

This is compact and often used when the independent variable is clear from context.

3. Newton Notation

Used mainly in physics and engineering for derivatives with respect to time:

y˙,y¨\dot{y}, \quad \ddot{y}

Where y˙\dot{y} represents the first derivative with respect to time (velocity, for example), and y¨\ddot{y} the second derivative (acceleration).

4. Prime Notation for Higher Derivatives

For example:

d2ydx2,d2fdx2,d2dx2[f(x)]\frac{d^2y}{dx^2}, \frac{d^2f}{dx^2}, \frac{d^2}{dx^2}[f(x)]


Step-by-Step Example: f(x)=x2f(x) = x^2

Let us compute f(x)f'(x) using the limit definition:

f(x)=limh0(x+h)2x2hf'(x) = \lim_{h \to 0} \frac{(x + h)^2 - x^2}{h}

Expand:

=limh0x2+2xh+h2x2h=limh02xh+h2h= \lim_{h \to 0} \frac{x^2 + 2xh + h^2 - x^2}{h} = \lim_{h \to 0} \frac{2xh + h^2}{h}

=limh0(2x+h)=2x= \lim_{h \to 0} (2x + h) = 2x

So, f(x)=2xf'(x) = 2x.


Another Example: f(x)=1xf(x) = \frac{1}{x}

f(x)=limh01x+h1xhf'(x) = \lim_{h \to 0} \frac{\frac{1}{x + h} - \frac{1}{x}}{h}

Use common denominator:

=limh0x(x+h)x(x+h)h=limh0hhx(x+h)= \lim_{h \to 0} \frac{\frac{x - (x + h)}{x(x + h)}}{h} = \lim_{h \to 0} \frac{-h}{hx(x + h)}

Cancel hh:

=limh01x(x+h)=1x2= \lim_{h \to 0} \frac{-1}{x(x + h)} = -\frac{1}{x^2}

So, f(x)=1x2f'(x) = -\frac{1}{x^2}


Additional Examples

1. f(x)=xf(x) = \sqrt{x}

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

Multiply by the conjugate:

=limh0x+hxh(x+h+x)=limh01x+h+x=12x= \lim_{h \to 0} \frac{x + h - x}{h(\sqrt{x + h} + \sqrt{x})} = \lim_{h \to 0} \frac{1}{\sqrt{x + h} + \sqrt{x}} = \frac{1}{2\sqrt{x}}

2. f(x)=xf(x) = |x|

f(x)=limh0x+hxhf'(x) = \lim_{h \to 0} \frac{|x + h| - |x|}{h}

at x=0x = 0, we have:

limh00+h0h=limh0hh\lim_{h \to 0} \frac{|0 + h| - |0|}{h} = \lim_{h \to 0} \frac{|h|}{h}

Looking at the left and right limits, we have:

limh0hh=1andlimh0+hh=1\lim_{h \to 0^-} \frac{|h|}{h} = -1 \quad \text{and} \quad \lim_{h \to 0^+} \frac{|h|}{h} = 1

Since the left and right limits are not equal, the limit does not exist.

This limit does not exist at x=0x = 0. So f(x)=xf(x) = |x| is not differentiable at x=0x = 0.


Famous Derivatives

Function Derivative
f(x)=xnf(x) = x^n f(x)=nxn1f'(x) = nx^{n-1}
f(x)=sin(x)f(x) = \sin(x) f(x)=cos(x)f'(x) = \cos(x)
f(x)=cos(x)f(x) = \cos(x) f(x)=sin(x)f'(x) = -\sin(x)
f(x)=exf(x) = e^x f(x)=exf'(x) = e^x
f(x)=ln(x)f(x) = \ln(x) f(x)=1xf'(x) = \frac{1}{x}

Exercises

1. Find derivatives

Using the limit definition, find the derivative of the following functions:

2. Prove from the limit definition:

3. Find f(x)f'(x) using the limit definition.

4. logarithmic function

Derive the formula for f(x)=ln(x)f(x) = \ln(x) from the limit definition:

f(x)=limh0ln(x+h)ln(x)hf'(x) = \lim_{h \to 0} \frac{\ln(x + h) - \ln(x)}{h}

Use the identity: ln(x+h)ln(x)=ln(1+hx)\ln(x + h) - \ln(x) = \ln\left(1 + \frac{h}{x}\right), and the definition of ee.

5. absolute value function

Let f(x)=x1f(x) = |x - 1|. Determine where ff is not differentiable and explain why using the limit definition.

Extra Advanced Exercises:

1. Piecewise Function Differentiability

Let:

f(x)={x2+2x,x<1ax+b,x1f(x) = \begin{cases} x^2 + 2x, & x < 1 \\ ax + b, & x \geq 1 \end{cases}

Find values of aa and bb such that:

2. Challenge with Radical and Rational Function

Use the limit definition to find f(x)f'(x) for:

f(x)=xx+1f(x) = \frac{x}{\sqrt{x + 1}}

3. Limit Form Involving Trigonometry

Use the identity:

limh0sin(h)h=1\lim_{h \to 0} \frac{\sin(h)}{h} = 1

to derive:

ddx(sin(x))=cos(x)\frac{d}{dx}(\sin(x)) = \cos(x)

4. Absolute and Rational Hybrid

Let:

f(x)=xxf(x) = \frac{|x|}{x}

5. Pointwise Derivative of a Nowhere-Differentiable Function

Read about the Weierstrass function:

f(x)=n=0ancos(bnπx)with 0<a<1, b odd, ab>1+3π2f(x) = \sum_{n=0}^{\infty} a^n \cos(b^n \pi x) \quad \text{with } 0 < a < 1, \ b \text{ odd, } ab > 1 + \frac{3\pi}{2}

Wrap-Up