Calculus · real student question

Find the indefinite integral of 1/(a - bx) with respect to x, where a and b are constants and b is not zero.

Question

Find

1abxdx\int\frac{1}{a-bx}\,dx

where aa and bb are constants with b0b\neq0.

Step-by-step solution

  1. Choose the substitution. The denominator is linear, so let the whole denominator be the new variable:

    u=abxu=a-bx

    This is the standard move for any dxlinear\int\frac{dx}{\text{linear}} — do not reach for partial fractions or a ln\ln formula from memory.

  2. Differentiate the substitution and solve for dx.

    du=bdxdx=1bdudu=-b\,dx\qquad\Longrightarrow\qquad dx=-\frac{1}{b}\,du

    The minus sign comes from the bx-bx; losing it is the most common error in this integral.

  3. Rewrite the integral in u.

    1abxdx=1u(1b)du=1bduu\int\frac{1}{a-bx}\,dx=\int\frac{1}{u}\left(-\frac{1}{b}\right)du=-\frac{1}{b}\int\frac{du}{u}

    The constant 1b-\tfrac1b pulls straight out of the integral.

  4. Integrate and substitute back. Since duu=lnu+C\int\frac{du}{u}=\ln|u|+C:

    1blnu+C=1blnabx+C-\frac{1}{b}\ln|u|+C=-\frac{1}{b}\ln|a-bx|+C

    The absolute value is essential: abxa-bx changes sign at x=abx=\tfrac{a}{b}, where the integrand has a vertical asymptote, and the antiderivative is valid on each side of it separately.

  5. Note the general pattern. For any linear inner function,

    dxpx+q=1plnpx+q+C\int\frac{dx}{px+q}=\frac{1}{p}\ln|px+q|+C

    Here p=bp=-b, which reproduces the 1b-\tfrac1b directly. The coefficient out front is always the reciprocal of the inner slope.

  6. Verify by differentiating. By the chain rule, ddx[1blnabx]=1bbabx=1abx\frac{d}{dx}\left[-\frac1b\ln|a-bx|\right]=-\frac1b\cdot\frac{-b}{a-bx}=\frac{1}{a-bx} ✓. Numerically with a=3.7a=3.7, b=1.9b=1.9, symmetric difference quotients at x=0.4,2.0,3.0x=0.4,\,-2.0,\,3.0 match the integrand to five digits ✓, including a point on each side of the asymptote at x=1.947x=1.947.

Answer

1abxdx=1blnabx+C\int\frac{1}{a-bx}\,dx=-\frac{1}{b}\ln|a-bx|+C

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