Calculus workspace

Derivative Calculator

Differentiate functions with exact symbolic rules, readable steps, domain notes, an interactive graph, and optional tangent-line analysis.

Try an example
Advanced optionsFunction · order 1

Answer

✓ Rule checked
f′(x)=3⋅x2+4⋅x−5f'(x) = 3 \cdot {x}^{2} + 4 \cdot x - 5

Domain: all real numbers.

Step-by-step solution

The important moves first, without every constant calculation getting in the way.

4 main steps
  1. 1

    Power rule

    Bring the exponent down, reduce it by one, then multiply by the inner derivative.

    x2  ⟶  2⋅x{x}^{2}\;\longrightarrow\;2 \cdot x
  2. 2

    Product rule

    Use (uv)' = u'v + uv'.

    5⋅x  ⟶  55 \cdot x\;\longrightarrow\;5
  3. 3

    Sum rule

    Differentiate each term independently and preserve its sign.

    x3+2⋅x2−5⋅x+1  ⟶  3⋅x2+4⋅x−5{x}^{3} + 2 \cdot {x}^{2} - 5 \cdot x + 1\;\longrightarrow\;3 \cdot {x}^{2} + 4 \cdot x - 5
  4. 4

    Difference rule

    Differentiate each term independently and preserve its sign.

    x3+2⋅x2−5⋅x  ⟶  3⋅x2+4⋅x−5{x}^{3} + 2 \cdot {x}^{2} - 5 \cdot x\;\longrightarrow\;3 \cdot {x}^{2} + 4 \cdot x - 5
Show complete rule trace (13 operations)
  1. 1. Identity rulex → 1
  2. 2. Power rulex^3 → 3 * x^2
  3. 3. Constant rule2 → 0
  4. 4. Identity rulex → 1
  5. 5. Power rulex^2 → 2 * x
  6. 6. Product rule2 * x^2 → 4 * x
  7. 7. Sum rulex^3 + 2 * x^2 → 3 * x^2 + 4 * x
  8. 8. Constant rule5 → 0
  9. 9. Identity rulex → 1
  10. 10. Product rule5 * x → 5
  11. 11. Difference rulex^3 + 2 * x^2 - 5 * x → 3 * x^2 + 4 * x - 5
  12. 12. Constant rule1 → 0
  13. 13. Sum rulex^3 + 2 * x^2 - 5 * x + 1 → 3 * x^2 + 4 * x - 5
Visual check

Function and derivative chart

Compare the original function with its derivative on the same coordinate plane.

local minimum at (0.7863, -1.2088)inflection point at (-0.6667, 4.9259)
Inspect the graphChoose a point to see the slope and tangent line.
f(0)
1
f′(0)
-5
Behavior
Decreasing
Tangent line
y − 1 = -5(x − 0)
Normal line
y − 1 = 0.2(x − 0)
Critical points
Increasing and decreasing
  • increasing on (-6, -2.1196)
  • decreasing on (-2.1196, 0.7863)
  • increasing on (0.7863, 6)
Inflection points
Independent numerical checkSymbolic derivative verified

8 finite sample points compared · maximum relative error 0.00e+0

Purple circles mark detected stationary points; orange diamonds mark detected concavity changes. Numerical classifications apply to the displayed range and do not replace a proof near discontinuities.

Interactive practice

Try it yourself

1 / 3

Differentiate with respect to x:

x3−4⋅x{x}^{3} - 4 \cdot x
Core concept

What Is a Derivative?

A derivative measures a function’s instantaneous rate of change. Geometrically, f′(a) is the slope of the tangent line to y = f(x) at x = a when that derivative exists.

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}

The quotient measures average change over a short interval. Its limit, if it exists, is the instantaneous rate of change.

Derivative

The limit of the difference quotient, when that limit exists.

Chain rule

The rule for differentiating a composite function: (f(g(x)))′ = f′(g(x))g′(x).

Partial derivative

A derivative with respect to one variable while the other independent variables are held constant.

Implicit derivative

A derivative found from a relation F(x,y)=0 without first solving explicitly for y.

Rules that matter

Derivative Rules and When to Use Them

RuleFormulaUse it for
Powerd(xⁿ)/dx = nxⁿ⁻¹Constant real powers on valid real domains
Product(uv)′ = u′v + uv′Two multiplied functions
Quotient(u/v)′ = (u′v − uv′)/v²A ratio where v ≠ 0
Chain(f(g(x)))′ = f′(g(x))g′(x)Nested or composite functions
Implicitdy/dx = −Fₓ/FᵧA relation F(x,y) = 0 with Fᵧ ≠ 0
Four-step workflow

How to Use the Derivative Calculator

1

Enter the function

Enter a function or choose an example.

2

Choose the operation

Choose the differentiation variable and derivative order.

3

Read the result

Differentiate and read the exact symbolic result.

4

Verify the meaning

Review every applied rule, domain condition, graph, and optional point analysis.

Worked examples

Polynomial, Chain, Product, and Variable-Power Examples

Differentiate x³ + 2x² − 5x + 1.

3x² + 2·2x − 5 + 03x² + 4x − 5

Each polynomial term is differentiated independently using the power and constant rules.

Differentiate sin(x²).

cos(x²)·(2x)2x cos(x²)

The outer sine rule and inner power rule combine through the chain rule.

Differentiate x ln(x).

1·ln(x) + x·(1/x)ln(x) + 1, x > 0

The product rule is used, and the logarithm’s original domain is preserved.

Differentiate xˣ.

xˣ(ln(x) + x/x)xˣ(ln(x) + 1), x > 0

Because both base and exponent vary, logarithmic differentiation is used in the real-valued setting.

Correctness beyond algebra

Domain, Corners, Holes, and Discontinuities

A simplified derivative can look valid at a point that the original function excluded. Always carry the original domain forward. A two-sided derivative also fails at jumps, corners, cusps, and many vertical tangents.

  • |x| is not differentiable at x = 0.
  • sqrt(x) has a real domain x ≥ 0, but its derivative is undefined at x = 0.
  • A cancelled denominator factor can leave a removable hole.
  • tan(x) and sec(x) are undefined where cos(x) = 0.
  • Implicit differentiation requires the coefficient of dy/dx to be nonzero before solving locally for y as a function of x.
Choosing a method

Symbolic vs. Numerical Differentiation

Symbolic differentiation produces an exact expression; numerical differentiation estimates a slope from nearby values and is more sensitive to step size and rounding.

Symbolic

Produces a formula and a rule trace. It is preferred when the function is known in a supported exact form.

Numerical

Approximates one or more slopes from sampled values. It is useful for measured data, but needs error and step-size analysis.

Graphical

Shows how slopes behave and can reveal likely zeros or discontinuities, but the picture alone is not a proof.

Avoid these errors

Common Differentiation Mistakes

  • Forgetting the inner derivative in the chain rule.
  • Writing (uv)′ as u′v′ instead of u′v + uv′.
  • Applying the quotient rule with the numerator terms reversed.
  • Dropping the original domain after cancelling a common factor.
  • Treating a sharp corner, vertical tangent, or discontinuity as an ordinary finite derivative.
  • Using the simple power rule when both the base and exponent depend on the variable.
Questions answered

Derivative Calculator FAQ

What functions can this derivative calculator handle?

It supports polynomials, rational expressions, powers, roots, exponential and logarithmic functions, common trigonometric and inverse-trigonometric functions, products, quotients, compositions, partial derivatives, and first-order implicit differentiation.

Does it show real differentiation steps?

Yes. The rule trace is generated while the expression tree is differentiated. It is not a canned explanation selected after the answer.

Can it find higher derivatives?

Yes. Choose an order from 1 through 5. Each pass differentiates the result of the previous pass.

Can it calculate a tangent line?

Yes. Enter a valid x-value in the optional point field. The calculator evaluates both f(x) and f′(x) to form tangent and normal equations.

Why are domain restrictions shown?

A derivative formula is only meaningful where the original function and the required derivative operations are defined. Restrictions also prevent cancelled factors from hiding holes.

How does implicit differentiation work?

The equation is rewritten as F(x,y)=0 and the calculator uses dy/dx = −Fx/Fy, provided Fy is not zero at the point being considered.

Is the graph a proof of the derivative?

No. It is a visual check generated from the same parsed expressions. The symbolic rule trace is the mathematical derivation.

Verified sources

References

Continue learning

Related Calculators