How to Find the Derivative of a Polynomial
If you're just getting started with calculus, derivatives are probably the first big concept you'll encounter. They can seem intimidating at first — the notation is unfamiliar, the word "differentiation" sounds technical, and it's not always obvious why you'd need one. This lesson is going to fix all of that.
We'll start from scratch: what a derivative actually is, why anyone would want it, and then step by step through how to find the derivative of any polynomial. By the end, you'll be able to differentiate polynomials quickly and confidently.
What Is a Derivative?
Let's start with something familiar: slope.
For a straight line, slope is constant everywhere. The line \(y = 2x + 1\) has a slope of 2 at every single point along it. Simple.
But what about a curve? Consider \(y = x^2\). This is a parabola — it starts steep on the left, flattens out at the bottom, then gets steep again on the right. The slope isn't the same everywhere. It's flat at the very bottom (\(x = 0\)), and it gets steeper and steeper as you move away from there in either direction.
So here's the question: what is the slope of \(y = x^2\) at the point \(x = 3\)?
That question doesn't have an obvious answer with the tools you had before calculus. But the derivative gives us exactly that answer. The derivative of a function is itself a function — one that tells you the slope of the original curve at any point you choose.
For \(y = x^2\), the derivative turns out to be \(y' = 2x\). Plug in \(x = 3\) and you get \(2(3) = 6\). The slope of the parabola at \(x = 3\) is 6. Plug in \(x = 0\) and you get 0 — the parabola is flat there. Plug in \(x = -2\) and you get \(-4\) — the curve has a negative slope there, meaning it's heading downward from left to right.
That's the derivative: a formula for the slope of a curve at any point.
Another way to say the same thing: the derivative tells you the rate of change of a function. How fast is the output changing as the input changes? The derivative answers that, at every point.
Why Would You Need One?
Once you understand what a derivative represents, you start seeing why it's useful everywhere.
Physics: If you know the position of an object as a function of time — say, \(s(t) = 5t^2\) for a falling object — then the derivative \(s'(t) = 10t\) gives you the velocity at any moment \(t\). The derivative of velocity gives you acceleration. This is the mathematical foundation of classical mechanics.
Finding maximums and minimums: Imagine you're running a business and your profit is modeled by \(P(x) = -x^2 + 100x\), where \(x\) is the number of units you produce. You want to know how many units to produce to maximize profit. Where is profit highest? At the peak of that parabola — which is exactly where the slope is zero. Set the derivative equal to zero and solve. This is one of the most powerful applications of calculus.
The "highest point" of anything: A ball thrown upward follows a curved path. At the very peak, it momentarily has zero vertical velocity — it stops going up and hasn't yet started coming down. At that exact moment, the slope of the height-vs-time graph is zero. The derivative equals zero. Calculus lets you find that moment precisely.
Engineering, economics, biology — derivatives are everywhere a rate of change matters. And rates of change matter almost everywhere.
Derivative Notation
Before we learn the mechanics, let's get the notation straight. You'll see derivatives written in several different ways, and they all mean the same thing.
If your function is \(f(x)\), its derivative can be written as:
$$f'(x) \quad \text{or} \quad \frac{dy}{dx} \quad \text{or} \quad \frac{d}{dx}[f(x)]$$
The \(f'(x)\) notation is read "f prime of x." The \(\frac{dy}{dx}\) notation is read "dy dx" and comes from thinking of the derivative as the ratio of a tiny change in \(y\) to a tiny change in \(x\). The \(\frac{d}{dx}\) notation means "take the derivative with respect to x of whatever follows."
Don't let the different notations confuse you — they're all saying the same thing. In this lesson we'll mostly use \(f'(x)\).
The Power Rule
Now for the mechanics. The most important rule for differentiating polynomials is the power rule:
$$\frac{d}{dx}\left[x^n\right] = n \cdot x^{n-1}$$
In plain English: bring the exponent down in front as a multiplier, then reduce the exponent by one.
Let's see it in action with the simplest possible cases.
The derivative of \(x^2\):
The exponent is 2. Bring it down: \(2 \cdot x\). Reduce the exponent by 1: \(2 \cdot x^1 = 2x\).
$$\frac{d}{dx}\left[x^2\right] = 2x$$
The derivative of \(x^3\):
The exponent is 3. Bring it down: \(3 \cdot x\). Reduce the exponent: \(3 \cdot x^2\).
$$\frac{d}{dx}\left[x^3\right] = 3x^2$$
The derivative of \(x^5\):
$$\frac{d}{dx}\left[x^5\right] = 5x^4$$
The pattern is clear: whatever the exponent was, the new exponent is one less, and the old exponent becomes a coefficient.
What about a coefficient in front? If there's already a number multiplying \(x^n\), you just multiply it by the exponent you bring down:
$$\frac{d}{dx}\left[4x^3\right] = 4 \cdot 3 \cdot x^2 = 12x^2$$
$$\frac{d}{dx}\left[7x^5\right] = 7 \cdot 5 \cdot x^4 = 35x^4$$
$$\frac{d}{dx}\left[-3x^4\right] = -3 \cdot 4 \cdot x^3 = -12x^3$$
Negative coefficients work exactly the same way — just keep the negative sign.
Three More Rules You Need
To handle full polynomials, you need three more rules alongside the power rule.
1. The Constant Rule
The derivative of any constant (a plain number with no variable) is zero.
$$\frac{d}{dx}[c] = 0$$
Why? A constant doesn't change — ever. Its rate of change is zero, by definition. So the graph of \(y = 7\) is a flat horizontal line with slope zero everywhere.
$$\frac{d}{dx}[7] = 0 \qquad \frac{d}{dx}[-4] = 0 \qquad \frac{d}{dx}[100] = 0$$
This also falls out of the power rule if you think of a constant as \(c \cdot x^0\) — bring down the 0, and the whole term becomes zero.
2. The Constant Multiple Rule
A constant multiplied by a function can be factored out — you only differentiate the function itself.
$$\frac{d}{dx}\left[c \cdot f(x)\right] = c \cdot f'(x)$$
In practice, this means: if there's a number sitting in front of your term, leave it there and just differentiate the power of x. We already saw this when we differentiated \(4x^3\) — the 4 stays, we apply the power rule to \(x^3\).
3. The Sum Rule
You can differentiate a polynomial term by term. The derivative of a sum is the sum of the derivatives.
$$\frac{d}{dx}\left[f(x) + g(x)\right] = f'(x) + g'(x)$$
This is what makes polynomials manageable. Instead of doing anything clever with the whole expression, just differentiate each piece separately and add the results.
The same applies to subtraction: the derivative of \(f(x) - g(x)\) is \(f'(x) - g'(x)\).
Worked Examples
Let's put all of this together and work through polynomials of increasing complexity.
Example 1: A single term
Find \(f'(x)\) for \(f(x) = x^4\).
Apply the power rule: bring down the 4, reduce exponent to 3.
$$f'(x) = 4x^3$$
Example 2: Single term with a coefficient
Find \(f'(x)\) for \(f(x) = 5x^3\).
Bring down the 3, multiply by the coefficient 5, reduce the exponent:
$$f'(x) = 5 \cdot 3 \cdot x^2 = 15x^2$$
Example 3: Two terms
Find \(f'(x)\) for \(f(x) = 4x^2 + 6x\).
Differentiate term by term:
- \(4x^2 \rightarrow 4 \cdot 2 \cdot x^1 = 8x\)
- \(6x \rightarrow 6x^0 = 6\) (since the exponent on x is 1, bring it down and reduce to 0, leaving just the coefficient)
$$f'(x) = 8x + 6$$
Example 4: Adding a constant
Find \(f'(x)\) for \(f(x) = x^2 + 8x + 13\).
- \(x^2 \rightarrow 2x\)
- \(8x \rightarrow 8\)
- \(13 \rightarrow 0\) (constant rule)
$$f'(x) = 2x + 8$$
Notice that the 13 vanished completely. Constants always drop out — they don't affect how the function changes.
Example 5: Three terms with coefficients
Find \(f'(x)\) for \(f(x) = 3x^2 + x + 9\).
- \(3x^2 \rightarrow 6x\)
- \(x \rightarrow 1\) (the coefficient of x is 1, bring down the exponent 1, reduce to 0: result is \(1 \cdot 1 = 1\))
- \(9 \rightarrow 0\)
$$f'(x) = 6x + 1$$
Example 6: Higher powers
Find \(f'(x)\) for \(f(x) = 4x^4 + 3x^3 + x + 19\).
- \(4x^4 \rightarrow 16x^3\)
- \(3x^3 \rightarrow 9x^2\)
- \(x \rightarrow 1\)
- \(19 \rightarrow 0\)
$$f'(x) = 16x^3 + 9x^2 + 1$$
Example 7: Subtraction and negative coefficients
Find \(f'(x)\) for \(f(x) = -2x^3 + 5x^2 - 7\).
- \(-2x^3 \rightarrow -6x^2\)
- \(5x^2 \rightarrow 10x\)
- \(-7 \rightarrow 0\)
$$f'(x) = -6x^2 + 10x$$
Example 8: Fractional coefficients
Find \(f'(x)\) for \(f(x) = \frac{1}{2}x^4 - 3x\).
- \(\frac{1}{2}x^4 \rightarrow \frac{1}{2} \cdot 4 \cdot x^3 = 2x^3\)
- \(-3x \rightarrow -3\)
$$f'(x) = 2x^3 - 3$$
Fractional coefficients work exactly the same way — just multiply as usual.
Example 9: Evaluating the derivative at a point
Find the slope of \(f(x) = x^3 - 4x + 2\) at the point \(x = 2\).
First, find the derivative:
- \(x^3 \rightarrow 3x^2\)
- \(-4x \rightarrow -4\)
- \(2 \rightarrow 0\)
$$f'(x) = 3x^2 - 4$$
Then plug in \(x = 2\):
$$f'(2) = 3(2)^2 - 4 = 3(4) - 4 = 12 - 4 = 8$$
The slope of the curve at \(x = 2\) is 8.
What the Derivative Tells You
It's worth pausing to make sure the derivative's meaning is sinking in, because this connects everything.
When you find \(f'(x)\), you have a new function. That function gives you the slope of the original curve at any x-value you choose. A few key observations:
Where \(f'(x) > 0\): the original function is increasing (heading upward from left to right).
Where \(f'(x) < 0\): the original function is decreasing (heading downward).
Where \(f'(x) = 0\): the original function is flat at that point — this is called a critical point, and it's where maximums, minimums, and flat "plateaus" occur. This is huge in applications — if you want to find when profit is highest, when a ball reaches its peak, or when a population grows fastest, you set the derivative to zero and solve.
For example, take \(f(x) = -x^2 + 6x\). The derivative is \(f'(x) = -2x + 6\). Set it to zero: \(-2x + 6 = 0\), so \(x = 3\). The parabola reaches its maximum at \(x = 3\). Plug back in: \(f(3) = -9 + 18 = 9\). The maximum value is 9.
Practice Problems
Find the derivative of \(f(x) = x^6\).
Show answer\(f'(x) = 6x^5\)
Find the derivative of \(f(x) = 9x^2\).
Show answer\(f'(x) = 18x\)
Find the derivative of \(f(x) = 5x^3 - 2x^2 + 7x - 4\).
Show answerTerm by term: \(5x^3 \to 15x^2\), \(-2x^2 \to -4x\), \(7x \to 7\), \(-4 \to 0\). So \(f'(x) = 15x^2 - 4x + 7\).
Find \(f'(x)\) for \(f(x) = \frac{1}{3}x^3 + 6x - 11\).
Show answer\(\frac{1}{3}x^3 \to \frac{1}{3} \cdot 3 \cdot x^2 = x^2\), \(6x \to 6\), \(-11 \to 0\). So \(f'(x) = x^2 + 6\).
Find the slope of \(f(x) = 2x^2 - 3x + 5\) at \(x = 4\).
Show answer\(f'(x) = 4x - 3\). At \(x = 4\): \(f'(4) = 4(4) - 3 = 16 - 3 = 13\). The slope is 13.
Find where \(f(x) = x^2 - 8x + 3\) has a flat slope (i.e., where \(f'(x) = 0\)).
Show answer\(f'(x) = 2x - 8\). Set equal to zero: \(2x - 8 = 0\), so \(x = 4\). The function has a flat slope at \(x = 4\) — this is the vertex (minimum) of the parabola.
Find the derivative of \(f(x) = -4x^4 + 3x^3 - x^2 + 8x - 2\).
Show answerTerm by term: \(-4x^4 \to -16x^3\), \(3x^3 \to 9x^2\), \(-x^2 \to -2x\), \(8x \to 8\), \(-2 \to 0\). So \(f'(x) = -16x^3 + 9x^2 - 2x + 8\).
Use our Derivative Calculator to check your work on any of these problems.