Graphing Functions Using Derivatives


Graphing Functions Using Derivatives

Maria
So Michael, have you ever tried to graph a function using just calculus? It's actually a really powerful way to understand what's going on.

Michael
I've always relied on graphing calculators, but I know there's more to it. How would we start? I imagine we need to find critical points first.

Maria
Exactly! For a function like f(x) = 3x^4 - 4x^3 + 2, the first step is to find where the derivative is zero. That gives us the critical points where the slope might be changing.

Michael
So we take the derivative. That should be 12x^3 - 12x^2, right?

Maria
Perfect! And we set it equal to zero. Factoring gives 12x^2(x - 1) = 0, so x = 0 and x = 1 are our critical points.

Michael
Okay, so they could be maxima, minima, or inflection points. How do we tell which is which?

Maria
That's where the second derivative comes in. It tells us about concavity. Let's compute f''(x) = 36x^2 - 24x, which we can rewrite as 12x(3x - 2).

Michael
So at x = 1, f''(1) = 12, which is positive. That means concave up, so x = 1 is a local minimum. What about x = 0?

Maria
Plugging in 0, we get f''(0) = 0. So we need to test the sign on both sides to see if it's an inflection point.

Michael
I remember that. For x just less than 0, say x = -0.1, f'' is positive because 12x is negative and (3x-2) is negative, product positive. For x just greater than 0, f'' is negative. So concavity changes, meaning x = 0 is an inflection point.

Maria
Right! And since f'(0)=0, it's a flat inflection point. But there's another inflection point from f''=0: solving 12x(3x-2)=0 gives x = 2/3.

Michael
So we should test around x = 2/3. For x > 2/3, f'' is positive (concave up); for 0 < x < 2/3, f'' is negative (concave down). So another inflection point, but not a critical point.

Maria
Exactly. Now we have enough info to sketch. We know f(0)=2 and f(1)=1. So we have points (0,2) and (1,1), and the inflection point at (2/3, f(2/3)).

Michael
And we know the concavity intervals: for x < 0, concave up; between 0 and 2/3, concave down; and for x > 2/3, concave up. Plus the slope is zero at x=0 and x=1.

Maria
Putting it all together: from the left, the graph is concave up and increasing until x=0, where it's flat. Then it becomes concave down until x=2/3, with the slope decreasing. At x=2/3, it switches to concave up, and then it reaches the minimum at x=1.

Michael
That's amazing. So without a calculator, we've captured all the important features: the flat inflection, the change in concavity, and the minimum. Calculus really gives us a complete picture.

Maria
Exactly. It's all about understanding the behavior through derivatives. Once you master this, graphing becomes much more intuitive.

Ask anything
We've read this whole study set, so questions about it get the best answers.