Integral Calculator

Type a function to integrate. Add bounds for a definite integral.

Answer

Indefinite integral
x2(2ln⁡∣x∣−1)4+C\frac{x^{2} \left(2 \ln\left|x\right| - 1\right)}{4} + C

Checked numerically before it is shown

Step-by-step solution

Solve by

Integration by parts

  1. Integration by parts

    Integrate by parts with u=ln⁡(x)u = \ln{\left(x \right)} and dv=x dxdv = x\,dx:

    ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du
  2. Find du and v

    Then du=1x dxdu = \frac{1}{x}\,dx and v=x22v = \frac{x^{2}}{2}.

  3. Apply the formula

    ∫xln⁡(x) dx=x2ln⁡(x)2−∫x2 dx\int x \ln{\left(x \right)}\,dx = \frac{x^{2} \ln{\left(x \right)}}{2} - \int \frac{x}{2}\,dx
  4. Constant multiple rule

    Take the constant factor out of the integral:

    ∫x2 dx=12∫x dx\int \frac{x}{2}\,dx = \frac{1}{2} \int x\,dx
  5. Power rule

    Power rule for integrals:

    ∫x dx=x22\int x\,dx = \frac{x^{2}}{2}
  6. Constant of integration

    Add the constant of integration:

    ∫xln⁡(x) dx=x2ln⁡∣x∣2−x24+C\int x \ln{\left(x \right)}\,dx = \frac{x^{2} \ln\left|x\right|}{2} - \frac{x^{2}}{4} + C
  7. Same answer

    The same antiderivative, written as in the answer:

    x2ln⁡∣x∣2−x24=x2(2ln⁡∣x∣−1)4\frac{x^{2} \ln\left|x\right|}{2} - \frac{x^{2}}{4} = \frac{x^{2} \left(2 \ln\left|x\right| - 1\right)}{4}

Try an example

Solved examples

About this solver

How to use

  1. Type the function to integrate, for example x e^x.
  2. For a definite integral add the bounds with the ∫ₐᵇ key or type \int_0^1 x^2 dx.
  3. The answer of an indefinite integral includes the constant C.

How to type math

To enterType
Powerx^2 x^(n+1)
Rootsqrt(x) \sqrt[3]{x}
Fraction(x+1)/(x-1) \frac{1}{x}
Functionssin(x) ln(x) log_2(x) exp(x)
Absolute value|x| abs(x)
Derivatived/dx x^2 sin x (x^2+x)'
Integral\int x^2 dx \int_0^1 x^2 dx
Limitlim x->0 sin(x)/x \lim_{x\to\infty} 1/x
Degreessin(30°)
System of equations2x+y=5, x-y=1

How it works

The solver picks a method (substitution, parts, partial fractions, a trigonometric identity) and shows each step.

The antiderivative is differentiated numerically and compared with your function before it is shown. Definite integrals are compared with numerical integration.

Frequently asked questions

Why is there a + C?

An indefinite integral has a whole family of answers that differ by a constant. C stands for that constant.

Which methods are shown?

Substitution, integration by parts, partial fractions and trigonometric identities, depending on the integral.

Can every integral be solved?

No. Some functions, such as e^{-x^2}, have no antiderivative made of elementary functions. Then no answer is shown.