NOTACAL logo

Derivative Calculator

Derivative Calculator

Give us your feedback! Was this useful?

Introduction

The derivative is the central concept of differential calculus. It measures how a function changes as its input changes — intuitively, the instantaneous rate of change or the slope of the tangent line at a point. If f(x) gives the position of a car at time x, then its derivative f'(x) gives the velocity at that instant [stewart].

The modern derivative was built independently by Isaac Newton and Gottfried Wilhelm Leibniz in the late seventeenth century to solve problems of motion and tangent lines. Before them, mathematicians such as Pierre de Fermat had ad-hoc methods, but the derivative provided a unified framework. Today derivatives describe marginal cost in economics, reaction rates in chemistry, the slope of a curve in engineering, and the gradient that powers machine-learning optimization.

This calculator handles four common families of functions: a power term a·xⁿ (by the power rule), an exponential a·e^(b·x), a sine wave a·sin(b·x), and the general power xⁿ. For each it returns both the symbolic derivative form and the numeric value at a chosen point x. This bridges the gap between learning the rules and checking a specific number.

Understanding derivatives is the first step toward optimization, where you find maxima and minima by setting the derivative to zero. Every time a calculator or app finds the steepest descent direction, it uses derivatives.

How to Use

Pick a Function Template from the menu: Polynomial (a·xⁿ), Exponential (a·e^(b·x)), Sine (a·sin(b·x)), or Power Rule (xⁿ). Then enter the parameters and the point x where you want the derivative evaluated (for the Power Rule, the point is the only extra input).

Example 1 — Polynomial: let f(x) = 3x². Choose Polynomial, set a = 3, n = 2, x = 5. The derivative is 3·2·x¹ = 6x, so f'(5) = 30. The calculator shows the form "6x^1" and the value 30.

Example 2 — Exponential: let f(x) = 2e^(x). Set a = 2, b = 1, x = 0. The derivative is 2·1·e^(x), so f'(0) = 2·e⁰ = 2.

Example 3 — Sine: let f(x) = sin(x). Set a = 1, b = 1, x = 90 (degrees). The derivative is cos(x), and cos(90°) = 0, so the slope of the sine curve at its peak is zero — exactly as expected.

Example 4 — Power Rule: differentiate x³ at x = 2. Set n = 3, x = 2. The result is 3·2² = 12.

Edge cases: a zero exponent (n = 0) in the polynomial gives a constant, whose derivative is 0. A negative exponent still works: the derivative of x⁻¹ is -x⁻². The sine template expects the angle in degrees, while the exponential and polynomial use plain real x.

How It's Calculated

The derivative of a function f at a point x is defined as the limit of the difference quotient:

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}
[stewart]

For the four templates, the closed-form rules are:

Power rule:

ddx(axn)=anxn1\frac{d}{dx}\big(a x^n\big) = a\,n\,x^{\,n-1}

Exponential rule:

ddx(aebx)=abebx\frac{d}{dx}\big(a e^{b x}\big) = a\,b\,e^{b x}

Sine rule (with x in radians):

ddx(asin(bx))=abcos(bx)\frac{d}{dx}\big(a \sin(b x)\big) = a\,b\,\cos(b x)

Manual example: f(x) = 3x². Apply the power rule with a = 3, n = 2: f'(x) = 3·2·x¹ = 6x. At x = 5, f'(5) = 30. The same logic applies to the exponential, where the chain rule brings down the factor b, and to the sine, where the derivative is the cosine scaled by a·b.

The calculator uses these analytic formulas directly rather than numerical finite differences, so results are exact to floating-point precision.

Reference Values

Derivatives of Common Functions at x = 1

Functionf(x)f'(x)Interpretation
12Slope rising
13Slope steeper
2.7182.718Self-similar growth
sin(x rad)0.8410.540cos(1)
2x⁴28Scaled power
Derivative values at x = 1 for five common functions. The slope measures how fast each function grows at that point; steeper functions have larger derivatives.

This table shows that even at the same input x = 1, functions grow at very different rates. The exponential's derivative equals its own value, a property unique to eˣ, while power functions grow in slope with their exponent.

More Worked Examples

Additional derivatives to check against the calculator.

Example A — f(x) = 5x⁴ at x = 1: power rule gives 20x³, so f'(1) = 20, the steep slope of a high-degree monomial.

Example B — f(x) = e^(2x) at x = 0: derivative 2e^(2x), so f'(0) = 2, the chain rule factor of 2 from the inner 2x.

Example C — f(x) = 0.5x² at x = 4: derivative x, so f'(4) = 4, the instantaneous rate of a falling-then-rising parabola.

Example D — f(x) = sin(x) in degrees at x = 0: derivative cos(0°) = 1, the slope of the sine at the origin where it rises most steeply.

Example E — f(x) = x⁻² at x = 3: derivative -2x⁻³ = -2/27 ≈ -0.074, a negative slope for this decreasing reciprocal-squared curve.

Practical Tips

  • Always check the units of x. The sine template uses degrees by default; calculus formulas assume radians, so convert (multiply degrees by π / 180) when comparing to textbook answers.
  • Use the derivative to find maxima and minima: set f'(x) = 0 and solve. A zero derivative marks a flat point — a candidate peak, valley, or inflection.
  • For composite functions, apply the chain rule: differentiate the outside and multiply by the derivative of the inside. The exponential template already includes the b factor from this rule.
  • The second derivative f''(x) tells you concavity. The calculator gives the first derivative; differentiate once more by hand for curvature.
  • Verify with a small step. A numeric estimate (f(x+h) - f(x)) / h for tiny h should match the analytic derivative closely.
  • Remember constants vanish: the derivative of f(x) + 7 is the same as f'(x), because the slope of a constant is zero.

Limitations

  • Template Limited: Only the four built-in families are supported. Sums, products, and quotients of arbitrary functions require the sum, product, and quotient rules applied by hand.
  • Degree Assumption for Sine: The sine template evaluates the input as degrees. Standard calculus uses radians, so results differ from textbook radian-based derivatives unless you convert.
  • No Symbolic Parser: You cannot type an arbitrary expression such as sin(x²) + ln(x); each template takes numeric parameters only.
  • No Higher Derivatives: The calculator returns the first derivative only; second and higher derivatives are not computed.
  • Exactness vs. Display: Internally exact to floating point, but the displayed value is rounded; chaining many rounded values can accumulate error.
  • Undefined Points: At inputs where a function has a corner or cusp (not in these smooth templates), the derivative does not exist, and a real calculator would need special handling.

Frequently Asked Questions

What does a derivative actually represent?
It is the instantaneous rate of change of a function, equivalent to the slope of the tangent line at a point. For position versus time, the derivative is velocity.
Why is the derivative of a constant zero?
A constant never changes, so its rate of change is zero. Graphically, a horizontal line has slope zero everywhere.
What is the power rule?
For f(x) = a·xⁿ, the derivative is a·n·xⁿ⁻¹. You bring the exponent down as a multiplier and reduce the exponent by one.
Why does the sine template use degrees?
Degrees are more familiar to many users entering angles like 90 or 45. Be aware that calculus identities such as d/dx sin x = cos x assume radians, so convert if you need the textbook result.
What is the chain rule?
It handles composite functions: the derivative of f(g(x)) is f'(g(x))·g'(x). The exponential template's b factor is the chain rule applied to the inner bx.
Can the derivative be negative?
Yes. A negative derivative means the function is decreasing at that point — its graph slopes downward as x increases.
How do I find a maximum or minimum?
Set the derivative equal to zero and solve for x. Those x-values are where the function is flat, marking local peaks or valleys. The second derivative then distinguishes them.
What is the difference between a derivative and an integral?
The derivative measures instantaneous rate of change; the integral measures accumulated total (area under the curve). They are inverse operations by the Fundamental Theorem of Calculus.
Is the exponential derivative really equal to itself?
For eˣ, yes — its derivative is exactly eˣ, which is why exponential growth models are so natural in calculus and differential equations.
Do I need calculus to use this calculator?
No. Enter the parameters and the calculator returns both the formula and the number. Some familiarity helps you interpret the result, but the tool does the differentiation for you.

Real-World Applications and Extended Examples

The derivative is the mathematics of "how fast, right now". Any time a quantity changes, its rate of change is a derivative, and that rate is what drives decisions in science, finance, and engineering.

Extended example 1 — velocity and acceleration: position s(t) = 3t² gives velocity s'(t) = 6t. At t = 5 the velocity is 30 m/s, exactly what this calculator returns for f(x) = 3x² at x = 5. Differentiating once more gives acceleration, 6 m/s², constant because the position is quadratic.

Extended example 2 — marginal cost in economics: if the cost of producing q items is C(q) = 0.5q² + 10q + 100, the marginal cost is C'(q) = q + 10. Producing the 11th item costs about 21 units, the slope of the cost curve at q = 10. Businesses use this derivative to decide whether one more unit is profitable.

Extended example 3 — cooling and growth rates: Newton's law of cooling states the rate of temperature change is proportional to the gap from ambient. The derivative dT/dt = -k(T - Tₐ) is negative when the object is hot, so it cools fastest at the start and slows as it approaches room temperature. The exponential template's derivative, a·b·e^(bx), models exactly this kind of self-similar growth or decay.

Extended example 4 — finding maximum profit: profit P(x) is maximized where P'(x) = 0. Take P(x) = -2x² + 40x - 50; its derivative is -4x + 40, zero at x = 10. That is the production level of maximum profit, and the negative second derivative confirms it is a peak rather than a valley.

Extended example 5 — the slope of a tangent line: the derivative at a point is the slope of the line that just touches the curve there. For f(x) = x³ at x = 2 the slope is 12, so the tangent line rises steeply. Graphing software computes thousands of such slopes per second to draw a smooth curve.

Extended example 6 — sensitivity in chemistry: a reaction rate r(T) often depends sharply on temperature. Its derivative dr/dT tells you how much the rate changes per degree — crucial for safely controlling industrial reactors where a small temperature rise can accelerate a reaction dangerously.

Extended example 7 — gradient descent in machine learning: training a model means descending the slope of a loss function. The derivative (or its multidimensional cousin, the gradient) points toward steepest increase, so moving opposite to it reduces error. Every neural network relies on this elementary derivative idea at scale.

Extended example 8 — related rates: when two quantities are linked by an equation, their derivatives are linked too. If a balloon's radius r grows at dr/dt, its volume V = (4/3)πr³ grows at dV/dt = 4πr²·dr/dt. Differentiating the volume formula produces the rate at which air must be pumped — a direct use of the power rule on a composed function.

When interpreting a derivative, always pair it with units. A derivative of 30 for position in meters over time in seconds means 30 m/s. Dropping the units hides whether you are looking at a gentle slope or a steep one. And remember that a derivative of zero is not automatically a maximum; it is merely flat — the second derivative, or a quick check of nearby points, settles whether it is a peak, a valley, or a pass.

The derivative is a local measurement. It describes the function's behavior at a single point and says nothing about what happens far away. A curve can have a small derivative at one spot and a steep one a moment later, which is why a single slope value never tells the whole story of a function.

Differentiability is stronger than continuity. If a function has a derivative at a point, it must be continuous there, but the reverse is false: a continuous curve can still have a sharp corner where no unique tangent exists. The smooth templates handled by this calculator avoid those corners, but real data often does not.

The derivative of a sum is the sum of the derivatives, and the derivative of a constant multiple is that multiple times the derivative. These two linearity rules are why complicated functions are broken into pieces, differentiated term by term, and reassembled — the same strategy the calculator applies to each template's parameters.

Higher-order derivatives carry their own meaning. The second derivative measures how the slope itself changes, which is curvature; the third and beyond appear in the Taylor expansions used to approximate functions and in the physical descriptions of jerk and higher-rate motion.

The derivative at a point equals the slope of the best linear approximation to the function there. Zoom in close enough to a smooth curve and it looks like a straight line, and the derivative is the slope of that line; this local straightness is why derivatives are the starting point for every numerical method that approximates a function.

Implicit differentiation extends the idea to equations where y is not written as an explicit function of x. Differentiating both sides with respect to x and solving for dy/dx recovers the slope of a curve defined only indirectly, a technique the basic template rules here support once you recognize the chain rule at work.

Optimization is the most common applied use of derivatives. Setting the first derivative to zero finds candidates for maxima and minima, and the sign of the second derivative then tells you which is which. This single procedure underlies pricing, design, and control problems across engineering and economics.

The derivative respects composition through the chain rule, which is why the exponential and sine templates here automatically pick up the inner factor b. Whenever a function nests inside another, the rate of change of the outside must be weighted by the rate of change of the inside, and that weighting is exactly what the chain rule supplies.

Last updated: July 20, 2026

1b

UnByte — Independent Software Engineering

Every calculator references authoritative sources — Editorial policy