Integral Calculator

Solve indefinite, definite, and supported improper integrals with clear step-by-step solutions, verification, and interactive graphs.

∫sin⁡(x)2 dx\int {\sin\left(x\right)}^{2}\,dx
Try an example
Advanced optionsx · standard · 8 digits
Exact result

Answer

✓ Verified

∫sin⁡(x)2 dx\int {\sin\left(x\right)}^{2}\,dx

x2−sin⁡(2x)4+C\frac{x}{2}-\frac{\sin(2x)}{4}+C
Method
Trigonometric identity
Convergence
not-applicable

Differentiating the result recovers the original integrand on its valid domain.

Verified derivation

Step-by-step solution

Every displayed transformation comes from the selected integration rule.

4 steps
  1. 1

    Use a power-reduction identity

    Rewrite the squared sine before integrating.

    sin⁡2(x)=1−cos⁡(2x)2\sin^2(x)=\frac{1-\cos(2x)}{2}
  2. 2

    Split the integral

    Integrate the constant and cosine terms separately.

    12∫dx−12∫cos⁡(2x)dx\frac12\int dx-\frac12\int\cos(2x)dx
  3. 3

    Integrate

    The inner derivative of 2x contributes the factor 1/2.

    x2−sin⁡(2x)4\frac{x}2-\frac{\sin(2x)}4
  4. 4

    Add the constant of integration

    Indefinite antiderivatives differ by a constant on each connected domain interval.

    F(x)=x2−sin⁡(2x)4+CF(x)=\frac{x}{2}-\frac{\sin(2x)}{4}+C
Visual verification

Function and integral graph

Compare the integrand with one member of its antiderivative family.

f(x) F(x) + 0
Practice

Try an antiderivative yourself

1 / 3

Find an antiderivative of:

2⋅x2 \cdot x
Four-step workflow

How to Use the Integral Calculator

1

Enter the integrand

Enter the integrand and choose indefinite, definite, or improper mode.

2

Choose the integral type

Choose the variable and enter bounds when required.

3

Read the answer

Calculate and read the exact or numerical result.

4

Check the mathematics

Review the generated technique, convergence notes, derivative verification, and graph.

Core concept

Indefinite vs Definite Integrals

An integral describes accumulation. An indefinite integral is a family of antiderivatives, while a definite integral measures signed accumulation over an interval when the required continuity or convergence conditions hold.

∫abf(x) dx=F(b)−F(a),F′(x)=f(x)\int_a^b f(x)\,dx=F(b)-F(a),\quad F'(x)=f(x)

The Fundamental Theorem connects a continuous integrand with any antiderivative across the interval.

Antiderivative

A function F whose derivative is the integrand f on the interval being considered.

Definite integral

The signed accumulation of a function between two bounds.

Improper integral

A definite integral defined through one-sided limits because a bound is infinite or the integrand is unbounded.

Convergence

The condition that all required improper limits exist as finite values.

Choose a valid method

Common Integration Methods

Linearity

Sums, differences, and constant multiples can be integrated term by term.

Substitution

A change of variable reverses the chain rule when the transformed differential is valid.

Integration by parts

The product rule rearranges to ∫u dv = uv − ∫v du.

Verification

Differentiate a proposed antiderivative and recover the original integrand on the valid domain.

The calculator tries direct rules first, then a verified substitution, integration by parts, partial fractions, a trigonometric identity, or a named special function. Finite definite inputs can fall back to adaptive numerical quadrature when no supported symbolic rule is available.

Worked examples

Step-by-Step Integration Examples

Integrate 2x cos(x²).

u = x² and du = 2x dxsin(x²) + C

The inner derivative is already present, so u-substitution reduces the problem to ∫cos(u)du.

Integrate x eˣ.

u = x, dv = eˣdxeˣ(x − 1) + C

Integration by parts moves the derivative onto the algebraic factor.

Integrate sin²(x) from 0 to π.

sin²(x) = [1 − cos(2x)]/2π/2

A power-reduction identity creates terms with direct antiderivatives.

Integrate 1/x from 1 to ∞.

lim as b→∞ of [ln x] from 1 to bDivergent

The required limit is infinite, so no finite ordinary improper integral exists.

Independent check

How to Check an Integral

For an indefinite result F(x)+C, differentiate F. A correct antiderivative produces the original integrand everywhere both expressions are valid. For a definite integral, also inspect continuity, singularities, bound order, and convergence before applying F(b)−F(a). A numerical estimate is useful supporting evidence, but it is not a symbolic proof.

  • The constant of integration may differ across disconnected domain intervals.
  • An interior singularity requires two independently convergent one-sided integrals.
  • A principal value is not the same as ordinary improper convergence.
  • Numerical error estimates describe an algorithm, not a proof of symbolic equality.
Avoid these errors

Common Integration Mistakes

  • Forgetting + C on an indefinite integral.
  • Using the power rule on x⁻¹ instead of the logarithmic rule.
  • Changing variables without transforming the differential or definite bounds.
  • Evaluating across a singularity as if the function were continuous.
  • Confusing signed integral with total geometric area.
  • Reporting a decimal approximation as an exact result.
Questions answered

Frequently Asked Questions

Does this calculator solve every integral?

No. The browser engine supports a tested set of algebraic, trigonometric, exponential, substitution, by-parts, partial-fraction, special-function, definite, and improper cases. Unsupported symbolic expressions are labeled honestly and finite definite inputs can use numerical quadrature.

Are the steps generated from the calculation?

Yes. Each supported rule returns a structured derivation as it constructs the antiderivative. The interface does not create a generic explanation after the result.

How is an indefinite integral checked?

The calculator differentiates the proposed antiderivative and compares that derivative with the original integrand on valid sample points, while preserving stated domain restrictions.

What is the difference between definite and improper mode?

A proper definite integral uses finite bounds and a bounded integrand across the interval. Improper mode explicitly evaluates one-sided limits for supported infinite bounds or singular endpoints.

Why can a signed integral be zero when the graph encloses area?

Area below the x-axis contributes negatively to the signed integral. Equal positive and negative contributions cancel, while total geometric area adds their absolute values.

What numerical method is used?

Finite numerical-only cases use bounded adaptive Simpson quadrature with a reported error estimate. The estimate is not presented as an exact symbolic proof.

Verified sources

References

Continue learning

Related Calculators