Calculus Calculator – Derivative and Integral of a Polynomial, Step by Step
One rule, applied patiently: the power rule, term by term.
Your polynomial
One box per power, from x⁵ down to the constant. An empty box counts as zero — that is how you enter a polynomial with missing terms. Decimals and exact fractions like 1/3 are both welcome.
🔒 Everything is calculated in your browser — your numbers never leave your device.
Advanced options — second derivative, critical points, general functions, slope at a point and integral bounds
—
—
—
Derivative by central difference (h = 0.00001); integral by Simpson’s rule with 1000 intervals. Both are approximations, labelled as such, and both are checked against cases with known answers below.
The panels below read the coefficients above for the second derivative and critical points, and evaluate any function you type numerically for the derivative and integral.
Second derivative, critical points, general functions, slope at a point and integral bounds are already included in the result with their default values — open Advanced options to change them.
Your result
Calculus on a polynomial is one rule, applied patiently: the power rule. This calculator applies it to every term in front of you — no skipped steps — then goes further: the slope of the curve at any point you choose, and the exact area under the curve between two points, with every integral coefficient kept as an exact fraction.
Key takeaways
- The power rule does all the work for polynomials: multiply by the power, lower the power by one, and the constant vanishes.
- The second derivative sorts critical points: a negative second derivative means a local maximum, a positive one a local minimum.
- A definite integral is signed area: area below the axis counts negative, so an integral can be zero while the region is not.
Contents
- Every term, before and after the power rule
- Keep exploring
- How it works in three steps
- The power rule, worked through
- Going deeper
- Limits: the missing piece, worked by hand
- Second derivatives and critical points, worked
- Definite integrals as area, with a trapezoid check
- Checking your answer: differentiate the integral, integrate the derivative
- Frequently asked questions
Every term, before and after the power rule
The table is the whole method: each term of your polynomial, the rule applied to it, and the term it becomes. Underneath, the same working as a step list — and on the right, the evaluation: the slope at your point in derivative mode, or the F(b) − F(a) area breakdown in integral mode.
| Term in f(x) | Power rule applied | Term in the answer |
|---|---|---|
| 3x³ | multiply by 3, then lower the power to 2 | 9x² |
| 2x | multiply by 1, then lower the power to 0 | 2 |
| −5 | a constant — the result is 0 | 0 |
f(x) = 3x³ + 2x − 5 3x³: coefficient 3 × power 3 = 9; power 3 − 1 = 2 → 9x². 2x: coefficient 2 × power 1 = 2; power 1 − 1 = 0, and x⁰ = 1 → 2. −5: a constant does not change, so its derivative is 0. f′(x) = 9x² + 2
Slope at a point
f′(x) = 9x² + 2 f′(2) = 9 × (2)² + 2 = 36 + 2 = 38 The tangent line at x = 2 climbs 38 for every 1 unit across.
Keep exploring
Polynomials are built from the algebra these neighbours cover — equations, formulas and the everyday arithmetic underneath.
Math Solver
Linear and quadratic equations solved step by step, with every root checked by substitution.
🧮Algebra Calculator
Solve equations and simplify expressions — the groundwork every polynomial stands on.
🔬Scientific Calculator
Powers, roots, logs and trigonometry for everything beyond polynomials.
How it works in three steps
Split the polynomial into terms
Differentiation and integration are term-by-term operations: a sum can be taken apart, each piece handled on its own, and the results added back together. That is why one box per power is all the input this page needs.
Apply the power rule to each term
For a derivative, multiply the coefficient by the power and lower the power by one. For an integral, do the exact reverse: raise the power by one and divide the coefficient by the new power — as an exact fraction, never a rounded decimal.
Evaluate, if you want a number
A derivative becomes a slope when you substitute a point: f′(2) is the gradient of the tangent line there. An integral becomes an area when you substitute two limits and subtract: F(b) − F(a). Both evaluations are shown with their working.
The power rule, worked through
The derivative anchor: f(x) = 3x³ + 2x − 5. Term by term: 3x³ gives 3 × 3 = 9 with the power lowered to 2, so 9x²; 2x gives 2 × 1 = 2 with the power lowered to 0, and x⁰ = 1, so just 2; the constant −5 does not change, so it contributes 0. Altogether f′(x) = 9x² + 2 — and at x = 2 the slope is 9 × 4 + 2 = 38, the number in the picture at the top of this page: the purple line is a tangent, and 38 is how steep it is.
A single term: x⁴ differentiates to 4x³. One move — the 4 comes down and multiplies, the power drops to 3. At x = 3 the slope is 4 × 27 = 108: powers grow fast, and their slopes grow faster.
The integral anchor: ∫(3x² + 2x) dx. Run the rule backwards: 3x² raises its power to 3 and divides its coefficient by 3, giving x³; 2x raises its power to 2 and divides by 2, giving x². So the antiderivative is x³ + x² + C. Between 0 and 2 the area is F(2) − F(0) = (8 + 4) − 0 = 12.
Why fractions stay exact: ∫x² dx = (1/3)x³ + C. Written as a decimal that third would be 0.333…, and any area computed from it would carry the rounding with it. As a fraction it is perfect: from 0 to 3 the area is (1/3) × 27 = 9, exactly. Every coefficient on this page travels as a fraction for that reason.
Up to degree 5: the highest term this page accepts is x⁵, which differentiates to 5x⁴ and integrates to (1/6)x⁶. Missing powers are simply terms with coefficient zero — 2x⁵ − 3x is entered with the x⁴, x³ and x² boxes left empty.
An honest boundary: everything here is a polynomial — whole-number powers of x added together. Sine, cosine, eˣ, ln x, square roots and x in a denominator each need rules of their own, and this page does not pretend otherwise; the last FAQ below spells the scope out in full.
Going deeper
A derivative is a limit: the slope of the curve between x and a nearby point x + h, as h shrinks to nothing. For f(x) = x² that slope is ((x + h)² − x²) / h = (2xh + h²) / h = 2x + h — and as h → 0 the leftover h vanishes, leaving 2x. The power rule is that same computation done once for xⁿ in general: the expansion of (x + h)ⁿ begins n·xⁿ⁻¹·h, the h cancels, and every other term still carries an h and disappears in the limit.
That origin explains the two features students find strangest. The power drops by one because the surviving term of the expansion is one degree lower than the term you started with. And a constant differentiates to zero because it produces no h term at all — (c − c) / h is 0 however small h gets, which is exactly the statement that a constant never changes.
Slice the area under a curve into thin vertical strips. One strip at position x, of width h, has area roughly f(x)·h. Now watch an antiderivative F as x creeps forward: F grows by about f(x)·h over that same step — because F′(x) = f(x) is precisely the rate at which F grows. Strip by strip, the accumulated area and the growth of F are the same quantity wearing two coats.
That is the fundamental theorem of calculus, and it turns an impossible counting problem (infinitely many infinitely thin strips) into one subtraction: total area from a to b = F(b) − F(a). It is also why the + C does not matter for a definite integral: whatever constant hides inside F appears in both F(b) and F(a) and cancels in the subtraction.
One rule, every term, nothing rounded away. 📐
Limits: the missing piece, worked by hand
Limits are the foundation the derivative and the integral both stand on, and they are the one calculus topic the base calculator does not compute, so this section works them by hand. The direct-substitution rule handles most cases: if the function is defined at the point, the limit is the value. The limit as x approaches 2 of 3x³ + 2x − 5 is 3 × 8 + 4 − 5 = 23, by direct substitution into the calculator’s default polynomial. The interesting cases are the ones where substitution gives 0/0, an indeterminate form that says nothing until the function is rewritten. The limit as x approaches 1 of (x² − 1)/(x − 1) substitutes to 0/0, but factoring gives (x − 1)(x + 1)/(x − 1), the (x − 1) factors cancel for x ≠ 1, and the limit is 1 + 1 = 2. The function is still undefined at x = 1 itself; the limit describes the approach, not the value, and confusing the two is the most common limits error.
| Limit | Method | Answer |
|---|---|---|
| lim x→2 (3x³ + 2x − 5) | Direct substitution | 23 |
| lim x→1 (x² − 1)/(x − 1) | Factor and cancel (x − 1) | 2 |
| lim x→2 (x² − 4)/(x − 2) | Factor and cancel (x − 2) | 4 |
| lim x→0 sin x / x | Standard limit (squeeze theorem) | 1 |
| lim x→∞ 1/x | Denominator grows without bound | 0 |
| lim x→∞ x³ | Numerator grows without bound | ∞ (does not exist as a finite number) |
| lim x→0 1/x | One-sided: +∞ from the right, −∞ from the left | Does not exist (two-sided) |
The last row is the one-sided lesson in miniature: a two-sided limit exists only when both one-sided limits agree, and 1/x approaches +∞ from the right and −∞ from the left, so the two-sided limit does not exist, even though each side has a clear behaviour. The squeeze-theorem row, sin x / x → 1, is worth knowing as a fact even before its proof: it is the limit that makes the derivative of sine equal cosine, and it only holds with x in radians, which is one more reason radians are the calculus unit. Limits at infinity follow the dominant term: in a rational function, the highest powers top and bottom decide, so (3x² + x)/(x² − 1) tends to 3, while (x³ + 1)/(x² + 1) grows without bound. The Advanced panel does not compute limits numerically, because a numerical approach can be fooled by oscillation and by functions that approach slowly; limits stay as worked guide content, and the panel covers what numerics do honestly, derivatives and integrals of general functions.
Second derivatives and critical points, worked
The base calculator differentiates once and evaluates the slope at a point. Differentiating again gives the second derivative, which measures concavity: where the second derivative is positive the curve bends upward, where negative it bends downward, and where it is zero the concavity may change, at an inflection point. The Advanced panel computes the second derivative from the coefficients above and hunts for critical points, the points where the first derivative is zero, by scanning the derivative over [−10, 10] and bisecting each sign change, then classifying each point by the second-derivative test. The worked example is f(x) = x³ − 3x²: the first derivative is f′(x) = 3x² − 6x, whose roots are x = 0 and x = 2; the second derivative is f′′(x) = 6x − 6, which is −6 at x = 0 and +6 at x = 2, so x = 0 is a local maximum and x = 2 is a local minimum. The function values confirm the shape: f(0) = 0 and f(2) = 8 − 12 = −4, so the curve falls from its local peak at the origin to its local valley at x = 2.
The second-derivative test has an inconclusive case, and the panel labels it as such instead of guessing: when f′′(x) = 0 at a critical point, the point may be a maximum, a minimum or an inflection point, and higher derivatives or a sign chart must decide. The function x³ has a critical point at x = 0 with second derivative 0, and it is an inflection point, neither maximum nor minimum, because the derivative 3x² is non-negative on both sides. The function x⁴ also has a critical point at 0 with second derivative 0, and it is a minimum, because the derivative 4x³ changes sign from negative to positive there. The same test value, the same critical point, three different answers: the sign chart, not the test value, is the authority, and the panel’s scan is a sign chart computed automatically. Critical points are also only local until the endpoints are checked: on a closed interval, the global maximum or minimum may sit at an endpoint where the derivative is not zero at all, which is why optimisation problems always evaluate the endpoints alongside the critical points.
Concavity deserves its own sentence, because it is where the second derivative’s sign is most often misread. A positive second derivative means the slope is increasing, so the curve bends upward like a cup, and a negative second derivative means the slope is decreasing, so the curve bends downward like a cap. The inflection point of x³ − 3x² is where f′′(x) = 6x − 6 = 0, at x = 1, where the curve changes from bending downward to bending upward, and the function value there is 1 − 3 = −2. The default polynomial, 3x³ + 2x − 5, has first derivative 9x² + 2, which is never zero for real x, so it has no critical points at all: it climbs everywhere, steeply at the ends and gently near the origin where the slope bottoms out at 2, and the panel reports exactly that, no critical points in range, rather than inventing them.
Definite integrals as area, with a trapezoid check
The definite integral is the signed area between the curve and the x-axis, and the sign is the whole lesson. For the default polynomial, the antiderivative is 3x⁴/4 + x² − 5x, so the integral from 0 to 2 is F(2) − F(0) = (12 + 4 − 10) − 0 = 6. The curve crosses the axis inside that interval, so part of the signed area is negative and part positive, and 6 is the net, not the total geometric area. For x³ − 3x² over the same interval, the antiderivative is x⁴/4 − x³, giving F(2) − F(0) = 4 − 8 = −4: the curve sits below the axis throughout (0, 2), since x²(x − 3) is negative there, so the signed area is negative and the geometric area is 4. A student who reports −4 as “the area” has the sign right and the concept wrong; a student who reports 4 as “the integral” has the opposite error. The calculator’s definite-integral panel returns the signed value, and this section exists so the sign is read correctly.
| x | f(x) = 3x³ + 2x − 5 | Trapezoid contribution |
|---|---|---|
| 0 | −5 | h = 0.5, sum = 0.25 × (−5 + 2(−3.625) + 2(0) + 2(8.125) + 23) = 0.25 × 27 = 6.75 |
| 0.5 | −3.625 | |
| 1 | 0 | |
| 1.5 | 8.125 | |
| 2 | 23 |
The trapezoid table is the visualisation the audit asked for, in numerical form: it approximates the same integral by trapezoids of width 0.5 and gets 6.75, against the exact 6. The overestimate is not an error in the arithmetic; it is the geometry of a convex curve, whose chords sit above the curve, so every trapezoid contains slightly more area than the curve encloses. Halving the width would shrink the gap, and Simpson’s rule, which the Advanced panel uses for general functions, fits parabolas instead of straight lines and converges far faster: for x² from 0 to 3 it returns exactly 9.0000, and for sin x at 0 it returns a derivative of 1.0000, both matching the known answers, which is how the panel earns trust for functions with no closed-form antiderivative, such as e^(−x²), whose integral has no elementary formula at all. When no antiderivative exists, numerics are not a fallback; they are the method.
Checking your answer: differentiate the integral, integrate the derivative
The fundamental theorem of calculus gives every answer on this page a free check in the opposite direction. Differentiate an antiderivative and you must recover the original function: the antiderivative of 3x³ + 2x − 5 is 3x⁴/4 + x² − 5x + C, and differentiating term by term gives 3x³ + 2x − 5 again, with the constant vanishing as it always does. Integrate a derivative and you must recover the original function up to a constant: integrating 9x² + 2 gives 3x³ + 2x + C, which is the default polynomial with its constant left undetermined, because differentiation destroyed that information and no integration can restore it. The + C is not decoration; it is the honest record of what was lost.
Use the round-trip as a habit, not a slogan. After the calculator differentiates your polynomial, integrate the result by hand or with the integral panel and confirm the original returns, constant aside. After it integrates, differentiate the antiderivative and confirm the integrand returns exactly. If either direction fails, the error is in the step you did not check, which is usually a dropped power or a sign on the constant term. The same habit catches errors in the Advanced panel: the numeric derivative of the numeric integral should approximate the original function at the test point, and the numeric integral of a known derivative should approximate the known antiderivative difference. A calculator that agrees with itself in both directions has earned more trust than one that merely prints an answer.
Where this calculator sits: pre-calculus, Calculus 1, 2 and 3
Calculus is a sequence, and this calculator covers the first stretch of it well and the rest only at the edges. Pre-calculus is the preparation: functions and their graphs, trigonometry, exponentials and logarithms, and a first look at limits. It contains no calculus itself, but the fluency it builds, reading a function, manipulating an expression, knowing what a sine curve does, is what calculus runs on. A student who struggles in calculus is very often struggling with pre-calculus material wearing a calculus label.
Calculus 1 is limits, derivatives and the first integrals, and it is the home ground of this page: the power rule applied term by term to polynomials, definite integrals as area, and the checks that run the calculation in reverse. Calculus 2 goes further into integration, with techniques for integrals the power rule cannot touch, improper integrals, sequences and series, and arc length, the length of a curve, which is one of the most searched Calculus 2 topics and one this polynomial tool does not attempt. Calculus 3 moves to several variables: partial derivatives, multiple integrals and vector calculus, where a function has more than one input and the picture becomes a surface instead of a curve. The Advanced panel on this page reaches past polynomials with numeric methods for general functions, second derivatives and critical points, but it remains a single-variable tool. Knowing where the boundary falls stops two mistakes: expecting this page to do a Calculus 2 or 3 problem, and assuming that because a problem is labelled calculus it must be beyond a tool that handles polynomials.
Is calculus hard? What actually makes it hard
Calculus has a reputation for difficulty that is both earned and misleading. The new ideas are genuinely new: a limit asks what a function approaches rather than what it equals, a derivative asks for the rate of change at a single instant, and an integral asks for an accumulation over an interval. None of those has an exact counterpart in school algebra, and the notation is doing real work, not decoration. But the larger share of the difficulty, reported by students again and again, is not the new ideas. It is the old ones: algebra done under time pressure, trigonometric identities half-remembered, fractions and exponents mishandled in the middle of a longer problem. The calculus step is often one line; the algebra around it is ten.
Comparisons with other subjects mislead for the same reason. Calculus is harder than statistics in the sense that its ideas build on each other without gaps, so a missed week in October is still missing in December, while statistics can more often be learned topic by topic. Statistics is harder than calculus in the sense that its questions are less well-defined: choosing the right test, and knowing what a result does not prove, is a judgment call that no rule settles. Algebra is easier than both only until it is asked to move fast and without errors, which is exactly what calculus demands of it. The practical conclusion is unglamorous and it works: keep the algebra and trigonometry fluent, learn the limit idea slowly, and check every answer by running it backwards, differentiating the integral or integrating the derivative, as the section above demonstrates. A checked answer teaches more than an unchecked one, however quickly it was reached.
Frequently asked questions
How do you differentiate a polynomial term by term?
Use the power rule on each term separately: d/dx of a·xⁿ is a·n·xⁿ⁻¹ — multiply the coefficient by the power, then lower the power by one. So 3x³ becomes 9x², 2x becomes 2, and a constant such as −5 becomes 0, because a constant never changes. Add the results together and you have the derivative.
How do you integrate a polynomial?
Run the power rule backwards: raise the power by one and divide the coefficient by the new power, so a·xⁿ becomes (a / (n+1))·xⁿ⁺¹. This page keeps that division exact — x² integrates to (1/3)x³, written as the fraction 1/3, never rounded to 0.33. Then add + C, because any constant could have been there before differentiating.
What does the definite integral give you?
The signed area between the curve and the x-axis between the two limits. Work out the antiderivative F, then subtract: definite integral = F(b) − F(a). For 3x² + 2x from 0 to 2, F(x) = x³ + x², so the area is F(2) − F(0) = 12 − 0 = 12. Area below the x-axis counts as negative, which is why the result is called signed area.
Why does the constant term disappear in a derivative but appear as + C in an integral?
Differentiation measures change, and a constant never changes, so its derivative is 0. Integration runs the process backwards and cannot tell which constant was there — 3x³ + 2x − 5 and 3x³ + 2x + 100 have exactly the same derivative. The + C stands for that unknowable constant: every antiderivative is the one shown, plus some constant.
What can this calculus calculator not do?
It works on polynomials only — sums of whole-number powers of x, up to x⁵. It does not differentiate or integrate trigonometric functions (sin, cos), exponentials (eˣ), logarithms (ln x), roots or fractions with x underneath, and it does not handle products or quotients of two functions. For those you need the fuller rules — the chain, product and quotient rules — which are beyond this page’s honest scope.
How do I enter coefficients, fractions and missing terms?
There is one box per power, from x⁵ down to the constant term. Leave a box empty and that term counts as zero — repeated empty boxes are how you enter a polynomial with missing terms. Decimals like 0.5 and exact fractions like 1/3 are both welcome; fractions stay exact through every step, including inside integrals.
How does the second-derivative test classify a critical point?
Find where the first derivative is zero, then evaluate the second derivative there. If it is negative, the curve bends downward and the point is a local maximum; if positive, it bends upward and the point is a local minimum. If the second derivative is zero, the test is inconclusive: x³ and x⁴ both have a critical point at 0 with second derivative 0, but one is an inflection point and the other a minimum, so a sign chart must decide.
What is the difference between a critical point and an inflection point?
A critical point is where the first derivative is zero (or undefined); an inflection point is where the concavity changes, which is where the second derivative changes sign. A critical point can be an inflection point, as in x³ at 0, but usually is not: in x³ − 3x² the critical points are 0 and 2, while the inflection point is 1, where the second derivative 6x − 6 vanishes.
Why can a definite integral be negative?
Because it measures signed area: regions below the x-axis count negative. The integral of x³ − 3x² from 0 to 2 is −4, since the curve sits below the axis throughout that interval, while the geometric area is 4. An integral of zero does not mean no region exists either: equal areas above and below cancel exactly.
Why use numeric methods when formulas exist?
Because many functions have no elementary antiderivative: the integral of e^(−x²) cannot be expressed with ordinary functions, yet its values matter everywhere from statistics to physics. Numeric differentiation by central difference and numeric integration by Simpson’s rule, both in the Advanced panel, handle those cases, and they are checked here against known answers (derivative of x² at 3 is 6, integral of x² from 0 to 3 is 9) before being trusted.
Do I need pre-calculus before calculus?
In practice, yes. Pre-calculus covers functions, trigonometry, exponentials and logarithms, and a first look at limits, and calculus assumes all of it is fluent. A student who struggles in calculus is often struggling with pre-calculus material under a calculus label. If the algebra and trigonometry are shaky, repairing them first is faster than pushing on into derivatives.
What is the difference between Calculus 1 and Calculus 2?
Calculus 1 covers limits, derivatives and the first integrals, including the power rule this page applies to polynomials. Calculus 2 goes deeper into integration, with techniques for harder integrals, improper integrals, sequences and series, and topics such as arc length. This calculator covers the Calculus 1 ground for polynomials and reaches into Calculus 2 only through numeric checks, not through its symbolic techniques.
Is calculus harder than statistics?
They are hard in different ways. Calculus builds idea on idea with no gaps, so a missed topic keeps hurting later, and it demands fast, accurate algebra throughout. Statistics is more forgiving topic by topic, but its questions are less well-defined: choosing the right method and knowing what a result does not prove is a judgment call. Which feels harder depends on whether you find chained ideas or open-ended judgment more difficult.
Related calculators
Math Solver
Equations solved and checked, step by step.
→ 🧮Algebra Calculator
Equations and expressions, worked in detail.
→ 🎯Quadratic Formula Calculator
The formula, discriminant and roots in detail.
→ 📈Slope Calculator
Slope of a straight line — the derivative’s simpler cousin.
→ 🍕Fraction Calculator
Fractions worked exactly, and swapped with decimals.
→