At this point in the course, we know how to find the local extrema of a function by looking at its graph. Like here for a function \( g(x) \), we can see that it has a local maximum at \( x = -4 \), a local minimum down here at \( x = -1 \), and finally, a local maximum when \( x = 4 \). But we won't always be given the graph of a function, and we'll still need to identify the local extrema when just given the function itself. But how exactly can we even start in doing that? Well, the first step in being able to find the local extrema of a function is being able to find what's called that function's critical points.
Now this is exactly what I'm going to walk you through here, what critical points are and how exactly to find them. So, let's go ahead and jump right in here. Now coming back over to our graph of \( g(x) \) here, if we look at all of these local extrema, they all have something in common if we think about their tangent lines. For this first local max and local min, if I draw a tangent line, I can see that it is a horizontal tangent line. And for this last local max over here, because it comes up to a point, I know that it has no tangent line at all and this is actually going to be true of all local extrema.
They all either have a horizontal tangent like those first two points or no tangent line at all. So why does this information actually matter? Well, if we know information about a function's tangent, then we also know information about that function's derivative because it's just the slope of the tangent. So if a function has a horizontal tangent line, I know that at that point, my derivative will be equal to 0, that zero slope of that horizontal tangent. And if my function has no tangent line at a point, I know that there, my derivative does not exist.
Now these points where a derivative equals 0 and where a derivative does not exist are what's called critical points. And remember earlier, I mentioned that finding critical points is going to be the first step in being able to find local extrema. So let's actually find the critical points of this function here, \( f(x) = x^3 - 12x + 5 \). And in order to find those critical points, that means we need to find where our derivative equals 0 and where our derivative does not exist.
So in order to do that, let's first just find what our derivative is. So \( f'(x) \) here using the power rule is going to be \( 3x^2 - 12 \). So now that I have that derivative, to find where it's equal to 0, I just need to set that \( 3x^2 - 12 = 0 \) and solve for x. Now adding 12 on both sides here, that will cancel out, leaving me with \( 3x^2 = 12 \). Then dividing both sides by 3 cancels that 3.
I'm left with \( x^2 = 4 \). And then finally, last step, taking the square root on both sides, I end up with \( x = \pm 2 \). So this gives me 2 critical points where \( x = 2 \) and where \( x = -2 \). But remember, this is just half of the story. We also need to find where a derivative does not exist.
And this is specifically where it does not exist for values of \( x \) that actually do exist in the domain of our original function. Now here, since we're working with a basic polynomial function, there is actually nowhere where this derivative does not exist. But it is something to keep in mind as you work with different types of functions like, say, rational functions or those with rational exponents. So here we already have all of our critical points. So we have 2 critical points where \( x = 2 \) and where \( x = -2 \).
So now that we have our critical points, there is something that I want to note here, and that's that not all critical points are local extrema. So what exactly does that mean? Well, it means that just because 2 and -2 are critical points, that doesn't automatically make them a local maximum or local minimum. Now, this can be a bit hard to understand, so let's come back over to our graph here. We know that these local extrema have either a horizontal tangent or no tangent at all.
But this point here at \( x = 2 \) actually also has a horizontal tangent and it's not a local max or min at all. So just because a function is a critical point, meaning that its derivative is equal to 0 or does not exist, that doesn't automatically make it a local maximum or local minimum. Finding critical points is just the first step in finding local extrema and also in finding a lot of other things out about a function. See, critical points are actually going to be used to find out a lot of different things, including local and global extrema, but also a lot of other stuff. Now, I'm going to walk you through absolutely everything that critical points are used for as we continue on in this course.
But for now, let's get some more practice with finding critical points. I'll see you in the next video.