Reading history

Differentiability and Rates of Change

6 min read 1 views

Learn when a function is differentiable, why corners and cusps fail, how to test piecewise joins, and use derivatives as velocity and marginal cost.

Not every continuous function has a derivative everywhere. A graph can be unbroken yet have a sharp corner, a cusp or a vertical tangent, and at those points the slope does not exist. This lesson explains exactly when a function is differentiable, how differentiability relates to continuity, and how to test a piecewise function at its join. Then it turns to what derivatives mean in the real world: velocity, acceleration, marginal cost and the units of a rate of change.

In this lesson you will learn

  • What it means for a function to be differentiable at a point
  • Why differentiable implies continuous, but not the other way round
  • Corners, cusps, vertical tangents and jumps: where derivatives fail
  • How to test differentiability of a piecewise function
  • The derivative as velocity, acceleration and marginal cost, with units

You should know the derivative from first principles and continuity.

Differentiable at a Point

A function f is differentiable at x = a if the limit

f′(a) = lim (f(a + h) − f(a)) / h
        h→0

exists as a finite number. Like any two-sided limit, it needs the left and right versions to agree. These one-sided limits are the slope from the left and the slope from the right. A function is differentiable on an interval if it is differentiable at every point inside it.

Geometrically, a function is differentiable at a point when its graph looks like a straight, non-vertical line if you zoom in far enough there. Smooth curves pass this test. Graphs with sharp features do not.

Where Derivatives Fail

xyCorner: y = |x|slope −1slope +1xyCusp: y = x^(2/3)xyVertical tangent: y = x^(1/3)slopes from each side differslopes → −∞ and +∞slope grows without bound
FeatureExample at x = 0Why there is no derivative
Cornerf(x) = |x|Slope from the left is −1, from the right is +1
Cuspf(x) = x2/3Slopes go to −∞ on one side and +∞ on the other
Vertical tangentf(x) = x1/3Slope grows without bound; a vertical line has no slope
DiscontinuityAny jump or holeThe function is not even continuous

Look closely at |x|. For h > 0, (|0 + h| − |0|)/h = h/h = 1. For h < 0, it is −h/h = −1. The one-sided limits are 1 and −1. They disagree, so the derivative at 0 does not exist, even though |x| is perfectly continuous there.

Differentiable Implies Continuous

If f is differentiable at a, then f is continuous at a. Here is the short reason:

f(a + h) − f(a) = [ (f(a + h) − f(a)) / h ] · h

As h → 0, the bracket → f′(a), a finite number, and h → 0.
So f(a + h) − f(a) → f′(a) · 0 = 0,
which means f(a + h) → f(a): f is continuous at a.

The converse is false, as |x| shows. So the logic runs one way:

differentiable  ⟹  continuous
continuous      ⇏  differentiable

A useful consequence: if a function is not continuous at a point, you know immediately that it is not differentiable there.

Testing a Piecewise Function

To check differentiability at a join, check two things: the pieces must meet (continuity) and they must meet with the same slope.

        ⎧ x²        if x ≤ 1
f(x) =  ⎨
        ⎩ ax + b    if x > 1

Find a and b so that f is differentiable at x = 1.

Same slope:  left slope = 2x = 2 at x = 1;  right slope = a.   So a = 2.
Meet:        left value = 1;  right value = a + b = 2 + b.     So b = −1.

f(x) = x² for x ≤ 1 and 2x − 1 for x > 1.
The line y = 2x − 1 is exactly the tangent to y = x² at (1, 1).

Why both conditions are needed

Matching slopes alone is not enough. x² for x ≤ 1 and 2x + 5 for x > 1 have the same slope 2 at the join, but the pieces are 6 units apart, so there is a jump and no derivative. Always check continuity first.

The Derivative as a Rate of Change

The derivative dy/dx measures how fast y changes per unit change in x. Its units are always units of y per unit of x.

Velocity and acceleration. If s(t) is position in metres at time t in seconds, then

velocity      v(t) = s′(t)    in m/s
acceleration  a(t) = v′(t)    in m/s²   (the derivative of the derivative)

For a falling ball, s(t) = 5t²:
v(t) = 10t      so v(3) = 30 m/s, matching the table in "What Is Calculus?"
a(t) = 10       a constant 10 m/s², the acceleration due to gravity

Marginal cost. A factory in Gazipur makes q shirts a day at a cost of C(q) = 2000 + 50q + 0.1q² Taka. The derivative C′(q) = 50 + 0.2q is the marginal cost: the approximate cost of making one more shirt.

C′(100) = 50 + 20 = 70 Tk per shirt
Exact cost of the 101st shirt: C(101) − C(100) = 70.1 Tk

The derivative gives an excellent estimate because over one extra shirt the cost curve is almost straight. That is the derivative’s job in economics: the cost, revenue or profit of “one more”.

If y is …and x is …then dy/dx is …
Distance (km)Time (h)Speed (km/h)
Volume of water (litres)Time (min)Flow rate (L/min)
Cost (Tk)Items madeMarginal cost (Tk per item)
PopulationYearsGrowth rate (people per year)

Common Mistakes

  1. Assuming continuous means differentiable. Corners and cusps are continuous but have no derivative.
  2. Checking only slopes at a join. The pieces must also meet.
  3. Forgetting units. A rate of change always has “per” in its units.
  4. Confusing speed with velocity. Velocity can be negative (moving backwards); speed is its size.
  5. Thinking a vertical tangent has slope 0. A horizontal tangent has slope 0; a vertical one has no slope at all.

Practice Exercises

Exercise 1. Is f(x) = |x − 3| differentiable at x = 3? Explain.

Show answer

No. It is |x| shifted 3 to the right, so it has a corner at x = 3: the slope is −1 on the left and +1 on the right.

Exercise 2. A particle moves with s(t) = t³ − 6t² metres. Find its velocity and acceleration, and the times when it is momentarily at rest.

Show answer

v(t) = 3t² − 12t m/s and a(t) = 6t − 12 m/s². At rest when v = 0: 3t(t − 4) = 0, so t = 0 and t = 4 seconds.

Exercise 3. f(x) = kx² for x < 2 and f(x) = 4x − 4 for x ≥ 2. Find k so that f is continuous at 2. Is it then differentiable at 2?

Show answer

Continuity: 4k = 4, so k = 1. Slopes: left 2kx = 4, right 4. They match, so yes, f is differentiable at 2.

Frequently Asked Questions

Can a function be continuous but not differentiable?

Yes. The absolute value function is continuous at zero but has a sharp corner there, with slope -1 on the left and +1 on the right, so it has no derivative at zero. Cusps and vertical tangents are other examples.

What does the derivative mean in real life?

The derivative is an instantaneous rate of change. Velocity is the derivative of position, acceleration is the derivative of velocity, and marginal cost is the derivative of total cost. Its units are always the output units per input unit.

Summary

  • f is differentiable at a if f′(a) exists as a finite limit, with equal slopes from both sides.
  • Derivatives fail at corners, cusps, vertical tangents and discontinuities.
  • Differentiable implies continuous, but continuous does not imply differentiable.
  • At a piecewise join, check that the pieces meet and have the same slope.
  • dy/dx is a rate in units of y per unit of x: velocity, acceleration, marginal cost.

Next: The Power Rule and Basic Differentiation Rules.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *