Lecture 20: Definition of the Derivative✅

Slope and Rate of Change

  • The derivative of a function ff at a point x=ax = a is the instantaneous rate of change of ff at x=ax = a.
  • Consider the graph of a function y=f(x)y = f(x).
  • Take a point aa and its image f(a)f(a). This forms the point (a,f(a))(a, f(a)).
  • Take an increment hh for aa, so consider a+ha + h and its image f(a+h)f(a + h). This forms the point (a+h,f(a+h))(a + h, f(a + h)).
  • The blue line joins the points (a,f(a))(a, f(a)) and (a+h,f(a+h))(a + h, f(a + h)).

Slope of the Line

  • The slope of the line joining the points (a,f(a))(a, f(a)) and (a+h,f(a+h))(a + h, f(a + h)) is given by:
    ΔyΔx=f(a+h)f(a)(a+h)a=f(a+h)f(a)h\frac{\Delta y}{\Delta x} = \frac{f(a + h) - f(a)}{(a + h) - a} = \frac{f(a + h) - f(a)}{h}

Limit as h Approaches Zero

  • What happens to the slope of the line as hh approaches zero?
  • As hh gets smaller, the point (a+h,f(a+h))(a + h, f(a + h)) moves towards (a,f(a))(a, f(a)).
  • The lines joining (a,f(a))(a, f(a)) and (a+h,f(a+h))(a + h, f(a + h)) start to resemble a tangent line.
  • The tangent line to a graph at a point is a line that touches the graph at exactly one point.
  • The limit as hh approaches zero of the fraction f(a+h)f(a)h\frac{f(a + h) - f(a)}{h}, if it exists, is the slope of the tangent line to the graph of ff at the point (a,f(a))(a, f(a)).
  • This is called the instantaneous rate of change of the function ff at the point aa.

Definition of the Derivative

  • Formally, the derivative of a function at a point x=ax = a is defined as:
    limh0f(a+h)f(a)h\lim_{h \to 0} \frac{f(a + h) - f(a)}{h}
  • If this limit exists, the function is said to be differentiable at the point x=ax = a.

Examples

  • Example 1: Consider the function f(x)=x2f(x) = x^2 and the point a=1a = 1.
    Calculate the derivative of ff at the point 1:
    lim<em>h0f(1+h)f(1)h=lim</em>h0(1+h)212h\lim<em>{h \to 0} \frac{f(1 + h) - f(1)}{h} = \lim</em>{h \to 0} \frac{(1 + h)^2 - 1^2}{h}
    lim<em>h01+2h+h21h=lim</em>h02h+h2h=limh0(2+h)=2\lim<em>{h \to 0} \frac{1 + 2h + h^2 - 1}{h} = \lim</em>{h \to 0} \frac{2h + h^2}{h} = \lim_{h \to 0} (2 + h) = 2
  • Example 2: Find the tangent line to y=x2y = x^2 at x=1x = 1.
    • The derivative is the slope of the tangent line.
    • We have a point (1,f(1))(1, f(1)) and the slope f(1)f'(1).
    • The equation of the line is yf(1)=f(1)(x1)y - f(1) = f'(1)(x - 1).

Equation of the Tangent Line

  • Given the point (1,f(1))(1, f(1)), where f(1)=12=1f(1) = 1^2 = 1, and the slope f(1)=2f'(1) = 2, the equation of the tangent line is:
    y1=2(x1)y - 1 = 2(x - 1)
    y=2x2+1=2x1y = 2x - 2 + 1 = 2x - 1

Notes on the Derivative

  • The quotient f(a+h)f(a)h\frac{f(a + h) - f(a)}{h} is called the difference quotient.
  • When the derivative is positive, the tangent line slants to the right of the vertical.
  • When the derivative is negative, the tangent line slants to the left of the vertical.
  • When the derivative is zero, the tangent line is horizontal.

Derivative of a Function

  • The derivative of a function ff usually takes different values at different points aa.
  • The derivative is itself a function.
  • If we replace the number aa in the definition by a variable xx, we can define the derivative of ff, denoted as f(x)f'(x), as a function of xx:
    f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}
  • This is over a subset of the domain of ff for which the limit exists.

Distinction

  • The derivative at a specific point is numerical, while the derivative as a function uses a variable.
  • The domain of the derivative function ff' is all points xx for which f(x)f'(x) exists and are part of the domain of ff.

Differentiability on Intervals

  • A function ff is differentiable on an open interval (a,b)(a, b) if the function is differentiable at every point xx in that interval.

Example

  • Find the derivative of f(x)=x2f(x) = x^2 using the limit definition:
    f(x)=lim<em>h0f(x+h)f(x)h=lim</em>h0(x+h)2x2hf'(x) = \lim<em>{h \to 0} \frac{f(x + h) - f(x)}{h} = \lim</em>{h \to 0} \frac{(x + h)^2 - x^2}{h}
    =lim<em>h0x2+2xh+h2x2h=lim</em>h02xh+h2h= \lim<em>{h \to 0} \frac{x^2 + 2xh + h^2 - x^2}{h} = \lim</em>{h \to 0} \frac{2xh + h^2}{h}
    =limh0(2x+h)=2x= \lim_{h \to 0} (2x + h) = 2x
  • Thus, the derivative of f(x)=x2f(x) = x^2 is f(x)=2xf'(x) = 2x.
  • We can check f(1)=2f'(1) = 2 as before.

Notes

  • f(x)f'(x) represents the rate of change of the function at each point where it's defined.
  • If ff represents the position of an object moving along a straight path, then ff' represents the velocity of the object.
  • If f(x)f(x) represents the displacement of a particle, then ff' is the velocity.

Graphical Meaning of the Derivative Function

  • If the derivative is positive on an interval, the function is increasing on that interval.
  • If the derivative is negative on an interval, the function is decreasing on that interval.
  • If the derivative is zero on an interval, the function is constant on that interval.

Example

  • Consider a function f(x)f(x). On the interval (,a)(-\infty, a), f'(x) > 0, so f(x)f(x) increases.
  • On the interval (b,)(b, \infty), f'(x) < 0, so f(x)f(x) decreases.
  • On the interval (a,b)(a, b), f(x)=0f'(x) = 0, so f(x)f(x) is constant.

Continuity and Differentiability

  • If a function is not continuous (e.g., has a jump), then the function is not differentiable at that point.
  • If a function has a corner (e.g., absolute value of x+1x + 1), then the function is not differentiable at that point.

Limits

  • Remember: a limit exists if and only if the left and right limits exist and are equal to that value ll.
  • Consider f(x)=x+1f(x) = |x + 1|. Show that the derivative doesn't exist at x=1x = -1 by showing that the left and right limits of the difference quotient are different:
    lim<em>x1f(x+h)f(x)hlim</em>x1+f(x+h)f(x)h\lim<em>{x \to -1^-} \frac{f(x + h) - f(x)}{h} \neq \lim</em>{x \to -1^+} \frac{f(x + h) - f(x)}{h}

Pathological Cases where Derivative Doesn't Exist

  • Cusp: The derivative doesn't exist because you have a vertical tangent line (infinite slope).
  • Vertical Tangent Line: Infinite slope, so the limit doesn't exist.
  • A continuous function is not necessarily differentiable.
  • If a function is differentiable, then it means that the function is continuous.
  • If ff is differentiable at a point aa, then ff is continuous at a point aa.
  • If ff is not continuous at a point, then ff cannot be differentiable at that point.

Local Linearity

  • When a function is differentiable, we call it smooth (continuous and has no corners or cusps).
  • Local linearity means that when we zoom in on the graph of a differentiable function, it starts to look like a line.

Revision of Important Derivatives

  • Derivative of a constant: 0
  • Derivative of xx: 1
  • Derivative of xαx^\alpha: αxα1\alpha x^{\alpha - 1} for αR\alpha \in \mathbb{R}
  • Derivative of exe^x: exe^x
  • Derivative of ln(x)\ln(x): 1x\frac{1}{x}
  • Derivative of sin(x)\sin(x): cos(x)\cos(x)
  • Derivative of cos(x)\cos(x): sin(x)-\sin(x)
  • Use the definition of f(x)f'(x) to find these derivatives (first principles).