Derivative Calc
Compute derivatives of polynomial expressions using the power rule. Get step-by-step differentiation and evaluate at any point.
Use x as the variable. Supports + - * / ^, implicit products (3x, 2(x+1)), sin cos tan asin acos atan sinh cosh tanh exp ln log (base 10) sqrt abs, and the constants pi and e. Example: x^3 - 4x^2 + 5x - 2 or e^(-x^2).
Optionally provide an x value to evaluate the derivative numerically.
The formula
f'(x) = d/dx(a·x^n) = a·n·x^(n−1); (uv)' = u'v + uv'; (u/v)' = (u'v − uv')/v²; (f∘g)' = f'(g)·g'
- a
- Coefficient
- n
- Exponent (Power)
- f'(x)
- Derivative (Rate of Change)
- d/dx
- Differentiation Operator
How Derivative Calc Works
f'(x) = d/dx(a·x^n) = a·n·x^(n−1); (uv)' = u'v + uv'; (u/v)' = (u'v − uv')/v²; (f∘g)' = f'(g)·g'
The derivative is computed exactly (symbolically), not numerically. The sum, constant-multiple, power, product, quotient and chain rules are applied together with the standard derivatives of sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, e^u, ln and log10, sqrt and abs. For polynomials this reduces to the power rule: the derivative of a·x^n is a·n·x^(n−1). The result is then simplified (like terms and powers are combined). Higher orders repeat the process.
- a
- Coefficient — The numerical factor multiplying the variable term. In 3x^2, a = 3. In -5x, a = -5. The coefficient scales the rate of change: a larger coefficient means a steeper slope. The coefficient carries through the differentiation: d/dx(ax^n) = a·n·x^(n-1).
- n
- Exponent (Power) — The power to which the variable x is raised. In x^2, n = 2 (parabolic growth). In x^1 (just x), n = 1 (linear growth). Constants have n = 0 (x^0 = 1). The power rule brings down the exponent as a multiplier: a·n·x^(n-1).
- f'(x)
- Derivative (Rate of Change) — The derivative represents the instantaneous rate of change of the function at any point x. Geometrically, it is the slope of the tangent line to the curve at that point. A positive derivative means the function is increasing, negative means decreasing, and zero means a local extremum (flat tangent).
- d/dx
- Differentiation Operator — The notation d/dx means "take the derivative with respect to x." It is an operator that transforms a function into its derivative function. The process of differentiation finds the rate at which the output of a function changes as its input changes. Leibniz notation (dy/dx) and Lagrange notation (f'(x)) are the two most common ways to represent derivatives.
Understanding the Result
The derivative is one of the two central concepts in calculus (the other being integration). It measures the instantaneous rate of change of a function with respect to its variable. The power rule — d/dx(x^n) = n·x^(n-1) — is the first differentiation rule most students learn, and it handles polynomials efficiently. For a term like 3x^4, the derivative is 3·4·x^(4-1) = 12x^3. The coefficient (3) carries through, the exponent (4) drops down as a multiplier, and the new exponent is one less (3).
This works for any real exponent, including fractions and negatives (x^(1/2), x^(-3)). The derivative of a sum is the sum of the derivatives, so we can differentiate term by term. The constant rule states that the derivative of a constant is zero — constants do not change, so their rate of change is zero. Geometrically, the derivative at a point gives the slope of the tangent line to the curve at that point.
If f'(x) > 0, the function is increasing (going up) at x. If f'(x) < 0, the function is decreasing (going down). If f'(x) = 0, the function has a horizontal tangent, which may indicate a local maximum, local minimum, or saddle point (inflection). The second derivative, f"'(x), measures the rate of change of the rate of change — it tells us about concavity. If f"'(x) > 0, the graph is concave up (like a cup, holding water).
If f"'(x) < 0, it is concave down (like a frown). The power rule is the foundation for polynomial calculus. Combined with the product rule, quotient rule, chain rule, and trigonometric/exponential rules (all implemented here), it enables differentiation of almost any function encountered in applied mathematics.
How to Use
- Enter f(x) using x as the variable and ^ for powers. Examples: "3x^2 + 2x + 1", "x^2*sin(x)", "(x^2+1)/(x-3)", "e^(-x^2)", "ln(x^2+1)". Products like 3x and 2(x+1) may omit the * sign.
- The calculator differentiates with the sum, constant-multiple, product, quotient, power and chain rules plus the derivatives of trigonometric, exponential and logarithmic functions, then simplifies the result. Choose the derivative order (1 to 4) to repeat the process.
- Review the step-by-step breakdown to see exactly how each term was differentiated. Each step shows the original term, the power rule applied, and the result.
- Optionally enter a numeric x-value to evaluate the derivative at that point. This gives you the slope of the tangent line to the original function at that x-coordinate.
- The result shows the derivative function f'(x), the original function f(x) for reference, the step-by-step work, and the evaluated value if an x-value was provided.
Quick Reference
| d/dx(x^n) | n·x^(n-1) |
| d/dx(constant) | 0 |
| d/dx(x) | 1 |
| d/dx(ax^n) | a·n·x^(n-1) |
Frequently Asked Questions
- What does the derivative actually tell me?
- The derivative f'(x) gives the instantaneous rate of change of the function at any point x. In practical terms, if f(x) represents position, f'(x) is velocity. If f(x) represents cost, f'(x) is marginal cost. If f(x) represents profit, f'(x) tells you how profit changes with production. A derivative of 6x means the slope of the original function at x=2 is 12 — the function is steeply increasing at that point. A derivative of 0 at a point means the tangent is horizontal, indicating a potential maximum or minimum.
- Can this calculator handle more complex functions like trigonometry or exponentials?
- Yes. Trigonometric (sin, cos, tan and inverses), hyperbolic, exponential (e^x, a^x), logarithmic (ln, log base 10), sqrt, abs, products, quotients, powers and compositions are all supported, e.g. x^2*sin(x), (x^2+1)/(x-3), e^(-x^2), x^x. The answer is a closed-form expression, checked against SymPy. Implicit differentiation, partial derivatives and piecewise functions are not supported.
- Why do constants differentiate to zero?
- A constant does not change, so its rate of change is zero. Graphically, y = c (a constant function) is a horizontal line — its slope is zero everywhere. The power rule confirms this: a constant is ax^0, and using the power rule, d/dx(ax^0) = a·0·x^(-1) = 0. This makes intuitive sense — if you have $5 and time passes, you still have $5 (ignoring interest). The constant term in a polynomial shifts the graph up or down but does not affect the shape or slope.
- What is the difference between the first derivative and the second derivative?
- The first derivative f'(x) tells you the slope of the function — whether it is increasing or decreasing. The second derivative f''(x) (the derivative of the derivative) tells you about concavity — whether the slope itself is increasing or decreasing. If f''(x) > 0, the function is concave up (curving upward like a cup), and if f''(x) < 0, it is concave down (curving downward like a frown). The second derivative can also indicate acceleration if the original function represents position. Inflection points occur where f''(x) = 0 and the concavity changes.
- Can I use this for implicit differentiation or partial derivatives?
- No. This calculator differentiates explicit functions of a single variable x. Implicit differentiation (where y is defined implicitly by an equation like x^2 + y^2 = 25) and partial derivatives (functions of several variables) require other techniques.
Common Uses
- •Physics and engineering — calculating velocity (derivative of position) and acceleration (derivative of velocity) from motion equations, finding rates of change in electrical circuits, fluid dynamics, and thermodynamics.
- •Economics and finance — determining marginal cost, marginal revenue, and marginal profit from total functions. The derivative tells a business how much their cost or revenue changes with each additional unit produced.
- •Optimization problems — finding maximum and minimum values of functions by setting the derivative to zero. Used in optimizing manufacturing processes, portfolio allocation, route planning, and machine learning (gradient descent).
- •Data science and machine learning — computing gradients for training neural networks (backpropagation relies on the chain rule), optimizing loss functions, and performing sensitivity analysis on model parameters.
- •Curve sketching and analysis — determining where a function is increasing or decreasing (first derivative test), finding inflection points (second derivative test), and understanding the shape and behavior of graphs.
Cite this calculator
TheCalcUniverse. "Derivative Calculator — Polynomials, Step by Step." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/derivative-calculator/. Accessed October 25, 2026.
Embed this calculator on your site
You may also like
-
Mathematics
Integral Calc
Calculate definite integrals numerically using Simpsons rule with step-by-step formula breakdown. Supports polynomial, trig, and exponential functions.
Open calculator → -
Mathematics
Limit Calc
Compute limits of functions as x approaches any value. Evaluate left-hand, right-hand, and two-sided limits with approach tables.
Open calculator → -
Mathematics
Taylor Series
Compute Taylor series of common functions like e^x, sin(x), cos(x) around any center point. Adjust the expansion order for accurate polynomial approximation.
Open calculator → -
Mathematics
Equation Solver
Solve linear (ax + b = 0) and quadratic (ax² + bx + c = 0) equations instantly. Shows discriminant, roots, and step-by-step solutions.
Open calculator → -
Mathematics
Height Predictor
Predict a child's adult height with the Mid-Parental (Tanner) method, with the 13 cm gender adjustment, a ±8.5 cm (about 95%) expected range and worked examples.
Open calculator →