Derivative Calculator
FREE
Enter your expression
Use ^ for exponents, * for multiplication, sqrt() for square roots, ln() for log
Result
Example Calculations
InputResult
x³ + 2x² − 5x + 13x² + 4x − 5
sin(x²)2x·cos(x²)
eˣ·ln(x)eˣ·ln(x) + eˣ/x
(x²+1)/(x−1)(2x(x−1)−(x²+1))/(x−1)²

How Derivatives Are Computed

A derivative measures the instantaneous rate of change of a function — the slope of its graph at any point. The formal definition is: f'(x) = lim(h→0) [f(x+h) − f(x)] / h. In practice, derivatives are computed using established rules rather than this limit every time. The Power Rule handles xⁿ (giving nxⁿ⁻¹). The Product Rule handles f·g (giving f'g+fg'). The Chain Rule handles compositions f(g(x)) (giving f'(g(x))·g'(x)). The Quotient Rule handles f/g (giving (f'g−fg')/g²).

Common Derivative Formulas

d/dx[xⁿ] = nxⁿ⁻¹ · d/dx[eˣ] = eˣ · d/dx[ln x] = 1/x · d/dx[sin x] = cos x · d/dx[cos x] = −sin x · d/dx[tan x] = sec²x · d/dx[arctan x] = 1/(1+x²) · d/dx[arcsin x] = 1/√(1−x²). These formulas combined with the four main rules allow differentiation of almost any expression.

Step-by-Step Derivative Examples

Example 1: f(x) = 3x⁴ − 2x² + 7x − 1 → Apply Power Rule to each term: f'(x) = 12x³ − 4x + 7.

Example 2: f(x) = x²·sin(x) → Product Rule: f'(x) = 2x·sin(x) + x²·cos(x).

Example 3: f(x) = sin(x²+1) → Chain Rule: f'(x) = cos(x²+1)·2x = 2x·cos(x²+1).

Example 4: f(x) = eˣ/(x+1) → Quotient Rule: f'(x) = [eˣ(x+1) − eˣ·1]/(x+1)² = eˣ·x/(x+1)².

When to Use Each Rule

The right approach depends on the structure of the function. Product Rule: two functions multiplied, neither a simple constant. Quotient Rule: a fraction where both numerator and denominator depend on x. Chain Rule: any composition — any function where the argument is not plain x. Power Rule: any term of the form xⁿ with constant n. Multiple rules often apply simultaneously: d/dx[sin(x²)·eˣ] requires both the Product Rule (sin(x²) times eˣ) and the Chain Rule (for sin(x²)).

How to Use This Derivative Calculator

Enter your expression in the input box above using standard mathematical notation. Use ^ for exponents (e.g., x^3 for x³), * for multiplication when needed, sin(), cos(), tan(), ln(), sqrt() for standard functions. Then click Calculate to get your answer with full step-by-step working.

This calculator handles polynomial, trigonometric, exponential, logarithmic expressions, and combinations thereof. Results are shown in simplified form where possible, with each step of the working displayed below the answer.

For best results, enter expressions clearly without ambiguity. Use parentheses to group terms: (x^2 + 1)/(x - 1) rather than x^2+1/x-1. The calculator follows standard order of operations.

Frequently Asked Questions
What is a derivative in simple terms?
A derivative measures how fast a function is changing at any given point — it's the instantaneous rate of change, or geometrically, the slope of the tangent line to the curve at that point.
When do I need the Chain Rule?
Use the Chain Rule whenever the argument of a function is not plain x — for example sin(3x), e^(x²), or (2x+1)⁵. If there's 'something inside' a function, the Chain Rule is required.
What's the difference between a derivative and a differential?
The derivative dy/dx is a ratio of the infinitesimal change in y to the infinitesimal change in x — it's a single number at each point. The differential dy = f'(x)dx is an infinitesimal quantity representing the approximate change in y for a small change dx.
Can every function be differentiated?
No. A function must be differentiable at a point to have a derivative there. Functions with corners (like |x| at 0), cusps, or vertical tangents are not differentiable at those specific points, even if they are continuous.
AM
Dr. Aisha Malik, PhD Mathematics
Senior Lecturer in Applied Mathematics · 12 years teaching calculus

Dr. Malik holds a PhD in Applied Mathematics from the University of Edinburgh. She has verified all formulas, examples, and explanations on this page for mathematical accuracy. The calculator tool demonstrates key concepts covered in her undergraduate calculus courses.

Reviewed by: Prof. James Chen, Stanford Mathematics Mar 2026
References & Further Reading
  • Stewart, J. (2015). Calculus, Ch. 3. Cengage.
  • Wolfram Research (2024). Mathematica differentiation engine. wolfram.com.
  • Apostol, T. (1967). Calculus, Vol. 1. Wiley.