Skip to main content
calculuscalculatorguide

Derivative Calculator Step by Step: Complete Guide with Worked Examples

·12 min read·Solvify Team

A derivative calculator step by step walks you through the full differentiation process — not just the final answer, but every algebraic move that gets you there. Derivatives measure how fast a function changes at any given point, and they appear constantly: physics equations, optimization problems, AP Calculus AB exams, and engineering courses all depend on them. This guide covers the four main differentiation rules with real worked examples, explains the mistakes that cost students the most exam points, and gives you practice problems to test your understanding before your next test.

What Is a Derivative? (And What a Derivative Calculator Actually Computes)

The derivative of f(x), written f'(x) or d/dx[f(x)], measures the instantaneous rate of change of f at each value of x. Geometrically, f'(a) is the slope of the line tangent to the curve y = f(x) at the point (a, f(a)). If the slope is positive, the function is increasing there; if negative, it is decreasing; if zero, you are at a local maximum or minimum. The formal starting point is the limit definition: f'(x) = lim(h→0) [f(x + h) - f(x)] / h A derivative calculator applies differentiation rules — Power Rule, Chain Rule, Product Rule, Quotient Rule — that are proven shortcuts for this limit. Understanding why the rules work is easier once you have seen the limit definition in action. Example — Derivative of f(x) = x² from the definition: f'(x) = lim(h→0) [(x + h)² - x²] / h = lim(h→0) [x² + 2xh + h² - x²] / h = lim(h→0) [2xh + h²] / h = lim(h→0) [h(2x + h)] / h = lim(h→0) (2x + h) = 2x So the derivative of x² is 2x. This matches the Power Rule result (covered in the next section): d/dx(x²) = 2 · x^(2-1) = 2x. Every differentiation rule is a shortcut for a limit that follows this same pattern.

The derivative f'(a) is the slope of the tangent line at x = a. Positive means the function is rising; negative means it is falling; zero means a potential maximum or minimum.

How to Use a Derivative Calculator Step by Step

Whether you are working by hand or using an online derivative calculator step by step, the differentiation process follows the same decision tree. Learning this sequence means you always know which rule to reach for — and you catch errors before they compound.

1. Step 1 — Identify the function type

Look at the structure before picking a rule. Is the function a single power of x (→ Power Rule)? A product of two functions (→ Product Rule)? One function divided by another (→ Quotient Rule)? A function nested inside another function (→ Chain Rule)? Many expressions require more than one rule — always identify the outermost structure first.

2. Step 2 — Rewrite if needed

Roots, fractions, and negative powers are much easier to differentiate after rewriting: √x = x^(1/2), 1/xⁿ = x^(-n), ∛x = x^(1/3). This single step prevents the majority of Power Rule errors. Simplify the expression before differentiating whenever possible.

3. Step 3 — Apply the rule and show every sub-step

Write out the substitution into the rule formula before simplifying. For example, when using the Product Rule on x³ · sin(x), label: f = x³, f' = 3x², g = sin(x), g' = cos(x), then combine: 3x²sin(x) + x³cos(x). Skipping intermediate steps is where most exam errors occur.

4. Step 4 — Simplify the result

Factor the answer completely. Many follow-up problems — finding critical points, applying the Second Derivative Test, or solving f'(x) = 0 — require the derivative in a simplified form. For example, 3x²sin(x) + x³cos(x) can be factored as x²(3sin(x) + xcos(x)).

5. Step 5 — Check your answer numerically

Plug a specific x-value into both your derivative formula and this numerical estimate: [f(x + 0.001) - f(x)] / 0.001. The two results should be close. If they differ significantly, go back and find the error. This check takes 30 seconds and catches most mistakes before they reach the grader.

Power Rule: The Backbone of Every Derivative Calculator

The Power Rule handles polynomials, roots, and negative exponents — the majority of functions in Calculus I. It states: d/dx(xⁿ) = n·xⁿ⁻¹ where n can be any real number. Multiply by the exponent, then reduce the exponent by 1. Example 1 — Single term: Find d/dx(x⁷). n = 7: d/dx(x⁷) = 7x⁶ ✓ Example 2 — Polynomial with four terms: Find d/dx(5x⁴ - 3x² + 8x - 11). Differentiate term by term (the Sum Rule lets you do this): d/dx(5x⁴) = 5 · 4x³ = 20x³ d/dx(-3x²) = -3 · 2x = -6x d/dx(8x) = 8 · 1x⁰ = 8 d/dx(-11) = 0 (constant rule: the derivative of any constant is 0) Answer: 20x³ - 6x + 8 ✓ Example 3 — Square root: Find d/dx(√x). Rewrite first: √x = x^(1/2) d/dx(x^(1/2)) = (1/2)x^(1/2 - 1) = (1/2)x^(-1/2) = 1 / (2√x) ✓ Example 4 — Negative exponent: Find d/dx(1/x⁴). Rewrite: 1/x⁴ = x^(-4) d/dx(x^(-4)) = -4 · x^(-4-1) = -4x^(-5) = -4/x⁵ ✓ Example 5 — Mixed polynomial: Find d/dx(3x³ + 6√x - 2/x). Rewrite: 3x³ + 6x^(1/2) - 2x^(-1) d/dx(3x³) = 9x² d/dx(6x^(1/2)) = 6 · (1/2)x^(-1/2) = 3x^(-1/2) = 3/√x d/dx(-2x^(-1)) = -2 · (-1)x^(-2) = 2x^(-2) = 2/x² Answer: 9x² + 3/√x + 2/x² ✓

Power Rule: d/dx(xⁿ) = n·xⁿ⁻¹. Always rewrite roots (√x = x^(1/2)) and fractions (1/xⁿ = x^(-n)) before differentiating — this turns every root or fraction into a straightforward power.

Chain Rule, Product Rule, and Quotient Rule — Three Rules That Handle Everything Else

Once you move beyond single-term polynomials, you need three more rules. A derivative calculator step by step always identifies which combination applies and flags when more than one rule is needed in a single problem.

1. Chain Rule: for composite functions f(g(x))

Formula: d/dx[f(g(x))] = f'(g(x)) · g'(x) Differentiate the outer function first, keeping the inner function unchanged inside, then multiply by the derivative of the inner function. Example: Find d/dx[(3x² + 1)⁴]. Outer function: u⁴ where u = 3x² + 1 f'(u) = 4u³ and g'(x) = 6x d/dx[(3x² + 1)⁴] = 4(3x² + 1)³ · 6x = 24x(3x² + 1)³ ✓ Memory aid: 'derivative of the outside times derivative of the inside.'

2. Product Rule: for two functions multiplied together

Formula: d/dx[f(x)·g(x)] = f'(x)·g(x) + f(x)·g'(x) Label the two factors as f and g, differentiate each separately, then apply the formula. Example: Find d/dx[x²·ln(x)]. f(x) = x² → f'(x) = 2x g(x) = ln(x) → g'(x) = 1/x d/dx[x²·ln(x)] = 2x·ln(x) + x²·(1/x) = 2x·ln(x) + x ✓ Factored form: x(2ln(x) + 1) Memory aid: 'first times derivative of second, plus second times derivative of first.'

3. Quotient Rule: for one function divided by another

Formula: d/dx[f(x)/g(x)] = [f'(x)·g(x) - f(x)·g'(x)] / [g(x)]² The subtraction in the numerator is critical — order matters. Example: Find d/dx[(x² + 5)/(3x - 2)]. f(x) = x² + 5 → f'(x) = 2x g(x) = 3x - 2 → g'(x) = 3 d/dx = [2x·(3x - 2) - (x² + 5)·3] / (3x - 2)² = [6x² - 4x - 3x² - 15] / (3x - 2)² = (3x² - 4x - 15) / (3x - 2)² ✓ Memory aid: 'low d-high minus high d-low, square the bottom and away we go.'

Chain Rule: work from the outside in, multiply by the derivative of the inside. Product Rule: first·(d/dx second) + second·(d/dx first). Quotient Rule: (low d-high − high d-low) over low squared.

Derivatives of Trig, Exponential, and Logarithmic Functions

These derivatives need to be memorized for closed-book exams. A derivative calculator handles them automatically, but recognizing them by sight saves significant time on timed tests where you cannot look up formulas.

1. Trigonometric derivatives (the six you must know)

d/dx(sin x) = cos x d/dx(cos x) = -sin x d/dx(tan x) = sec²x d/dx(cot x) = -csc²x d/dx(sec x) = sec x · tan x d/dx(csc x) = -csc x · cot x The most common error: writing d/dx(cos x) = sin x and forgetting the negative sign. The derivative of cosine is negative sine — every time.

2. Exponential and logarithmic derivatives

d/dx(eˣ) = eˣ (the only function equal to its own derivative) d/dx(aˣ) = aˣ · ln(a), for any constant base a > 0 d/dx(ln x) = 1/x, for x > 0 d/dx(logₐ x) = 1 / (x · ln a) Example using Chain Rule with an exponential: Find d/dx[e^(3x²)]. Outer: eᵘ → derivative is eᵘ itself; inner: u = 3x² → derivative 6x Answer: e^(3x²) · 6x = 6x·e^(3x²) ✓

3. Combining rules: a realistic mixed example

Find d/dx[x²·sin(x) + e^(2x)]. For x²·sin(x) — Product Rule: d/dx[x²·sin(x)] = 2x·sin(x) + x²·cos(x) For e^(2x) — Chain Rule: d/dx[e^(2x)] = 2·e^(2x) Full answer: 2x·sin(x) + x²·cos(x) + 2e^(2x) ✓ Note how each term uses a different rule. Identifying the structure of each piece before differentiating is what separates confident students from those who guess.

d/dx(eˣ) = eˣ. The natural exponential function is the only function that equals its own derivative — this unique property underlies differential equations, compound interest, and probability theory.

Common Mistakes When Finding Derivatives

These errors appear on almost every calculus exam. Catching them in your own work before submitting is often worth more points than memorizing an additional rule.

1. Forgetting the chain rule on composite functions

The most frequent calculus mistake at every level. Students write d/dx(sin(3x)) = cos(3x) instead of the correct 3cos(3x). Any time the argument of a function is not just bare x, multiply by the derivative of that inner function. Check: is there something other than plain x inside the function? If yes, chain rule applies.

2. Applying the power rule to eˣ

The Power Rule d/dx(xⁿ) = nxⁿ⁻¹ applies when x is the base. For eˣ, the variable is in the exponent. d/dx(eˣ) = eˣ — not x·e^(x-1). These two rules have completely different structures. If you see e raised to something involving x, use the exponential rule (plus chain rule if the exponent is not just x).

3. Getting the sign wrong in the quotient rule

The quotient rule numerator is f'g − fg' (subtraction), not f'g + fg'. Swapping subtraction for addition produces a completely wrong answer that can pass a quick glance. Write the formula out explicitly every time until it becomes automatic.

4. Dropping the leading coefficient in the power rule

Finding d/dx(5x³) and writing 3x² instead of 15x². The original coefficient carries through: 5 · 3x² = 15x². A quick mental check: the result's leading coefficient = original coefficient × original exponent.

5. Forgetting that the derivative of a constant is zero

d/dx(7) = 0, d/dx(π) = 0, d/dx(e²) = 0. A constant does not change, so its rate of change is zero. This trips up students who see 'e' or 'π' and reach for a derivative rule — but if there is no variable, the derivative is always 0.

6. Not simplifying before differentiating

Differentiating f(x) = (x² + x)/x with the Quotient Rule is valid but adds four unnecessary steps. Simplify first: (x² + x)/x = x + 1, so f'(x) = 1 immediately. Always simplify the expression before applying rules — it reduces both the work and the chance of error.

Practice Problems with Full Solutions

Work through each problem before reading the solution. Problems increase in difficulty from Power Rule only to multi-rule combinations. Use a derivative calculator step by step to verify each answer after you attempt it. Problem 1 (Power Rule — polynomial): Find f'(x) if f(x) = 6x⁵ - 4x³ + x² - 9. Solution: f'(x) = 6·5x⁴ - 4·3x² + 2x - 0 = 30x⁴ - 12x² + 2x ✓ Problem 2 (Power Rule — roots and negative exponents): Find dy/dx if y = 4√x - 3/x². Rewrite: y = 4x^(1/2) - 3x^(-2) dy/dx = 4·(1/2)x^(-1/2) - 3·(-2)x^(-3) = 2x^(-1/2) + 6x^(-3) = 2/√x + 6/x³ ✓ Problem 3 (Chain Rule): Find d/dx[(x³ - 2x)⁶]. Outer: u⁶ → 6u⁵; inner: x³ - 2x → 3x² - 2 d/dx = 6(x³ - 2x)⁵ · (3x² - 2) ✓ Problem 4 (Product Rule): Find d/dx[3x²·eˣ]. f(x) = 3x² → f'(x) = 6x g(x) = eˣ → g'(x) = eˣ d/dx = 6x·eˣ + 3x²·eˣ Factored: 3xeˣ(2 + x) ✓ Problem 5 (Quotient Rule): Find d/dx[sin(x)/x]. f(x) = sin(x) → f'(x) = cos(x) g(x) = x → g'(x) = 1 d/dx = [cos(x)·x - sin(x)·1] / x² = (xcos(x) - sin(x)) / x² ✓ Problem 6 (Chain Rule inside Product Rule): Find d/dx[x·sin(x²)]. First, differentiate sin(x²) using Chain Rule: d/dx[sin(x²)] = 2x·cos(x²) Now apply Product Rule with f(x) = x and g(x) = sin(x²): d/dx = 1·sin(x²) + x·2x·cos(x²) = sin(x²) + 2x²cos(x²) ✓ Problem 7 (Challenge — Quotient Rule with Chain Rule inside numerator): Find d/dx[e^(2x) / (x² + 1)]. f(x) = e^(2x) → f'(x) = 2e^(2x) (chain rule) g(x) = x² + 1 → g'(x) = 2x d/dx = [2e^(2x)·(x² + 1) - e^(2x)·2x] / (x² + 1)² = e^(2x)[2(x² + 1) - 2x] / (x² + 1)² = e^(2x)(2x² - 2x + 2) / (x² + 1)² = 2e^(2x)(x² - x + 1) / (x² + 1)² ✓

Frequently Asked Questions About Derivative Calculators

1. What is the difference between a derivative and a slope?

The derivative f'(a) at a specific point equals the slope of the tangent line at that point. But the derivative f'(x) as a whole is a new function — the slope function — that gives the slope of the original curve at every x simultaneously. 'Slope' is one number at one point; 'derivative' is a function that produces slopes everywhere.

2. Which rule do I use when a problem needs both a product and a composition?

Apply rules from the outside in. Identify the outermost structure first. If the whole expression is a product, use the Product Rule first — but the individual factors may themselves require the Chain Rule when you differentiate them. For example, d/dx[x²·sin(3x)] uses Product Rule on x² and sin(3x), and Chain Rule appears inside d/dx[sin(3x)] = 3cos(3x).

3. Should I always use the Quotient Rule for fractions?

Not if you can simplify first. f(x) = (x³ + x²)/x simplifies to x² + x, giving f'(x) = 2x + 1 in one step. The Quotient Rule would reach the same answer after five more steps. Simplify first whenever the denominator is a monomial or factors cleanly — the Quotient Rule is a last resort, not a first move.

4. What is a second derivative and when do I need it?

The second derivative f''(x) is the derivative of f'(x) — the rate of change of the slope. f''(x) > 0 means the graph is concave up (curves like a bowl); f''(x) < 0 means concave down. You need second derivatives for the Second Derivative Test for local extrema, for finding inflection points, and in physics where acceleration is the second derivative of position with respect to time.

5. How do I find where a function reaches a maximum or minimum?

Set f'(x) = 0 and solve for x — these are the critical points. Then check the sign of f''(x) at each: f''(x) > 0 means local minimum; f''(x) < 0 means local maximum; f''(x) = 0 means the test is inconclusive. Example: f(x) = x³ - 3x + 2 f'(x) = 3x² - 3 = 0 → x² = 1 → x = ±1 f''(x) = 6x f''(1) = 6 > 0 → local minimum at x = 1 ✓ f''(-1) = -6 < 0 → local maximum at x = -1 ✓

6. Does a step-by-step derivative calculator show the same work my instructor expects?

A good derivative calculator step by step writes out every rule applied with each intermediate expression — the same level of detail most instructors require. Use it to compare your manual steps line by line. If your final answer matches but your steps diverge at a specific line, that is exactly where to focus your practice. The goal is never to skip steps, but to understand them so thoroughly that each one is automatic.

Tags:
calculuscalculatorguide

Get Homework Help Now

Join millions of students using our AI math solver for homework help. Get instant solutions to math problems, step-by-step explanations, and 24/7 homework assistance.

Available for iOS and Android devices