Indefinite integral · Exercise-INDEFINITE-INTEGRAL-008

Step-by-step solved exercise: Integrals

Compute \(\displaystyle \int \frac{x^{2}+1}{x}\,dx\) for \(\displaystyle x>0\).

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. Split the numerator over the denominator.

    \[\displaystyle \frac{x^{2}+1}{x}=x+\frac{1}{x}\]

    Comment: Valid for \(\displaystyle x>0\).

  2. Integrate \(\displaystyle x\) with the power rule.

    \[\displaystyle \int x\,dx=\frac{x^{2}}{2}\]
  3. Integrate \(\displaystyle \frac{1}{x}\): its antiderivative is the natural logarithm.

    \[\displaystyle \int\frac{1}{x}\,dx=\ln x\]
  4. Add the results and the constant of integration.

    \[\displaystyle \frac{x^{2}}{2}+\ln x+C\]

Answer

\(\displaystyle \frac{x^{2}}{2}+\ln x+C\)

🎯 Build my path to this exercise