Antiderivative · Exercise-ANTIDERIVATIVE-003

Step-by-step solved exercise: Integrals

Which is an antiderivative of \(\displaystyle f(x)=\frac{1}{x}\)?

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

Step-by-step solution

  1. We look for a function whose derivative is \(\displaystyle \frac{1}{x}\) on an interval that does not contain 0.

    \[\displaystyle F'(x)=\frac{1}{x}\]
  2. We recall that the derivative of \(\displaystyle \ln x\) for \(\displaystyle x>0\) is \(\displaystyle \frac{1}{x}\).

    \[\displaystyle \frac{d}{dx}\ln x=\frac{1}{x}\]
  3. For \(\displaystyle x<0\) we use \(\displaystyle \ln|x|\), which differentiates the same way.

    \[\displaystyle \frac{d}{dx}\ln|x|=\frac{1}{x}\]

    Comment: The function is valid on \(\displaystyle (-\infty,0)\) and on \(\displaystyle (0,\infty)\), not on an interval containing 0.

  4. We add the constant C to get the antiderivative.

    \[\displaystyle \int \frac{1}{x}\,dx=\ln|x|+C\]

Answer

\(\displaystyle \ln{\left(\left|{x}\right| \right)} + C\)

🎯 Build my path to this exercise