Home / How to Find a Derivative

How to Find a Derivative

A step-by-step guide to the power rule, product rule, and chain rule, with worked examples for each.

Chris Terry
By Chris Terry, Editor
Published June 3, 2026

To find a derivative, identify the rule that matches your function's structure, then apply it to get an expression for the rate of change at any point. Most calculus problems reduce to three rules: the power rule, the product rule, and the chain rule.

What Is a Derivative?

A derivative tells you how fast a function is changing at any given input. Geometrically, it is the slope of the tangent line to the curve at that point. Practically, derivatives show up whenever something is moving or changing: speed is the derivative of position, acceleration is the derivative of speed, and marginal cost in economics is the derivative of total cost.

The notation d/dx means "derivative with respect to x." So d/dx of f(x), often written f'(x), gives you a new function whose output is the slope of f at each x. For a full formal treatment, see Wolfram MathWorld on the derivative.

If you want to check your work on a specific function, our derivative calculator will show the result with the rule applied.

The Power Rule

The power rule handles any term of the form x raised to a constant exponent. It is the workhorse of basic differentiation.

d/dx of x^n = n * x^(n-1)

Bring the exponent down in front as a coefficient, then reduce the exponent by one. That is it. The rule works for positive integers, negative exponents, and fractions.

A few quick results worth memorizing: the derivative of x is 1 (since x = x^1, and 1 * x^0 = 1). The derivative of any constant is 0, because a constant has no rate of change. The derivative of x^3 is 3x^2. Each one follows the same pattern.

Worked Example 1: Power Rule on a Polynomial

Find the derivative of f(x) = 4x^3 + 5x^2 - 7x + 2.

Step 1. Differentiate 4x^3. Bring the 3 down: 3 * 4 = 12. Reduce the exponent: x^2. Result: 12x^2.
Step 2. Differentiate 5x^2. Bring the 2 down: 2 * 5 = 10. Reduce the exponent: x^1 = x. Result: 10x.
Step 3. Differentiate -7x. This is -7 times x^1, so the derivative is -7 * 1 = -7.
Step 4. Differentiate the constant 2. The derivative of any constant is 0.
Result: f'(x) = 12x^2 + 10x - 7.

Each term is handled independently. That is because differentiation is a linear operation: you can split a sum and differentiate piece by piece.

The Product Rule

When two functions are multiplied together, you cannot simply differentiate each and multiply the results. You need the product rule.

d/dx of [f(x) * g(x)] = f'(x) * g(x) + f(x) * g'(x)

The pattern is: differentiate the first, leave the second alone, then add the first left alone times the derivative of the second. Some people remember it as "first times d-second plus second times d-first."

Worked Example 2: Product Rule

Find the derivative of h(x) = x^2 * (3x + 1).

Step 1. Label the two factors. Let f(x) = x^2 and g(x) = 3x + 1.
Step 2. Find f'(x). By the power rule, f'(x) = 2x.
Step 3. Find g'(x). The derivative of 3x + 1 is 3 (the constant 1 drops out).
Step 4. Apply the formula: h'(x) = f'(x) * g(x) + f(x) * g'(x).
h'(x) = 2x * (3x + 1) + x^2 * 3.
Step 5. Expand: 2x * (3x + 1) = 6x^2 + 2x. Add x^2 * 3 = 3x^2.
Result: h'(x) = 9x^2 + 2x.

You can verify this by expanding h(x) = 3x^3 + x^2 first, then differentiating directly. The answer is the same either way: 9x^2 + 2x.

The Chain Rule

The chain rule handles composite functions: situations where one function is plugged inside another. If y = f(g(x)), the derivative is f'(g(x)) times g'(x). In plain terms: differentiate the outer function, leave the inner function in place, then multiply by the derivative of the inner function.

d/dx of f(g(x)) = f'(g(x)) * g'(x)

A classic example: the derivative of (3x + 1)^5. The outer function is something raised to the 5th power; the inner function is 3x + 1. Differentiate the outer (bring down the 5, reduce the exponent): 5 * (3x + 1)^4. Then multiply by the derivative of the inner (which is 3): result is 15 * (3x + 1)^4. Short and clean once you see the structure.

When to Use Each Rule

The rule you reach for depends on how the function is built.

Real problems often stack these. You might need the chain rule and the product rule on the same term. Work from the outside in, identify the outermost structure first, then handle what is inside.

Related reading: if you are working on linear functions, our guide on how to find the slope of a line covers the geometry that derivatives generalize.

Try it yourself

Check any derivative instantly with steps shown.

Good to know

Frequently asked questions

What is the derivative of x squared?

The derivative of x squared is 2x. Apply the power rule: bring the exponent (2) down as a coefficient and reduce the exponent by one. So d/dx of x^2 = 2 * x^(2-1) = 2x. At x = 3, for example, the slope of the curve is 6.

How do you find the derivative of a fraction?

Rewrite the fraction as a negative exponent, then apply the power rule. For example, 1/x is the same as x^(-1), so its derivative is -1 * x^(-2), which equals -1/x^2. For fractions where both numerator and denominator contain x, use the quotient rule: (f/g)' = (f'g - fg') / g^2.

What is the difference between a derivative and an integral?

A derivative measures the rate of change of a function at any point, giving you the slope of the curve there. An integral sums up infinitely small slices to find the area under a curve or an accumulated total. The two are inverses of each other, a relationship called the Fundamental Theorem of Calculus: if you differentiate an integral, you get the original function back.

Can every function be differentiated?

No. A function must be continuous and smooth at a point to have a derivative there. Functions with sharp corners, jumps, or vertical tangents are not differentiable at those specific points. The absolute value function |x| is not differentiable at x = 0 because the slope jumps from -1 to 1 with no defined value in between.

Chris Terry
About the author
Chris Terry
Editor, Encore Editorial

Editor at Encore Editorial, Chris Terry sets the editorial standards here and turns dense topics into plain English. He has written widely on education, finance, and consumer markets.