Integral Calculator
Antiderivatives with named steps, plus definite and improper integrals with an error estimate and area graph.
This derivative calculator differentiates any function of x step by step and names the rule behind each step: power, product, quotient or chain rule.
f′(x), the first derivative
2x·sin(x) + x²·cos(x)
The first derivative of f(x) = x²·sin(x) is f′(x) = 2x·sin(x) + x²·cos(x). At x = π/2 the slope of the graph is 3.141592654, so the tangent line there is y = 3.141592654x − 2.4674011.
Trigonometric functions use radians. For an angle in degrees, write sin(pi x/180) instead of sin(x).
Start with the function
Product rule: (uv)′ = u′v + uv′
Power rule: d/dx uⁿ = n·uⁿ⁻¹·u′
d/dx sin x = cos x
Simplify
Evaluate at x = π/2
Substitute the point into the derivative.
Write the tangent line
Use the point-slope form with the point (a, f(a)) and slope f′(a).
It finds the first to fifth derivative, the slope at a point and the tangent line , with a graph.
Limit definition of the derivative
Plain-text formula: f′(x) = lim_{h → 0} (f(x + h) − f(x))/h
The derivative is the limit of the slope of a secant line as its second point slides onto the first. Every differentiation rule below is proved from this limit.
Power rule
Plain-text formula: (d/(dx))x^n = n x^(n − 1)
Works for any constant exponent n, including negative and fractional ones, so and .
Product and quotient rules
Plain-text formula: (uv)′ = u′v + uv′, (u/v)′ = (u′v − uv′)/v^2
Use these when two expressions that both depend on x are multiplied or divided. A constant factor can simply be kept in front.
Chain rule
Plain-text formula: (d/(dx))f(g(x)) = f′(g(x)) · g′(x)
Differentiate the outer function at the inner expression, then multiply by the derivative of the inner expression. For example .
Tangent line at x = a
Plain-text formula: y = f(a) + f′(a) (x − a)
The line through the point (a, f(a)) with slope f′(a). It is the best straight-line approximation of f close to a.
The derivative is itself a function: its value at any x is the slope of the graph of f there, or the instantaneous rate of change of f. If , then near x = 2 the function rises about 4 units for each unit increase in x.
Answers can be written in many equivalent forms. The calculator combines like terms and powers but does not expand or factor everything, so is the same as . To compare with a textbook answer, evaluate both at a test point.
If the derivative is not defined at your point, look at the graph there: a corner (|x| at 0), a cusp, a vertical tangent (the cube root at 0) or a break in the function all prevent a single slope.
Work from the outside of the expression inward. 1. Rewrite roots and fractions as powers where it helps: and . 2. Split sums and differentiate each term separately. 3. Find the outermost operation: a product needs the product rule, a quotient the quotient rule, and a function of an inner expression the chain rule. 4. Use the basic derivatives in the tables below for the innermost pieces. 5. Simplify the result.
The calculator follows the same order, so each line of its steps matches one of these moves. For example is a product, so .
Before the shortcut rules, the derivative is defined as a limit. For the difference quotient is .
As this tends to , so , the same answer the power rule gives at once. The calculator applies the rules directly, which agrees with the limit definition for every differentiable function and keeps the steps short. To practise evaluating limits themselves, use the limit calculator.
Every derivative the calculator finds is built from these rules and the basic derivatives in the next table.
| Rule | Formula | Example |
|---|---|---|
| Constant | ||
| Power | ||
| Constant multiple | ||
| Sum and difference | ||
| Product | ||
| Quotient | ||
| Chain | ||
| Exponential |
Use these with the chain rule when the input is an expression rather than x alone: .
Read from right to left, the table lists antiderivatives: integrates to . The integral calculator works in that direction, step by step.
| Function | Derivative |
|---|---|
| for | |
Enter a point a with the first derivative selected to use the page as a tangent line calculator. The tangent line touches the graph at (a, f(a)) with slope f′(a). The normal line passes through the same point at a right angle to it, so its slope is .
For at a = 4: and , so the tangent line is and the normal line is . For the slope of a straight line through two points, use the slope calculator.
The second derivative is the derivative of the derivative. Where the graph is concave up (it bends like a cup) and where it is concave down. Points where it changes sign are inflection points. In physics, if f is position, f′ is velocity and f″ is acceleration.
The calculator goes up to the fifth derivative, differentiating once per pass and showing the steps of each pass. For the fourth derivative is . Higher derivatives appear in Taylor series: .
Find f′(x), the slope at x = 2 and the equation of the tangent line there.
Answer: , the slope at x = 2 is exactly 4, and the tangent line is y = 4x − 3.
Yes. It is free with no sign-up and no daily limit, and the full step-by-step working is shown for every function, with the rule named on each line. It runs in your browser.
No. It differentiates explicit functions of one variable, x. Implicit differentiation (of an equation such as ) and partial derivatives of functions of several variables are not supported. For an implicit curve, solve for y where you can, or differentiate both sides by hand and use the calculator to check each piece.
Neither the power rule nor the exponential rule applies, because both the base and the exponent change. Take logs: , so and . The calculator uses the general power rule , which gives the same result.
Because the standard rules depend on it: is true only when x is in radians. In degrees an extra factor appears, . Enter sin(pi x/180) if your variable is in degrees.
Derivatives can be simplified in several equivalent ways, such as factored or expanded. Evaluate both forms at the same x (enter it as the point) and compare the numbers; equal values at a few points are a good sign the forms agree.
The calculator evaluates f(a) and f′(a) and substitutes them into , then rearranges to y = mx + b. When a and every operation are rational, the slope and intercept are exact fractions.
No. Step functions jump at their break points, so they have no derivative there, and their derivative is 0 everywhere else. The calculator says so instead of returning a misleading formula.
An independent estimate of the derivative at your point from central differences refined by Richardson extrapolation, for first and second derivatives. It normally agrees with the formula to about 10 digits; a mismatch points to a function that is not smooth there.
It measures how the slope changes. A positive value means the graph is concave up, a negative value concave down. At a critical point (f′ = 0), a positive second derivative indicates a local minimum and a negative one a local maximum.
Antiderivatives with named steps, plus definite and improper integrals with an error estimate and area graph.
Two-sided, one-sided and infinite limits with steps, a table of values and the indeterminate form named.
Tables of values for one or two functions with exact fractions, roots, turning points, a graph and CSV.
Slope from two points, an equation or rise and run, as a fraction, angle and percent grade, with steps.
Free worked solutions for equations, systems, inequalities, factoring, derivatives, integrals, limits and matrices.
Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.
Learn more: For derivatives, integrals and limits inside the full calculator, read the calculus functions manual. What steps and graphs add explains how to use the worked steps to check your own work.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?