Calculus · real student question

Evaluate the integral of 2 dy divided by -2y.

Question

Evaluate

2dy2y\int \frac{2\,dy}{-2y}

Step-by-step solution

  1. Cancel the numerical constants first. The 22 on top and the 2-2 underneath reduce to 1-1:

    22ydy=(1y)dy\int \frac{2}{-2y}\,dy = \int \left(-\frac{1}{y}\right)dy

    Doing this before integrating avoids carrying factors through the antiderivative.

  2. Pull the constant out. Constants factor through an integral:

    (1y)dy=1ydy\int \left(-\frac{1}{y}\right)dy = -\int \frac{1}{y}\,dy

  3. Apply the reciprocal rule.

    1ydy=lny+C\int \frac{1}{y}\,dy = \ln|y| + C

    The absolute value matters: 1y\tfrac1y is defined for negative yy too, and ddyln(y)=1y=1y\tfrac{d}{dy}\ln(-y) = \tfrac{-1}{-y} = \tfrac1y there. Writing lny\ln y alone would restrict the answer to y>0y > 0. Note also that the power rule yndy=yn+1n+1\int y^n dy = \tfrac{y^{n+1}}{n+1} fails here because n=1n = -1 would divide by zero.

  4. Assemble the answer.

    2dy2y=lny+C\int \frac{2\,dy}{-2y} = -\ln|y| + C

  5. Check by differentiating, and note an equivalent form. ddy(lny)=1y\tfrac{d}{dy}\left(-\ln|y|\right) = -\tfrac1y, matching the integrand. The result can also be written ln1y+C\ln\left|\tfrac{1}{y}\right| + C, since lny=lny1-\ln|y| = \ln|y|^{-1}. This integral is exactly the left-hand side that appears when separating the decay equation dydx=2y\tfrac{dy}{dx} = -2y.

Answer

lny+C-\ln|y| + C

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