Degrees of Smoothness

All images in this blog post taken from Google.


In my previous blog post, I brought up the topic of smoothness. We saw that a function is not smooth if its derivative cannot be expressed by another continuous function. For example, the derivative of the absolute value function, |x|, we discussed in the last post was not continuous; and therefore, |x| isn’t smooth.

What if we can express the derivative of a function as a continuous function? Does this make the function smooth? To answer this question, let’s examine the function y = x|x|.

The derivative of this function can be expressed as a continuous function. In fact, it’s the absolute value function, 2|x|, which is continuous. However, when we try to find the second derivative (derivative of the derivative) of the function, we fail to derive a continuous function. (In fact, we’ve shown this result in the last blog post).

So, we’ve only found the first derivative. That means that our function, x|x|, has a smoothness of order 1. Mathematically, we say that it’s a class C1 function.

Let’s examine a similar function, x2. Let’s try to calculate its derivatives:

  1. f'(x) = 2x
  2. f”(x) = 2
  3. f”'(x) = 0
  4. f””(x) = 0

We can differentiate this function indefinitely. Therefore, we say that the function belongs to the class C.

Now, here’s the question. Which of the functions we examined are smooth?

Well, the term “smooth” doesn’t have a rigorous definition. People use it in two ways:

  1. Meaning that the function is smooth enough for what they need to do with it,
  2. Meaning that the function is indefinitely smooth, belonging to the class C.

Therefore, it’s more correct to specify the degree of smoothness of a function, rather than simply saying that the function is smooth or not.

I hope that this post was informative as well as engaging. As always, if you have any ideas about future posts, or just to express your ideas or doubts, feel free to comment.

Till then!

Exploring Smoothness and Continuity

All images in this blog post taken from Google.


No doubt you have heard of the terms smooth and continuous when referring to functions. In this blog post, I’ll try to explain what these terms really mean; as usual, in the most informal language possible.

continuous function is a function that you can trace with a pencil without lifting it off the paper. This is a continuous function:

alg2_vertlinetest

Now, if at least one of the following are true, the function is not continuous:

  1. At some point, you have to lift your pencil and move it to some other spot on the function to continue the movement,
  2. At some point on the graph, the function is not defined (it has a hole).

Smoothness is a similar, but not identical, concept. It is closely related to the concept of derivatives that I mentioned in my post Derivatives Demystified, so I’ll be leveraging that post to help us understand smoothness.

Basically, for a function to classify as smooth, it should have a derivative at all points of the graph. I won’t go into the calculus definition (I might scare you out of calculus altogether); I’ll instead use the analogy I gave you in the post above.

Here’s an example of a function that is not smooth:

3b9b8f4b4dac19e1197e9dd94553d0822f9fe69a

That’s the familiar absolute value function:

y = |x|

Why is this function not smooth? Well, let’s consider the point x = 0.

Graphically, this function has a steep turn at this point.

Analytically, this means that the function has no derivative at this point and, consequently, is not smooth.

Why is that?

Let’s say that we’re moving from the far left of the function to the far right and examine the derivative of the function at each point as we pass through it. I hope that by now, you remember that the derivative is just the slope of the function at the point of interest. Nothing advanced. Just easy high school algebra.

We find that for negative values of x, the derivative of the function is -1.

However, for positive values of x, the derivative is +1.

We cannot derive a formula that can calculate the derivative at any point. If we use -1 as the formula, we will get the wrong answer for all positive values of x. If we use +1 as the formula, we will be mistaken on all negative values. Any attempts to find any relationships between y and x don’t work, either.

So, the function isn’t smooth.

Now that we can recognize a function that is not smooth, can we just call it a day and say that all other functions are smooth?

Well, not really…

You see, smoothness is not a black-and-white concept. You cannot say that a function is either smooth or not. Mathematicians refer to so-called degrees of smoothness. That will be the topic of our next blog post.

Until then!