Blog · calculus
How to Do Derivatives: Rules, Examples and Checks
· AI Math Tutor Team

Learning how to do derivatives comes down to matching the shape of a function to the right rule: a single power of x, two functions multiplied together, one function divided by another, or a function nested inside another one. Once you can recognize which situation you are looking at, differentiating almost any function is a matter of applying one rule correctly and simplifying. This guide covers how to do derivatives using the six core rules, gives you a table to check your rule against, and works through four full examples, one for each of the trickier rules.
Key takeaways
- A derivative measures the instantaneous rate of change of a function, which is the slope of the tangent line at a point.
- The power rule, , handles a single variable raised to a power.
- The product rule and quotient rule handle two functions that are multiplied or divided.
- The chain rule handles a function nested inside another function, multiplying by the derivative of the inside.
- Checking a derivative by estimating how much the original function changes over a small step is a fast way to catch a mistake.
What a derivative measures
A derivative tells you how fast a function's output is changing at a specific input value, not on average, but at that exact instant. If a function describes distance traveled over time, its derivative describes speed at each moment. Graphically, the derivative at a point is the slope of the line that just touches the curve at that point without crossing through it, called the tangent line.
Because a derivative is itself a rate, it is also a function: it can be evaluated at different x-values to see how the rate of change itself changes across the graph. A function's derivative being positive means the function is increasing at that point, negative means it is decreasing, and 0 means the function is momentarily flat.
The notation for a derivative varies depending on the textbook or course, but the common forms all mean the same thing. , , and all describe the derivative of a function with respect to x. Reading as "the rate of change of y as x changes" is often the most useful way to keep its meaning in mind while you work through a problem.
The derivative rules at a glance
| Rule | What it says | Example |
|---|---|---|
| Power rule | Bring the exponent down as a coefficient, then subtract 1 from the exponent | |
| Constant rule | The derivative of a constant by itself is always 0 | |
| Sum and difference rule | Differentiate each term separately, then add or subtract the results | |
| Product rule | First times derivative of second, plus second times derivative of first | |
| Quotient rule | Bottom times derivative of top, minus top times derivative of bottom, over bottom squared | |
| Chain rule | Derivative of the outside function, times the derivative of the inside function |
The power, constant, and sum rules
The power rule is the rule you will use most often: to differentiate , bring the exponent n down in front as a coefficient, then subtract 1 from the exponent. The derivative of is , and the derivative of itself, which is , is .
The constant rule says the derivative of any plain number, with no variable attached, is always 0, because a constant never changes as x changes. A constant multiplied by a variable term, like , keeps the constant in place and applies the power rule to the variable part, giving . This is sometimes split out as its own constant multiple rule, but it is really just the power rule with a constant carried along for the ride.
The sum and difference rule says you can differentiate a sum or difference of terms one term at a time. The derivative of is the derivative of , plus the derivative of , minus the derivative of the constant 7, giving . This rule is what lets you differentiate a whole polynomial term by term instead of all at once, and it is also why the power rule alone is enough to differentiate any polynomial, no matter how many terms it has.
Together, these three rules cover every polynomial you will meet, from a single term like to a long expression with many terms added and subtracted. The remaining three rules, product, quotient, and chain, exist for the situations a polynomial alone cannot describe: functions multiplied together, functions divided by each other, and functions nested inside one another.
The product and quotient rules
When two functions are multiplied together, such as , the derivative of the product is not simply the product of the two derivatives. Instead, the product rule says: differentiate the first function and multiply by the second, then add the first function multiplied by the derivative of the second. Written with and standing for the two functions, .
When one function is divided by another, such as , the quotient rule applies: . The order of subtraction in the numerator matters, since and differ only by a sign, and getting that order backward is one of the most common quotient rule mistakes.
Not every fraction needs the quotient rule. If the denominator is just a plain number, like , rewrite it as and use the constant multiple rule and power rule instead; it is faster and there is nothing to get backward. The quotient rule earns its place only when the variable itself shows up in the denominator.
The chain rule
The chain rule handles a function nested inside another function, like or . Differentiate the outside function first, treating the inside as a single unit, then multiply the result by the derivative of the inside function.
For , the outside function is "something to the 5th power" and the inside is . Differentiating the outside gives , and multiplying by the derivative of the inside, which is 3, gives . The chain rule shows up constantly once functions start getting nested, which is most functions beyond the simplest polynomials.
A useful way to spot when the chain rule is needed is to ask whether you could evaluate the function in one step or two. Evaluating at a number takes one step: square it. Evaluating takes two steps: compute first, then raise that result to the 5th power. Whenever evaluating a function takes more than one step like that, the chain rule is what differentiates it correctly, and the product and quotient rules can combine with the chain rule when a nested function is also multiplied or divided by something else.
How to check a derivative you just found
Because a derivative describes a rate of change, you can check one without redoing the algebra by testing how much the original function actually changes over a small step. Pick a convenient x-value, calculate the function at that value and at a value slightly larger, such as 0.01 more, and find the difference between the two outputs. That difference should be close to your derivative, evaluated at the starting x-value, multiplied by the size of the step.
This estimate will not match exactly, since a derivative describes an instantaneous rate and a small step is still a small distance, but a close match is strong evidence the derivative is correct, and a wildly different result is a clear sign to recheck your work. Every worked example below uses exactly this kind of check.
Worked examples
Example 1: differentiate using the power rule
- Apply the power rule: bring the exponent 4 down as a coefficient, then subtract 1 from the exponent.
So . Check by estimating: increasing x from 1 to 1.01 changes from 1 to about , a change of about , which is close to .
Example 2: differentiate using the product rule
- Identify the two functions being multiplied: and , so and .
- Apply the product rule, .
So . Check at : . Since behaves like very close to 0, its slope there is indeed 0, matching the check.
Example 3: differentiate using the quotient rule
- Identify the top and bottom: , , so and .
- Apply the quotient rule, .
So . Check at : and , a change of about , close to .
Example 4: differentiate using the chain rule
- Identify the outside function, something to the 5th power, and the inside function, .
- Differentiate the outside function, leaving the inside alone, then multiply by the derivative of the inside.
So . Check at : and , a change of about , close to .
Common mistakes
- Applying the power rule to a variable base with a variable exponent, like , where the power rule does not apply at all.
- Getting the order of subtraction backward in the quotient rule, writing instead of .
- Forgetting to multiply by the derivative of the inside function when using the chain rule.
- Treating a sum of functions like a product and reaching for the product rule when the sum and difference rule was all that was needed.
- Dropping a negative sign that appears when differentiating a negative exponent or a trig function like cosine.
Some functions need a rule beyond these six. When the variable appears in both the base and the exponent, like , none of the rules above apply directly, and Derivative of x to the x: Logarithmic Differentiation shows the technique that handles it. Reciprocal functions like have their own shortcut using negative exponents, covered in Derivative of 1/t and Other Reciprocals, Step by Step, and the trig derivatives beyond sine and cosine, including where the negative signs come from, are in Derivative of -sin x and the Other Trig Derivatives. For a method that applies to any kind of math problem, not only derivatives, see How to Solve Any Math Problem Step by Step. When you want a derivative checked line by line, scan the problem and read every step in AI Math Tutor.
AI Math Tutor is a study aid, not a substitute for a teacher, and it can make mistakes: check every step, not just the answer.
Questions
What does a derivative actually measure?
A derivative measures how fast a function's output changes as its input changes, at a single instant. Graphically, it is the slope of the line tangent to the function's curve at a given point.
How do you know which derivative rule to use?
Look at the structure of the function. A single power of x uses the power rule. Two functions multiplied together need the product rule. One function divided by another needs the quotient rule. A function nested inside another, like , needs the chain rule.
Do you always need to use the quotient rule for a fraction?
Not always. If the denominator is just a number, you can pull it out as a constant multiple and use the power rule instead. The quotient rule is needed when the variable appears in the denominator itself.
How can you check a derivative without redoing the whole problem?
Pick a point, estimate how much the original function changes over a very small step from that point, and compare that change to what your derivative predicts for the same small step. If the two are close, your derivative is almost certainly correct.
Is the derivative of a constant always 0?
Yes. A constant does not change as x changes, so its rate of change, and therefore its derivative, is always 0.