Integral Calculator

Evaluate indefinite and definite integrals with step-by-step calculus antiderivatives. Enter a function f(x) and optional integration bounds.

What is an Integral? (Intuition & Accumulated Area)

While derivatives answer "how fast is something changing?", integrals answer "how much has accumulated over time?". If a water pipe fills a reservoir at a fluctuating rate r(t) liters per minute, integrating that rate function over a 60-minute window yields the exact total liters gathered inside the tank. Geometrically, a definite integral computes the continuous, net signed area between the graph of a curve y = f(x) and the horizontal x-axis between bounds a and b.

CalcSolver's Integral Calculator handles both indefinite integrals (finding the general antiderivative family F(x) + C) and definite integrals with numerical limits. Powered by client-side symbolic algebra, CalcSolver breaks down integration by parts, u-substitution, and polynomial antiderivatives into clear, printable steps.

Fundamental Theorem of Calculus & Integration Formulas

The Fundamental Theorem of Calculus (FTC) bridges differentiation and integration as inverse mathematical operations:

Fundamental Theorem of Calculus: ∫ab f(x) dx = F(b) - F(a), where F'(x) = f(x)
Power Rule for Integrals: ∫ xn dx = (xn + 1) / (n + 1) + C  (for n ≠ -1)
Logarithmic Exception: ∫ (1 / x) dx = ln|x| + C
Exponential Rule: ∫ ekx dx = (1/k) · ekx + C
Constant Multiple Rule: ∫ c · f(x) dx = c · ∫ f(x) dx
Integration by Parts: ∫ u dv = u · v - ∫ v du

How to Evaluate Integrals by Hand (Step-by-Step Guide)

  1. Identify Definite vs. Indefinite: If boundary limits [a, b] are present, you are finding a numeric area; if absent, you are finding an antiderivative with an integration constant "+ C".
  2. Simplify Algebra First: Expand binomial products, divide polynomials by single monomial denominators, or convert radicals into fractional powers.
  3. Check for Direct Antiderivatives: Apply the reverse power rule: add 1 to the exponent, then divide the entire term by the new exponent.
  4. Apply U-Substitution if Necessary: Look for an inner expression u = g(x) whose derivative du = g'(x) dx appears elsewhere as a factor in the integrand.
  5. Evaluate Limits (Definite Integrals): Substitute upper limit b into F(x), substitute lower limit a into F(x), and subtract: F(b) - F(a).

3 In-Depth Worked Examples with Complete Solutions

Example 1: Indefinite Polynomial Integral with Reverse Power Rule

Problem: Evaluate ∫ (6x2 - 8x + 5) dx.

Step-by-Step Solution:

  • Term 1: ∫ 6x2 dx = 6 · (x2+1 / 3) = 6 · (x3 / 3) = 2x3
  • Term 2: ∫ -8x dx = -8 · (x1+1 / 2) = -8 · (x2 / 2) = -4x2
  • Term 3: ∫ 5 dx = 5x
  • Add constant of integration: + C

Final Antiderivative: 2x3 - 4x2 + 5x + C

Example 2: Definite Integral (Net Signed Area)

Problem: Calculate ∫13 (3x2 - 4x + 2) dx.

Step-by-Step Solution:

  • Find the general antiderivative F(x): F(x) = x3 - 2x2 + 2x.
  • Evaluate at upper limit b = 3: F(3) = (3)3 - 2(3)2 + 2(3) = 27 - 18 + 6 = 15.
  • Evaluate at lower limit a = 1: F(1) = (1)3 - 2(1)2 + 2(1) = 1 - 2 + 2 = 1.
  • Subtract by FTC: F(3) - F(1) = 15 - 1 = 14.

Exact Definite Area: 14

Example 3: Real-World Civil Engineering (Total Work Done)

Scenario: Hooke's Law states that the force required to stretch a spring is F(x) = kx. A structural suspension spring has stiffness k = 200 N/m. Calculate the total mechanical work (in Joules) done in stretching the spring from rest (x = 0 m) to x = 0.5 meters.

Step-by-Step Solution:

  • Work equals the integral of force with respect to distance: W = ∫00.5 200x dx.
  • Antiderivative: ∫ 200x dx = 200 · (x2 / 2) = 100x2.
  • Evaluate from 0 to 0.5: W = [100(0.5)2] - [100(0)2] = 100(0.25) - 0 = 25 Joules.

Final Result: The total work required is 25 Joules.

Common Integration Mistakes to Avoid

  • Forgetting the "+ C" Constant: On indefinite integrals, omitting "+ C" drops points on exams because any vertical shift of an antiderivative shares the exact same derivative.
  • Applying Power Rule to 1/x: Writing ∫ x-1 dx = x0 / 0 produces division by zero! The correct antiderivative is ln|x| + C.
  • Swapping Upper and Lower Bounds: Remember that ∫ab f(x) dx = - ∫ba f(x) dx. Reversing bounds negates the numerical answer.
  • Not Changing Limits During U-Substitution: When substituting u = g(x) in a definite integral, remember to transform the x-bounds to u-bounds: u(a) and u(b).

Real-World & Industry Applications

Integration is essential throughout electrical, mechanical, and aerospace engineering. Electrical engineers integrate current over time to determine accumulated battery charge in kilowatt-hours. Civil engineers integrate load distributions along bridge girders to calculate shear stress and structural bending moments. In economics, integrating consumer and producer surplus curves quantifies market efficiency and deadweight welfare losses.

Frequently Asked Questions About Integrals & CalcSolver

What is the difference between definite and indefinite integrals?
An indefinite integral yields a general family of antiderivative functions plus an arbitrary constant C (e.g., x2 + C). A definite integral has specific upper and lower numerical limits, yielding a single concrete numerical value representing net accumulated area.
Why does the area below the x-axis count as negative?
By definition, the integral sums Riemann rectangles where height is f(x) and width is dx. When f(x) is below the x-axis, its functional values are negative, producing negative area components.
Can CalcSolver solve integration problems with trigonometric functions?
Yes. CalcSolver supports standard trigonometric integrands (sin, cos, sec2, etc.) as well as exponential and polynomial terms with full step-by-step antiderivative derivations.
Does CalcSolver save or upload my calculation history?
No. All mathematical operations execute 100% locally in your browser engine. CalcSolver values your privacy and stores zero student homework or research calculations on external servers.