diff, integral, limit and sum give the same answers as numbers.Jump to: derivative formulas, integral formulas, limits, series, worked examples or calculator syntax. To keep the tables as a formula sheet, print this page: the calculator, site menus and page navigation are left out of the printout.
Check a formula in one click: power rule, chain rule, integration by parts, Fundamental Theorem and sin x / x. Each tool shows the rule it used at every step.
Derivative formulas
A derivative is the slope of a function at a point. Every rule below is the derivative with respect to x; c and n are constants, and u and v are functions of x. The last column is what to type in the scientific calculator to check the rule at one point.
| Rule | Formula | Example | Check |
|---|---|---|---|
| Constant | diff(7, x, 1) = 0 | ||
| Power rule | diff(x^3, x, 2) = 12 | ||
| Constant multiple | diff(5x^2, x, 1) = 10 | ||
| Sum and difference | diff(x^2 + x, x, 1) = 3 | ||
| Product rule | diff(x^2 sin(x), x, 1) = 2.223244275 | ||
| Quotient rule | diff(sin(x)/x, x, π) = −0.3183098862 | ||
| Chain rule | diff(sin(3x), x, 0) = 3 | ||
| Exponential | , | diff(2^x, x, 3) = 5.545177444 | |
| Logarithm | , | at 2 is | diff(ln(x), x, 2) = 0.5 |
| Square root | At : | diff(sqrt(x), x, 4) = 0.25 | |
| Sine and cosine | , | At : | diff(sin(x), x, π/3) = 0.5 |
| Tangent | At 0: | diff(tan(x), x, 0) = 1 | |
| Secant and cosecant | , | At 0: | diff(sec(x), x, 0) = 0 |
| Cotangent | At : | diff(cot(x), x, π/2) = −1 | |
| Inverse sine | At 0.5: | diff(asin(x), x, 0.5) = 1.154700538 | |
| Inverse tangent | At 1: | diff(atan(x), x, 1) = 0.5 |
The inverse cosine is the negative of the inverse sine rule: . For the derivative as a formula, with each rule named, use the derivative calculator; it also gives second to fifth derivatives.
Integral formulas
An indefinite integral, or antiderivative, reverses differentiation, so every formula here can be checked by differentiating the right-hand side. Add the constant C to every indefinite integral. The check column evaluates a definite integral, which by the Fundamental Theorem equals F(b) − F(a).
| Integral | Formula | Check | Exact value |
|---|---|---|---|
| Power rule () | integral(x^2, x, 0, 3) = 9 | ||
| Reciprocal | integral(1/x, x, 1, e) = 1 | ||
| Exponential | integral(e^x, x, 0, 1) = 1.718281828 | ||
| Exponential, base a | integral(2^x, x, 0, 1) = 1.442695041 | ||
| Natural log | integral(ln(x), x, 1, e) = 1 | ||
| Sine | integral(sin(x), x, 0, π) = 2 | ||
| Cosine | integral(cos(x), x, 0, π/2) = 1 | ||
| Secant squared | integral(sec(x)^2, x, 0, π/4) = 1 | ||
| Arctangent form | integral(1/(1+x^2), x, 0, 1) = 0.7853981634 | ||
| Arcsine form | integral(1/sqrt(1-x^2), x, 0, 0.5) = 0.5235987756 |
| Rule | Formula | Example |
|---|---|---|
| Fundamental Theorem of Calculus | , where | |
| Substitution | , with | |
| Integration by parts | ||
| Reversing the bounds | integral(x^2, x, 3, 0) = −9 | |
| Improper integral | for | integral(1/x^2, x, 1, inf) = 1 |
Limit laws and special limits
When the limits of f and g at a both exist, the limit of a sum, difference, constant multiple or product is the sum, difference, multiple or product of the limits, and the limit of f/g is the quotient of the limits as long as the limit of g is not 0. A 0/0 or ∞/∞ form needs one of the results below.
| Limit | Value | Check |
|---|---|---|
limit(sin(x)/x, x, 0) = 1 | ||
limit((1 - cos(x))/x, x, 0) = 0 | ||
limit((e^x - 1)/x, x, 0) = 1 | ||
limit((1 + 1/n)^n, n, inf) = 2.718281828 | ||
limit(ln(x)/x, x, inf) = 0 | ||
| L’Hôpital’s rule (0/0 or ∞/∞) | limit((x^2 - 4)/(x - 2), x, 2) = 4 |
Series and sum formulas
| Series | Formula | Check |
|---|---|---|
| Sum of the first n integers | sum(k, k, 1, 100) = 5050 | |
| Sum of squares | sum(k^2, k, 1, 10) = 385 | |
| Sum of cubes | sum(k^3, k, 1, 10) = 3025 | |
| Geometric series () | sum(0.5^k, k, 0, 50) = 2 | |
| Basel problem | sum(1/k^2, k, 1, 1000) = 1.643934567 | |
| Taylor series of | sum(1/k!, k, 0, 20) = 2.718281828 |
The calculator adds a finite number of terms, so an infinite series is checked with a large upper bound. The Basel sum to 1,000 terms is 1.643934567, still 0.001 short of = 1.644934067, because that series converges slowly. The summation calculator shows partial sums term by term.
Result
f′(x), the first derivative
2x·sin(x) + x²·cos(x)
- f′(1)Slope of the graph at this point
- f(1)
- Tangent line at x = 1
- Normal line (perpendicular)
- Numerical check (central differences)Agrees with the exact formula
- 2.22324428
- Rules used
- Product rule, power rule, standard derivatives
The first derivative of f(x) = x²·sin(x) is f′(x) = 2x·sin(x) + x²·cos(x). At x = 1 the slope of the graph is 2.223244275, so the tangent line there is y = 2.223244275x − 1.381773291.
Trigonometric functions use radians. For an angle in degrees, write sin(pi x/180) instead of sin(x).
Step-by-step working (7 steps)
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 = 1
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).
This is the derivative calculator, started with this page’s next example. Its own page adds more presets, the formulas and worked examples.
Worked examples
Product rule: the slope of x² sin x at x = 1
Let and , so and . Then , and at that is . Typing diff(x^2 sin(x), x, 1) gives 2.223244275, the same value to nine decimal places. Open it in the derivative calculator.
Chain rule: the derivative of e^(−x²)
The outer function is and the inner one is , so . At this is , which matches diff(e^(-x^2), x, 1). See each step.
Integration by parts, checked by differentiating back
For choose and , so and . Then . To check it, differentiate the answer with the product rule: , the integrand. By the Fundamental Theorem, , and integral(x e^x, x, 0, 1) returns 1. Open the antiderivative.
Substitution: a definite integral with u = x²
In , let , so and the bounds become 0 and . The integral is . Check it.
How to use calculus on a calculator
The scientific calculator has five calculus functions: diff, integral, limit, sum and prod. Each takes the expression, the name of the variable, and then the point or the bounds. They return a number, not a formula; for the formula with steps, use the math solver or the dedicated calculators.
| Function | Meaning | Example | Result |
|---|---|---|---|
diff(f, x, a) | Derivative of f with respect to x at x = a | diff(x^3, x, 2) | 12 |
integral(f, x, a, b) | Definite integral of f from a to b | integral(x^2, x, 0, 3) | 9 |
limit(f, x, a) | Two-sided limit as x approaches a | limit(sin(x)/x, x, 0) | 1 |
limit(f, x, a, 1) | Right-hand limit (use −1 for the left-hand limit) | limit(abs(x)/x, x, 0, 1) | 1 |
sum(f, k, a, b) | f summed for k = a, a + 1, …, b | sum(k^2, k, 1, 10) | 385 |
prod(f, k, a, b) | f multiplied for k = a, a + 1, …, b | prod(k, k, 1, 6) | 720 |
The second argument names the variable, and it can be any name: integral(t^2, t, 0, 3) is also 9. That variable exists only inside the function, so it does not change a value you have stored under the same name. The aliases derivative, integrate, lim, Σ, product and Π also work.
Calculus always uses radians
Inside diff, integral and limit, trigonometric functions use radians whatever the angle unit setting, because the formulas assume it: the derivative of sin x is cos x only when x is in radians. So even in degree mode, diff(sin(x), x, 0) = 1 and integral(sin(x), x, 0, π) = 2. sum and prod are ordinary repeated arithmetic and follow the current angle unit. See radians vs degrees for why.
Derivatives: diff
diff(f, x, a) returns the slope of f at the single point x = a. It uses central differences at several step sizes combined by Richardson extrapolation, which typically gives 10 to 12 correct significant digits. If the function is undefined near the point, for example diff(sqrt(x), x, 0), you get an error rather than a misleading slope.
Definite integrals: integral
integral(f, x, a, b) uses adaptive Gauss–Kronrod quadrature: a 15-point Kronrod rule with an embedded 7-point Gauss rule estimates the error on each piece, and the piece with the largest error is split until the total error estimate is about 10⁻¹¹ of the result. Either bound can be inf or -inf, so integral(exp(-x^2), x, -inf, inf) gives 1.772453851, which is √π. When the integrand is undefined inside the interval or the integral diverges, as with integral(1/x, x, 1, inf), you get an error instead of a number.
Limits: limit
limit(f, x, a) approaches a from both sides with steadily smaller steps, extrapolates the sequence of values, and checks that the two sides agree. Add a fourth argument of 1 for the limit from the right or −1 for the limit from the left; the point can be inf or -inf. limit(1/x^2, x, 0) gives ∞, and limit(abs(x)/x, x, 0) reports that the left-hand and right-hand limits are different, while limit(abs(x)/x, x, 0, -1) gives −1.
Sums and products: sum and prod
sum and prod need whole-number bounds and allow up to 1,000,000 terms. Sums use compensated (Kahan) summation, which keeps rounding errors from piling up over many terms. A product example is prod(1 - 1/k^2, k, 2, 100) = 0.505.
How far to trust a numerical answer
These methods are accurate for smooth functions. Functions that oscillate extremely fast, have a spike narrower than the sampling, or change behavior very close to the point can mislead any numerical method. When a result matters, check it with a graph in the graphing calculator or with the integral calculator and limit calculator, which show their working.