HexMathv1.0.3

Integral calculator with steps

Type or scan an integral. HexMath integrates it and shows the substitution or parts at every step.

Loading math input...

What this page covers

  • Indefinite integrals of elementary functions, written with the constant + C.
  • Definite integrals with numeric limits, evaluated at the end.
  • Substitution, integration by parts, and standard forms for powers, exponentials, logarithms and trigonometric functions.
  • Not covered here: improper integrals with infinite limits, double and triple integrals, and numerical approximation of integrals with no closed form. You can still type one and see what the solver says.

How to enter the problem

  • Type ∫ from the math keyboard, or type "integral of" followed by the function and dx. Put limits on the integral sign for a definite integral.
  • Scan it. Fit the one integral in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked example

Problem

Find ∫xe2x dx\displaystyle \int x e^{2x}\,dx.

Answer

Verified

The answer is

e2x4(2x−1)+C\dfrac{e^{2x}}{4}(2x - 1) + C

Explanation

  1. Choose the parts
    Let u=xu = x and dv=e2x dxdv = e^{2x}\,dx, so that the remaining integral is simpler.
  2. Differentiate and integrate the parts
    du=dxdu = dx and v=12e2xv = \tfrac{1}{2}e^{2x}.
  3. Apply integration by parts
    ∫u dv=uv−∫v du=x2e2x−∫12e2x dx\int u\,dv = uv - \int v\,du = \tfrac{x}{2}e^{2x} - \int \tfrac{1}{2}e^{2x}\,dx
  4. Integrate the remaining term
    ∫12e2x dx=14e2x\int \tfrac{1}{2}e^{2x}\,dx = \tfrac{1}{4}e^{2x}
  5. Combine and add the constant
    x2e2x−14e2x+C\tfrac{x}{2}e^{2x} - \tfrac{1}{4}e^{2x} + C, which factors as shown below.

Common mistakes

  • Leaving out + C+\,C on an indefinite integral.
  • Forgetting the 12\tfrac{1}{2} when integrating e2xe^{2x}: the antiderivative is 12e2x\tfrac{1}{2}e^{2x}, not e2xe^{2x}.
  • Choosing u=e2xu = e^{2x} and dv=x dxdv = x\,dx, which makes the remaining integral harder rather than simpler.
  • In a definite integral with substitution, keeping the old limits after changing the variable. Either change the limits with the substitution or substitute back before evaluating.

Checks, assumptions and limits

  • Check by differentiating. The derivative of e2x4(2x−1)\frac{e^{2x}}{4}(2x - 1) is xe2xx e^{2x}, the original integrand. If it is not, a step is wrong.
  • For a definite integral, check the number with a rough estimate: for the runnable example, the integrand is between 0 and 1 on [0,1][0, 1], so ln⁡2≈0.69\ln 2 \approx 0.69 is plausible.
  • The integrand must be defined on the whole interval. On this page's examples it is; a denominator that reaches zero inside the limits makes the integral improper, which is outside this page.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

Yes. Write limits on the integral sign for a definite integral and you get a number; leave them off and you get an antiderivative with + C.

Yes. Each step has a short title, such as the substitution chosen or the parts used, followed by the working.

Yes. Use the camera on one problem, or choose a photo. Several problems in one photo are solved as a list.

1 math question to try today without signing in, 3 a day signed in, unlimited with Pro.

Ready to solve your next math problem?

Try one problem free in your browser. Create a free account for 3 math questions a day.

Last updated: · HexMath