A derivative tells you how fast a function changes at each point: the slope of its graph, a velocity, a marginal cost. This derivative calculator differentiates a function of symbolically, so you get a formula rather than a single number, and it lists the rule applied at each stage — power, product, quotient and chain rules, plus the standard derivatives of exponentials, logarithms, trigonometric, inverse trigonometric and hyperbolic functions.
Type the function the way you would write it on paper: x^2*sin(x), e^(3x), ln(x^2+1) or (x^2+1)/(x-1). Implicit multiplication such as 2x or 3sin(x) is understood, and |x| works for the absolute value. The answer is simplified — constants are folded, factors of 0 and 1 disappear, like terms are combined and quotients are put over a common denominator when that is shorter — so it reads like a textbook answer.
You can also ask for the second or third derivative, evaluate the result at a point and read the equation of the tangent line there. That makes the tool useful for checking homework, preparing for an exam or verifying a hand calculation in physics, engineering or economics.
How to use this calculator
- Enter the function in the Function f(x) field. Use
^for powers,*or nothing for multiplication, and brackets around function arguments:sin(2x),sqrt(x+1). - Choose f′, f″ or f‴ for the first, second or third derivative.
- Optionally type a point in Evaluate at x = a — a number or a constant such as
pi/4. Leave it empty if you only want the formula. - Read the simplified derivative at the top. Open the steps to see which rule was applied to each part of the expression, outermost first.
- For the first derivative at a point, the calculator also gives the tangent line .
All angles are in radians, log is the base-10 logarithm and ln the natural logarithm.
The formula
The derivative is defined as the limit of the difference quotient:
In practice nobody uses the limit for every function. A handful of rules covers almost everything:
| Rule | Formula |
|---|---|
| Power | |
| Constant multiple | |
| Sum | |
| Product | |
| Quotient | |
| Chain |
Combined with a short table — , , , , , — these rules let the calculator break any expression into pieces it knows. For a variable exponent such as it uses logarithmic differentiation: .
Worked example
Product rule. For , take and . Then , and
At : and , so . Since , the tangent line is — exactly what the calculator shows with its default input.
Chain rule. For the inner function is , whose derivative is 3, so , and the value at is 3.
Quotient rule. For the calculator returns .
Second derivative. For : , and .
What the steps show
The steps follow the structure of your expression from the outside in. A line such as Product rule: d/dx [x²·sin(x)] = 2x·sin(x) + x²·cos(x) means the outermost operation is a product; the next lines differentiate each factor. Power rule + chain rule appears when a power has an inner function, as in , whose derivative is .
Very long expressions show the first ten rule applications and a count of the rest, so the list stays readable. The integral calculator performs the reverse operation, and the limit calculator uses these derivatives for L’Hôpital’s rule.
Where derivatives are used
- Slopes and tangents: is the slope of the curve at ; compare it with the average slope from the average rate of change calculator.
- Optimisation: maxima and minima occur where ; the sign of tells which is which.
- Physics: velocity is the derivative of position, acceleration the derivative of velocity.
- Economics: marginal cost and marginal revenue are derivatives of the cost and revenue functions.
Frequently asked questions
How do I type powers, roots and exponentials?
Use ^ for powers (x^3, (x+1)^2), sqrt(x) or x^(1/2) for square roots, and e^(2x) or exp(2x) for exponentials. Fractional and negative exponents are allowed: x^(-1/2) is 1/√x.
Are angles in degrees or radians?
Radians. Calculus formulas such as (sin x)′ = cos x only hold in radians. If your angle is in degrees, multiply it by pi/180 first, e.g. sin(pi*x/180).
Why does my answer look different from the textbook?
Equivalent forms are common: 1/cos(x)² is sec²(x), and 2sin(x)·cos(x) equals sin(2x). Evaluate both versions at the same point with the x = a field and they will match.
Can it do implicit or partial derivatives?
Not directly: the calculator works with one variable, x. For a partial derivative treat the other variables as constants (type their numeric values). For implicit differentiation, differentiate both sides with respect to x and solve for dy/dx.
What is the derivative of |x|?
For x ≠ 0 it is x/|x|, which equals 1 for positive x and −1 for negative x. At x = 0 the graph has a corner and the derivative does not exist.
Sources
- OpenStax — Calculus Volume 1, chapter 3: Derivatives
- NIST Digital Library of Mathematical Functions — elementary functions
Last updated: