How Do You Determine if a Function Is Differentiable?

Along with continuity, you can also talk about whether or not a function is differentiable. A function is differentiable at a point when it is both continuous at the point and doesn’t have a “cusp”. A cusp shows up if the slope of the function suddenly changes. An example of this can be seen in the image below.

Functions with a “cusp” may come up when you have what is called a piecewise-defined function. That means the function has one expression on one interval, and a different expression on another interval. In the figure below, you can see that f(x) = x2 + 2 when x 1 (the blue graph) and that f(x) = 2x + 5 when x > 1 (the green graph). Mathematically, this is written as

f(x) = { x2 + 2 when x ≤ 1, 2x + 5 when x > 1.

Differentiability of a function

Differentiability of a function

Even though the graph in this case is continuous at x = 1, it’s not differentiable at x = 1. A cusp occurs where you can draw several tangents to the graph. At points on the graph where you can draw many tangents, the derivative is not defined, and you can say that the function isn’t differentiable.

To explain differentiability properly, you need to know what right and left limits mean.

Theory

Right and Left Limits

  • A limit of f(a) is a right limit when you approach the point x = a from x-values greater than a. You write

    lim xa+f(x) = f(a)
  • A limit of f(a) is a left limit when you approach the point x = a from x-values smaller than a. You write

    lim xaf(x) = f(a)

Now let’s take a look at the definition of differentiability.

Theory

Differentiability

You say that a function is differentiable at a point x = a if f(x) is continuous at x = a and

lim xaf(x) = lim xa+f(x)

Note! When you are checking the differentiability of a piecewise-defined function, you use the expression for values less than a in lim xaf(x) and the expression for values greater than a in lim xa+f(x).

Example 1

Decide whether

f(x) = { x2 + 2 when x ≤ 1, 2x + 5 when x > 1

from the image above is differentiable

To answer this, you first have to check whether f(x) is continuous. Is lim xaf(x) = f(a) for all a ? For a 1, you have

lim xaf(x) = lim xax2 + 2 = a2 + 2 = f(a),

and for a > 1, you have

lim xaf(x) = lim xa 2x + 5 = 2a + 5 = f(a)

lim xaf(x) = lim xa 2x + 5 = 2a + 5 = f(a)

The limits exist and you can conclude that f(x) is continuous.

Now you need to check whether

lim xaf(x) = lim xa+f(x)

for all x . You begin by finding f(x):

f(x) = { 2x when x ≤ 1 2 when x > 1

You check if f is differentiable at the point x = 1. You begin with the left limit:

lim x1f(x) = lim x12x = 2 1 = 2

Next, the right limit:

lim x1+f(x) = lim x1+ 2 = 2

Because

lim x1f(x) = 2 2 = lim x1+f(x),

you know that f(x) is not differentiable at x = 1.

Example 2

Find out where the function

f(x) = 2x2 3 x2 4

is both continuous and differentiable

As this is a rational function, you know that it is discontinuous where it has vertical asymptotes, which is where its denominator equals 0. That means you have to solve this:

x2 4 = 0 x2 = 4 x = ±4 = ±2

That means the function f(x) is continuous for all values of x except x = 2 and x = 2. You write this mathematically as x {2, 2} (all x in except x = 2 and x = 2).

A function has to be continuous at a given point to be differentiable at that point, so you can conclude that the function is not differentiable at the points x = 2 and x = 2. The question is if there are other points where f(x) is not differentiable. You check that by finding out whether

lim xaf(x) = lim xa+f(x)

for all x. First, you find an expression for the derivative:

f(x) = 4x (x2 4) (2x2 3) 2x (x2 4) 2 = 4x3 16x 4x3 + 6x (x2 4) 2 = 10x (x2 4) 2 f(a) = 10a (a2 4) 2

You know that f(a) is defined for all a except where the denominator of f(a) is not defined. This happens when the denominator is 0. You set the denominator equal to 0 and solve for a:

(a2 4) 2 = 0 a2 4 = 0 a2 = 4 a = ±4 = ±2

That means f(x) is differentiable for all x {2, 2} (all x in except x = 2 and x = 2).

Want to know more?Sign UpIt's free!