Access this content offline
Omniguides
Skip to the reading

Differentiability

This original textbook reading covers part of the AP topic. Follow the AP course outline for complete topic instruction and practice.

This reading includes verified answer corrections and explicitly stated clarifications.

When is a function differentiable?

A function is differentiable at a point exactly when its difference quotient has a finite two-sided limit: limh→0 [f(a + h) − f(a)]/h. The following are useful warning signs, not a complete checklist proving differentiability.

  • Differentiability implies continuity. Continuity by itself does not imply differentiability: |x| is continuous at 0 but has different one-sided slopes.
  • Corners and cusps can prevent a derivative. At a corner the finite one-sided derivatives differ; at a cusp a finite two-sided derivative also fails. Always test the limiting slopes.
  • A vertical tangent does not give a finite derivative. Oscillation can also prevent the derivative: let f(x) = x sin(1/x) for x ≠ 0 and f(0) = 0. It is continuous at 0, but its difference quotient sin(1/h) has no limit. A picture alone cannot certify differentiability.

Notation

So far we have seen the derivative of a function written as:

limh→0f(x+h)-f(x)h , or in other words ΔyΔx for really, really small changes in y and x. However, ever since we learned to calculate the derivatives of functions in the form of another function (recall Example Problem 2.4.1), it might be inconvenient to write the derivative as a limit over and over again. As a result, mathematicians have come up with many convenient shorthand ways to demonstrate the derivative of a function. Each of these has a slightly different meaning.

Some notations for derivatives

  • dx,dt,dy - This notation represents a very small change in or a very small piece of x, t, or y, respectively. This is also known as a differential. Differentials can be functions of each other as well, and have an entire course named after them.
  • ddx,ddy,ddt - These all represent general change with respect to a specific variable. The d can be thought of as delta, except for very small values so that we can distinguish between slope and derivative.
  • dxdt,dydt,dydx - These represent change in one variable with respect to another variable. This is what we are usually solving for, with dydx being the most common. The notation only varies depending on the variables we choose.
  • x·,y· - This represents the derivative of the dependent variable in an equation (usually y) with the dependent variable (usually x or t) being implied. This notation is most commonly used in science and engineering problems, where many variables are involved, and it is simplest to show their derivatives with just one or two dots over them (two dots represent second order derivatives).
  • y′,y′′ - pronounced “why prime” and “why double prime” respectively, these are commonly used by mathematicians. The number of primes on a variable represent how many times to take the derivative of the function. Again, the independent variable is implied here.
  • f′(x),f′′(x),fn(x) - This notation is convenient for representing higher order derivatives and eventually generalizing formulas for the “nth” derivative. Sometimes the independent variable is implied and the notation changes to f’, f’’, f’’’, etc.

Example Problem 3.1.1

If it exists, find the derivative at x=1 of the piece-wise function:​
f(x)={x3+1pifx<13x2+12pifx≥1

Motivation: Get ready, because this will likely be one of the most challenging example problems you have encountered so far. So challenging, in fact, that I almost did not want to put this in here. However, if you can learn how to do this problem, you will have mastered the concept behind a derivative. Get set, go!

First check continuity at x = 1, because a discontinuity rules out differentiability. Then compute the left and right difference-quotient limits. If both are finite and equal, the derivative exists. The three visual warning signs discussed earlier are not an exhaustive list.

Step 1: Check for discontinuities by calculating the left hand side and right hand side limits at the point of interest (x = 1)

Conceptually, we would have to test the left hand side limit, then the right hand side limit to see if the function is continuous at the point x = 1.

However, from our mastery of limits, we can see that both of our pieces of functions are positive-degree polynomial functions (all variables have a power greater than or equal to 0), and since these functions are continuous for all real numbers, let’s just plug in the value x=1 for each of these functions to make finding their limits faster.

The left hand side limit at x=1 occurs due to the x3+1 piece of the function. Since we know this is a continuous piece, let’s just plug in x=1 , giving us f(x) = 2 for the left hand side limit.​
The right hand side limit at
x = 1 occurs due to the second piece of the function. By plugging in x = 1 for that piece, we get f(x) = 2 for the right hand side limit.

Recall Theorem 2.1! We just proved that the general limit of this piecewise function not only exists, but is equal to 2 for sure! Also, we proved that this function is continuous because its left hand side and right hand side limits equal each other and because f(1) exists and equals 2 (which disproves the possibility that it might have a hole discontinuity).

Step 2: Check if the function has a cusp at that point

For this piecewise function, compare the finite one-sided derivatives at x = 1. Unequal finite values would give a corner; equal finite values establish differentiability. A cusp usually involves unbounded one-sided slopes, so we should not call every slope mismatch a cusp.

 

Left hand side derivative:

f′(x)=limh→0f(x+h)-f(x)h

This is what we get after plugging in our left-hand side function. Right off the bat, we can see that the constants cancel. We can now expand the term (x+h)3

=limh→0(x+h)3+1-(x3+1)h

=limh→0(x3+3x2h+3xh2+h3)−x3h

The x³ terms cancel. The remaining numerator is 3x²h + 3xh² + h³, so every term has a factor h. For h ≠ 0, cancel that common factor with the denominator, leaving 3x² + 3xh + h² before taking the limit.

=limh→0h(3x2+3xh+h2)h

The h’s cancel! Now we can solve the limit.

=limh→03x2+3xh+h2

=3x2

This is the general left-hand side derivative function. After plugging in x=1, we get that the left hand side derivative equals 3.

Right hand side derivative:

f′(x)=limh→0f(x+h)-f(x)hddd=limh→03(x+h)2+12-3x2+12h

Ew, that looks nasty. Let’s factor out a 12 from the numerator (coefficient law of limits) to make it look nicer and remove some parentheses to see what cancels.

=12limh→03(x+h)2+1-3x2-1h

We see that the constants cancel. Let’s expand the numerator.

=12limh→03x2+6xh+3h2-3x2h

Now the highest order x-terms cancel. Starting to see a pattern here? We can now factor out an h from the numerator and cancel it with the h in the denominator.

=12limh→0h(6x+3h)h​
=12limh→06x+3h​
=3x

Now we plug in x=1 into the derivative function, f’(x) and we get that the right hand side derivative also equals 3!

Whoever designed this problem sure knew what he was doing! The LHS derivative equals the RHS derivative! So there is no cusp!

Step 3: Check for vertical tangents

We have already proven mathematically that there are no vertical tangents at x = 1 because the slope is actually 3, and vertical tangents have a slope of ∞. The gallery on the left shows visually what a piece-wise function looks like without any cusps. It almost looks like the two curves blend very smoothly together and form the graph of a completely new, smooth function.

 

A shortcut to finding derivatives: The Power Rule

We have learned to calculate a derivative using limits, but this can get troublesome, having to take a limit every time we want to find the derivative. The good news is there is a shortcut called the power rule, which lets us find the derivative of any degree polynomial function (including fractional and negative degrees). The power rule looks something like this:

ddxxn=n⋅xn-1​
So we can find the derivative of x raised to any power by simply multiplying the function by the power, then reducing the power by 1. The simplest proof of the power rule involves using Pascal’s triangle to expand and write the derivative in a general form using the x approaching a definition of a derivative. You might be interested in trying to prove it independently if you are a mathematics major, but we will skip over it for now.

Pop Quiz 3.1.1 Utilizing the power rule

Question 1 of 5 · 0 correct

Find f′(x) using the power rule given that f(x)=x8

Select one answer.
Glossary and deeper reading · 9 refreshers

These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.

  • Differentiability

    Differentiability means that a function has a finite derivative at the point under discussion. Differentiability at a point implies continuity there, but continuity alone does not imply differentiability. For example, |x| is continuous at 0 but its left and right tangent slopes differ, so it is not differentiable there. Corners, cusps, vertical tangents, and discontinuities can prevent a finite derivative.

    Read more: 2.4 · Differentiability →

  • Function

    A mathematical function assigns exactly one output to each input in its domain. Inputs can share an output, but one input cannot have two different outputs. For example, f(x)=x² assigns the output 9 to both 3 and −3. Function notation names the rule and its input; f(3) means the output when the input is 3.

  • Difference quotient

    A difference quotient divides a change in a function’s output by the associated nonzero input change. The form [f(a+h)−f(a)]/h is an average rate over an interval of length h. For example, for f(x)=x² it simplifies to 2a+h when h≠0. Taking its limit as h approaches 0 defines the derivative at a if the finite limit exists.

    Read more: 2.2 · Difference quotient →

  • Continuity

    A function is continuous at an input when its value exists, its finite limit exists, and those two values agree. At a domain endpoint, continuity uses the relevant one-sided approach. For example, x² is continuous at 3 because both its value and its nearby limit are 9. Continuity on an interval requires the appropriate condition at every input in that interval.

    Read more: 1.11 · Continuity →

  • Derivative

    A derivative gives the instantaneous rate of change of a function with respect to its input. At a point, it is the finite limit of the difference quotient when that limit exists. For example, the derivative of x² is 2x, so the tangent slope at x=3 is 6. A derivative function collects those rates across the inputs where the function is differentiable.

    Read more: 2.2 · Derivative →

  • Vertical tangent

    A vertical tangent is a tangent line parallel to the vertical axis, with no finite slope. A graph can have a vertical tangent even though its derivative does not exist as a finite real number at that input. For example, y=∛x has the vertical tangent x=0 at the origin as its nearby slopes tend to positive infinity. This case is separate from the finite-slope tangent approximation available at a differentiable point.

    Read more: 2.4 · Differentiability and vertical tangents →

  • Limit

    A limit describes the value approached by outputs as inputs approach a specified target or grow without bound. For an input approaching a finite target, its value at that exact input does not determine the limit. For example, (x²−1)/(x−1) approaches 2 as x approaches 1 even though the original expression is undefined at 1. A finite two-sided limit requires the left and right approaches to agree.

    Read more: 1.2 · Limit →

  • Differential

    For a differentiable function y=f(x), the differential dy is defined as f′(x) dx. It represents the tangent-line estimate of the output change associated with an input change dx. For example, y=x² at x=3 and dx=0.01 gives dy=6·0.01=0.06. The actual change in y can differ from this linear estimate.

    Read more: 4.6 · Differential →

  • Higher-order derivative

    A higher-order derivative is obtained by differentiating a function repeatedly. The nth derivative means that the derivative operation has been applied n times. For example, f(x)=x³ has third derivative 6 and fourth derivative 0. Each differentiation requires the preceding derivative to exist on the region being considered.

    Read more: 3.6 · Higher-order derivative →

Search lessons, terms and problems