Calculus · real student question

Find the indefinite integral of 3/x - 2/x^2 with respect to x.

Question

Find

(3x2x2)dx\int\left(\frac{3}{x}-\frac{2}{x^2}\right)dx

Step-by-step solution

  1. Split by linearity and pull the constants out.

    (3x2x2)dx=3dxx2dxx2\int\left(\frac{3}{x}-\frac{2}{x^2}\right)dx=3\int\frac{dx}{x}-2\int\frac{dx}{x^2}

    The domain is x0x\neq0, and the antiderivative is valid separately on (,0)(-\infty,0) and (0,)(0,\infty).

  2. First term: the one case the power rule cannot handle. Writing 1x=x1\tfrac1x=x^{-1}, the rule xndx=xn+1n+1\int x^ndx=\tfrac{x^{n+1}}{n+1} would divide by n+1=0n+1=0. So n=1n=-1 is the exception, handled by the logarithm:

    dxx=lnx+C\int\frac{dx}{x}=\ln|x|+C

    The absolute value is what keeps this valid for negative xx. The first term therefore contributes 3lnx3\ln|x|.

  3. Second term: the power rule applies normally. Here 1x2=x2\tfrac{1}{x^2}=x^{-2} and n+1=10n+1=-1\neq0:

    x2dx=x11=1x\int x^{-2}dx=\frac{x^{-1}}{-1}=-\frac1x

    so 2x2dx=2x2\int x^{-2}dx=-\dfrac{2}{x}.

  4. Apply the leading minus sign. The integrand subtracts that second piece:

    2x2dx=(2x)=+2x-2\int x^{-2}dx=-\left(-\frac{2}{x}\right)=+\frac{2}{x}

    The sign flip is the step most often dropped — the answer has +2x+\tfrac2x, not 2x-\tfrac2x.

  5. Combine into a single antiderivative.

    (3x2x2)dx=3lnx+2x+C\int\left(\frac{3}{x}-\frac{2}{x^2}\right)dx=3\ln|x|+\frac{2}{x}+C

    Two similar-looking terms produce two entirely different function types — a logarithm and a rational term.

  6. Verify by differentiating. ddx[3lnx+2x]=3x2x2\dfrac{d}{dx}\left[3\ln|x|+\tfrac2x\right]=\dfrac{3}{x}-\dfrac{2}{x^2} ✓. Numerically, symmetric difference quotients at x=0.7, 2.3, 1.6x=0.7,\ 2.3,\ -1.6 match the integrand to five digits ✓, including a negative xx.

Answer

(3x2x2)dx=3lnx+2x+C\int\left(\frac{3}{x}-\frac{2}{x^2}\right)dx=3\ln|x|+\frac{2}{x}+C

Need to solve a different problem like this? Open the solver →