Lesson Explainer: The Differentiability of a Function | Nagwa Lesson Explainer: The Differentiability of a Function | Nagwa

Lesson Explainer: The Differentiability of a Function Mathematics • Second Year of Secondary School

Join Nagwa Classes

Attend live Pure Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to determine whether a function is differentiable and identify the relation between a function’s differentiability and its continuity.

Differentiation is hugely important, and being able to determine whether a given function is differentiable is a skill of great importance. The derivative of a function measures the rate of change of the function value with respect to its input and is often described as the “instantaneous rate of change.”

When we learn about derivatives, we learn two important facts: firstly, that the derivative is the slope of the tangent to the graph of a function at any given point and, secondly, that the derivative is defined by a limit and, therefore, only exists if the given limit exists. Using these two important ideas about derivatives, we can determine whether certain derivatives exist. We begin by recapping the definition of the derivative in terms of a limit.

Definition: The Derivative of a Function

The derivative of a function at a point 𝑥=𝑥 is defined as 𝑓(𝑥)=𝑓(𝑥)𝑓(𝑥)𝑥𝑥.lim

An alternative but equivalent definition of the derivative is 𝑓(𝑥)=𝑓(𝑥+)𝑓(𝑥).lim

We say that a function is differentiable at 𝑥=𝑥 if these limits exist. If only the left or right limit exists, then we say that the function is differentiable at 𝑥=𝑥 from the left or right.

We note that for a function 𝑦=𝑓(𝑥), the derivative can also be written as dd𝑦𝑥, which reads as “the derivative of 𝑦 with respect to 𝑥” or “d𝑦 by d𝑥.

A differentiable function is a function whose derivative exists at each point in its domain. In other words, if 𝑥=𝑥 is a point in the domain, then 𝑓 is differentiable at 𝑥=𝑥 if and only if the derivative 𝑓(𝑥) exists and the graph of 𝑓 has a nonvertical tangent line at the point (𝑥,𝑓(𝑥)).

We can also have a notion of differentiability when a function is defined on an interval. If a function is differentiable on some open set (𝑎,𝑏), this means that the function is differentiable for all points 𝑥(𝑎,𝑏). For a closed interval [𝑎,𝑏], the function cannot be differentiable at 𝑥=𝑎 as the limit would only exist when the function is defined on an open interval about 𝑎; nevertheless, a function is differentiable on [𝑎,𝑏] when it is differentiable on (𝑎,𝑏) and differentiable from the right at 𝑥=𝑎 and from the left at 𝑥=𝑏.

In the definition above, we mentioned that the derivative is defined as a limit, if the limit exists, which indicates that it is possible that the limit does not exist. In such cases, we say that the function is not differentiable at this point. In this explainer, we will explore the relationship between the continuity of a function and the differentiability and consider different ways in which a function can fail to be differentiable.

Since the derivative at a point represents the slope of the tangent to the curve at that point, this tells us that if we are unable to define a tangent to a curve, the derivative will not exist. The first case we will consider is the case where the function is discontinuous. If the function has a jump discontinuity, we will not be able to define a tangent to the curve at that point. We would therefore expect that the derivative will not be defined at such a point.

In the first example, let’s consider the differentiability of a piecewise function with a jump discontinuity.

Example 1: Differentiability of a Function with a Jump Discontinuity

Suppose 𝑓(𝑥)=6𝑥4,𝑥1,3𝑥,𝑥>1.

What can be said of the differentiability of 𝑓 at 𝑥=1?

Answer

In this example, we want to examine the differentiability of a piecewise function at a particular point.

The given piecewise function is composed of two smooth (differentiable) functions. Generally, in situations like this, the derivative of the function is composed of the derivative of the functions defining each part. However, we also need to consider whether the functions agree at the points where the functions are joined together. If we apply this approach, we can differentiate each part of this function using the power rule as follows: 𝑓(𝑥)=6𝑥<1,6𝑥𝑥>1.ifif

We can then consider the points where these two functions join and find that the derivative on either side of 𝑥=1 is 6. At this point, we might naively conclude that the function is differentiable. However, this is not the correct answer. To see this, we will use the definition of the derivative, lim𝑓(𝑥+)𝑓(𝑥), and demonstrate that this limit does not exist at 𝑥=1. Since the function is defined differently on each side of the point 𝑥=1, we will consider the left and right limits. Beginning with the left limit, we have lim𝑓(1+)𝑓(1).

Using the definition of the function 𝑓, we have 𝑓(1)=2 and can rewrite the limit as limlimlim𝑓(1+)𝑓(1)=6(1+)42=6.

Since 0, we can cancel this common factor from the numerator and denominator to get limlim𝑓(1+)𝑓(1)=6=6.

We can now consider the right limit, lim𝑓(1+)𝑓(1).

Using the definition of the function we have been given, we have limlimlimlim𝑓(1+)𝑓(1)=3(1+)2=312+2=16+3.

We can split this fraction and rewrite this as limlim𝑓(1+)𝑓(1)=16+3.

In this case, since lim1=, the limit does not exist. The reason the limit does not exist is the fact that the function is actually discontinuous at this point as we can see from its graph.

Since the limit does not exist, the derivative is not defined. Hence, we can say that the function 𝑓 is not differentiable at 𝑥=1.

The last example showed that the function was not differentiable at the point of discontinuity. This is actually a general result, that at the points where a function is discontinuous it is not differentiable. Hence, in the last example, the most efficient solution is to first confirm that the function is not continuous and therefore not differentiable.

Now, let’s consider an example where we examine the differentiability of a function from its graph that has a corner at a point.

Example 2: Assessing the Differentiability of a Function from Its Graph

The figure shows the graph of 𝑓. What can be said of the differentiability of 𝑓 at 𝑥=4?

Answer

In this example, we want to assess the differentiability of a function at a particular point from its graph.

The graph of the function 𝑓 has a corner at the point where 𝑥=4. This means that the slope of the tangent to the left of 𝑥=4 is not equal to the slope of the tangent to the right of 𝑥=4. Hence, the derivative will have a jump discontinuity and will not be defined at this point since its right and left limits will not agree. Hence, The function is not differentiable at 𝑥=4 because the function’s rate of change is different on both sides of that point.

There are many examples of functions whose graphs have corners. Two common types of functions that can have corners are functions defined piecewise or functions defined in terms of the absolute value. In the next example, we will consider another case where the derivative is not defined.

Example 3: The Existence of a Derivative at a Cusp

The figure shows the graph of 𝑓. At which points is the derivative of the function not defined?

Answer

In this example, we will examine the existence of a derivative of a function that contains cusps.

The graph shows a function with two cusps, one at 𝑥=1 and one at 𝑥=1. At these cusps, the tangent to the curve is vertical. When the tangent is vertical, its slope is infinite, which will also imply that the limit lim𝑓(𝑥+)𝑓(𝑥) does not exist. Hence, the derivative of this function is not defined at the points 𝑥=1 and 𝑥=1.

The last example showed us that the derivative is not defined at a cusp of a real-valued function. More generally, if the tangent to a curve is vertical, the derivative is not defined. The next example will highlight one such function.

Example 4: Domain of the Derivative

Consider the function 𝑓(𝑥)=𝑥.

  1. What is the domain of 𝑓?
  2. Find an expression for the derivative of 𝑓.
  3. What is the domain of the derivative 𝑓?

Answer

In this example, we will consider the domain of the derivative, or where the derivative is well defined, for a cube root function.

Part 1

The real cube root of any real number is well defined. Therefore, the domain of 𝑓 is all the real numbers .

Part 2

We can find an expression for the derivative of 𝑓 by using the power rule which states that dd𝑥(𝑥)=𝑛𝑥.

Hence, 𝑓(𝑥)=𝑥𝑥=13𝑥=13𝑥.dd

Part 3

To find the domain of the derivative, we need to consider the points 𝑥 for which 𝑓(𝑥)=13𝑥 is not defined. The only point where this is not defined is when the denominator is zero. This occurs when 𝑥=0. Therefore, the domain of 𝑓 is all real 𝑥0 which we can write as {0}.

The previous example shows that the derivative of a continuous function might fail to exist at certain points in the domain. In particular, if the tangent line of a function is vertical, the derivative will not exist at this point.

Now, let’s consider an example where a function is not differentiable at a point as a result of infinitesimal oscillations.

Example 5: Oscillatory Functions and Derivatives

Is the function 𝑓(𝑥)=𝑥1𝑥,𝑥0,0,𝑥=0sin differentiable at 𝑥=0?

Answer

In this example, we want to assess the derivative of a piecewise oscillatory function at a particular point.

To assess the differentiability of this function at 𝑥=0, we will consider the existence of the following limit: lim𝑓(0+)𝑓(0).

Using the definition of the function 𝑓, we have limlimsinlimsin𝑓(0+)𝑓(0)=0=.

Since 0, we can cancel it from the numerator and denominator to get limlimsin𝑓(0+)𝑓(0)=1.

This is an example of a limit that does not exist due to the oscillatory behavior of the function. Therefore, the limit does not exist. Hence, 𝑓 is not differentiable at 𝑥=0. A graph of 𝑓 demonstrates that the function displays a high level of oscillatory behavior near the origin, which is the reason why the derivative does not exist.

We have looked at many examples of how functions can fail to be differentiable. In many cases, these were continuous functions. Hence, we have seen that we can have continuous functions that are not differentiable. In fact, it is possible to have functions that are continuous everywhere but nowhere differentiable. The first known example of such a function was the Weierstrass function. Although functions such as the Weierstrass function seem unusual, it can be shown mathematically that the vast majority of continuous functions are actually nowhere differentiable! For example, a function with a bend, cusp, or vertical tangent may be continuous but fail to be differentiable at the location of the anomaly.

Even though it is possible (and, rather intuitively, very common) to have continuous functions which are not differentiable, the converse is not true; all differentiable functions are continuous as we will demonstrate below.

Let 𝑓 be a function that is differentiable at a point 𝑥=𝑥. Then, by definition, 𝑓(𝑥)=𝑓(𝑥)𝑓(𝑥)𝑥𝑥.lim

We will show that 𝑓 is continuous by demonstrating that lim𝑓(𝑥)=𝑓(𝑥).

We begin by considering the limit lim(𝑓(𝑥)𝑓(𝑥)).

By multiplying and dividing by 𝑥𝑥, we have limlim(𝑓(𝑥)𝑓(𝑥))=(𝑥𝑥)𝑓(𝑥)𝑓(𝑥)𝑥𝑥.

Using the rules of finite limits, we can rewrite this as limlimlim(𝑓(𝑥)𝑓(𝑥))=(𝑥𝑥)𝑓(𝑥)𝑓(𝑥)𝑥𝑥.

Using the definition of the derivative above, we have limlim(𝑓(𝑥)𝑓(𝑥))=𝑓(𝑥)(𝑥𝑥).

Furthermore, we know that lim(𝑥𝑥)=0. Therefore, lim(𝑓(𝑥)𝑓(𝑥))=0.

Once again, we can use the rules of finite limits to get limlim𝑓(𝑥)𝑓(𝑥)=0.

Therefore, limlim𝑓(𝑥)=𝑓(𝑥).

Since 𝑓(𝑥) is independent of 𝑥, the limit on the right-hand side is 𝑓(𝑥) and we have lim𝑓(𝑥)=𝑓(𝑥).

Hence, we have shown that a function is continuous at all points where it is differentiable; differentiability implies continuity.

While we have seen that the converse does not hold (i.e., a continuous function does not need to be differentiable), we can still use this result to deduce that if a function is discontinuous at a point, then it is not differentiable at that point.

In our final few examples, we will apply what we have learned about the existence of derivatives and the connection between differentiability and continuity.

In the next example, we will use the fact of differentiability to deduce a particular limit.

Example 6: Functions and Derivatives

Consider a function with 𝑓(8)=3 and 𝑓(8)=7. What is lim𝑓(𝑥)?

Answer

In this example, we will determine the value of the given limit of a function by using the connection between differentiability and continuity.

We have been told that 𝑓(8)=7; therefore, we know that 𝑓 is differentiable at 𝑥=8. Since differentiability implies continuity, we know that lim𝑓(𝑥)=𝑓(𝑥).

Hence, lim𝑓(𝑥)=3.

In the final two examples, we will consider functions defined piecewise. When dealing with such functions, it is important to check for continuity, and then we can differentiate each part separately and consider the points where parts meet.

In the next example, we will assess the differentiability of a piecewise function at a particular point.

Example 7: Assessing the Differentiability of a Function

Suppose 𝑓(𝑥)=1+3𝑥,𝑥1,𝑥+3,𝑥>1.

What can be said of the differentiability of 𝑓 at 𝑥=1?

Answer

In this example, we will assess the differentiability of the given piecewise function at a particular point.

We will begin by ensuring that the function is continuous at 𝑥=1. From the definition, we can see that 𝑓(1)=2; furthermore, we can see that limlim𝑓(𝑥)=2,𝑓(𝑥)=2.

Therefore, the function is continuous at 𝑥=1. We can now apply the power rule to differentiate each part of the function as follows: 𝑓(𝑥)=3𝑥𝑥<1,3𝑥𝑥>1.ifif

We now need to consider the left and right limits to ensure they agree. From the definition of 𝑓, we can see limlim𝑓(𝑥)=3,𝑓(𝑥)=3.

Therefore, we can conclude that the limit exists and 𝑓(1)=3. Hence, the function 𝑓(𝑥) is differentiable at 𝑥=1.

In the last example, we will determine the missing values of the parameters in a continuous piecewise function and assess its differentiability at a given point.

Example 8: Assessing the Differentiability of a Function

Find the values of 𝑎 and 𝑏 and discuss the differentiability of the function 𝑓 at 𝑥=1 given that 𝑓 is continuous and 𝑓(𝑥)=9𝑥+𝑎𝑥+4𝑥<1,11𝑥=1,𝑎+𝑏𝑥𝑥>1.ififif

Answer

In this example, we will assess the differentiability of the given piecewise function at a particular point.

Since 𝑓 is continuous, it is continuous at 𝑥=1; therefore, limlim𝑓(𝑥)=𝑓(𝑥)=𝑓(1)=11.

Therefore, 11=9𝑥+𝑎𝑥+4=13𝑎.lim

Hence, 𝑎=2. Furthermore, 11=𝑎+𝑏𝑥=2𝑏.lim

Therefore, 𝑏=9. Hence, 𝑓(𝑥)=9𝑥+2𝑥+4𝑥<1,11𝑥=1,29𝑥𝑥>1.ififif

We can now consider the derivative on each side of 𝑥=1 using the power rule as follows: 𝑓(𝑥)=18𝑥+2𝑥<1,9𝑥>1.ifif

We now need to consider the left and right limits at 𝑥=1. From the definition of 𝑓, we can see limlim𝑓(𝑥)=16,𝑓(𝑥)=9.

Therefore, the left and right limits do not agree and the function is not differentiable at 𝑥=1.

We will finish this explainer by recapping some of the important concepts.

Key Points

  • The derivative of a function at 𝑥=𝑥 is defined as lim𝑓(𝑥+)𝑓(𝑥). An alternative but equivalent definition of the derivative is lim𝑓(𝑥)𝑓(𝑥)𝑥𝑥.
  • A function is not differentiable when this limit does not exist. This can happen in a number of different ways including the following.
  • If a function is differentiable, then it is continuous. The contrapositive of this statement (which is logically equivalent and consequently equally true) is that a function is not differentiable at the points where it is discontinuous.
  • There are many continuous functions that are not differentiable.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy