Calculus Calculator: Solve Derivatives & Integrals

Derivative and Integral Calculator

Evaluate a cubic polynomial, its first and second derivatives at x, and its definite integral between two bounds. Coefficients may be zero, allowing the same tool to check quadratic, linear and constant examples.

Define the polynomial and evaluation points

Function value f(x)0
First derivative f′(x)2
Second derivative f″(x)6
Definite integral−1.33

Read the four outputs as function height, slope, curvature and signed accumulation. Each needs its own units and interpretation.

The cubic polynomial in this calculator

The input represents f(x) = ax³ + bx² + cx + d. Each coefficient controls a different power of x. Entering zero removes that term, so a = 0 creates a quadratic or lower-degree function without needing another interface. Negative and decimal coefficients are accepted. The tool evaluates the polynomial and its derivatives at the chosen x, then evaluates an antiderivative at the upper and lower bounds to obtain a signed definite integral.

This fixed form is intentional. A general computer algebra system must parse variables, brackets, products, compositions and many families of functions. Here, every coefficient has a labelled field and the implemented rule is visible. That makes the page useful for checking hand calculations, exploring how coefficients change a curve, and verifying spreadsheet formulas without implying that arbitrary symbolic notation is supported.

First derivative as a local rate of change

Applying the power rule gives f′(x) = 3ax² + 2bx + c. The constant d disappears because changing x does not change a constant. At the selected x, the derivative is the slope of the tangent line. A positive value means the function is increasing locally, a negative value means it is decreasing locally, and zero marks a stationary point that needs more investigation.

The derivative carries units. If x is seconds and f is metres, f′ is metres per second. If f is rand cost and x is units produced, the derivative has rand per unit. Interpreting it as a percentage or total without checking dimensions can be misleading. The calculator reports a number because the fields do not know your physical or economic units; attach them in your written solution.

Second derivative and curvature

Differentiating again gives f″(x) = 6ax + 2b. The second derivative describes how the first derivative changes. A positive value indicates concave-up behaviour at that point, while a negative value indicates concave-down behaviour. Where the second derivative changes sign, the curve may have an inflection point. A zero value by itself is not enough; behaviour on either side must be checked.

At a stationary point, the second derivative can help classify a local extremum. A positive second derivative suggests a local minimum and a negative value suggests a local maximum, provided the usual smoothness conditions hold. If it is zero, the test is inconclusive. Inspect the original function, higher derivatives or nearby values rather than forcing a classification.

Definite integral and bound order

An antiderivative of the polynomial is F(x) = ax⁴/4 + bx³/3 + cx²/2 + dx. The definite integral from the lower bound L to the upper bound U is F(U) − F(L). This is a signed accumulation. Regions where the function lies below the horizontal axis subtract from regions above it. It is not automatically the total geometric area between the graph and the axis.

Bound order matters. Integrating from 2 down to 0 returns the negative of the integral from 0 to 2. The calculator preserves the order entered instead of silently sorting the numbers. If you need total area, find the real roots within the interval, split the integral wherever the sign changes and add the absolute sizes of the pieces. That task is different from evaluating one signed integral.

Checking a worked polynomial

With the defaults, f(x) = x³ − 3x² + 2x. At x = 2, the function value is zero because 8 − 12 + 4 = 0. The first derivative is 3x² − 6x + 2, which gives 2 at x = 2. The second derivative is 6x − 6, which gives 6. These separate results answer different questions: curve height, slope and curvature.

For the integral from 0 to 2, evaluate x⁴/4 − x³ + x² at both bounds. The lower value is zero and the upper value is 4 − 8 + 4, which is zero; if coefficients or defaults are adjusted, recompute rather than relying on a memorised display. A manual substitution line is a useful audit trail because a mistyped sign in a coefficient can otherwise look like a calculator disagreement.

Numerical precision and sensible reporting

JavaScript represents ordinary numbers using binary floating-point arithmetic. Many decimal fractions cannot be stored exactly, so a value mathematically equal to zero can sometimes appear as a tiny number close to zero in more complex computations. The display limits the number of shown decimal places, but users should still interpret extremely small residuals in light of input precision and algebraic expectation.

Do not report eight decimal places merely because the page can display them. Experimental coefficients derived from measured data carry uncertainty, and a fitted cubic is only a model within its applicable range. In finance, physical science and engineering, the selected variable and units must also be documented. For proofs, symbolic manipulation or high-stakes design, show the derivation and use software or methods required by the relevant course, standard or profession.

Limits of the cubic interface

The page does not differentiate products of separate functions, trigonometric expressions, logarithms or implicit relations. It does not find all stationary points automatically, plot the curve, or decide whether a model is appropriate. It also does not perform numerical integration for observed data. Those require different inputs and validation rules.

Use the algebra calculator if the main question is solving a quadratic equation. Use a statistical package for regression and uncertainty, and a computer algebra system where symbolic steps are required. This calculator is strongest as a transparent arithmetic companion to the power rule and the fundamental theorem of calculus for one polynomial family.

Checking with a graph

A graph can reveal whether the signs and approximate values are sensible, but its viewing window can hide turning points or intercepts. Plot the exact coefficients, mark the evaluation point, and compare the visible tangent direction with the derivative sign. For an integral, shade the requested interval and note which regions sit below the axis. The graph supports the numerical work; it does not change the entered bounds or the signed-area convention.

Questions that affect this result

Can I enter a quadratic function?

Yes. Set the cubic coefficient a to zero. You can similarly create a linear or constant function by setting the higher-order coefficients to zero.

Why can the definite integral be negative?

A definite integral is signed accumulation. Portions of the function below the horizontal axis contribute negatively, and reversing the bounds also reverses the sign.

Does f′(x) equal the average slope over the interval?

No. The displayed derivative is the instantaneous local rate at the selected x. Average slope between two points is the change in function value divided by the change in x.

What does a zero second derivative mean?

It means the curvature test is inconclusive at that point. Check values on both sides or use other analysis before calling it an inflection point.

Can this show the working steps for any expression?

No. It evaluates the published cubic formulas numerically. It does not parse or rearrange arbitrary symbolic expressions.

References

Scroll to Top