AP Calculus AB and BC

Integral of (2x+3)/(x^2+3x): Spot the Derivative

The integral of 2x plus 3 over x squared plus 3x is the natural log of the absolute value of x squared plus 3x, plus C. The numerator is exactly the derivative of the denominator, so the substitution u equals x squared plus 3x finishes the problem in one line with no coefficient in front.

2x+3x2+3xdx=lnx2+3x+C\int \frac{2x+3}{x^{2}+3x}\,dx = \ln\left|x^{2}+3x\right| + C

Differentiate the denominator first

Before doing anything with a rational integrand, differentiate the bottom. Here ddx(x2+3x)=2x+3\frac{d}{dx}\left(x^{2}+3x\right) = 2x+3, which is the numerator, character for character. Any integrand shaped like g(x)g(x)\frac{g'(x)}{g(x)} integrates to lng(x)\ln\left|g(x)\right|.

So take u=x2+3xu = x^{2}+3x and du=(2x+3)dxdu = (2x+3)\,dx. The substitution consumes the entire numerator, which is why no fraction appears out front.

2x+3x2+3xdx=duu=lnu+C=lnx2+3x+C\int \frac{2x+3}{x^{2}+3x}\,dx = \int \frac{du}{u} = \ln\left|u\right| + C = \ln\left|x^{2}+3x\right| + C

Partial fractions gets there too, slowly

The denominator does factor, as x(x+3)x(x+3), so a BC student can legitimately decompose it. Solving 2x+3=A(x+3)+Bx2x+3 = A(x+3) + Bx gives A=1A = 1 and B=1B = 1, and both logs come out with coefficient one.

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

Same answer, three times the writing

Decomposing is not an error here, it is wasted minutes and three extra chances to drop a sign. Check the numerator against the derivative of the denominator before you set up A and B. When they match, the answer is one logarithm and you are done.

The mistakes students make

The pattern is easy once seen, and the errors below all come from not looking for it.

  • Dividing by the derivative and writing lnx2+3x2x+3\frac{\ln\left|x^{2}+3x\right|}{2x+3}. Antiderivatives never divide by a non-constant function that way; only a constant can be pulled out.
  • Attaching a stray 12\frac{1}{2} and answering 12lnx2+3x\frac{1}{2}\ln\left|x^{2}+3x\right|. That would be right if the numerator were x+32x + \frac{3}{2}, half of dudu. As written, dudu matches the numerator exactly and no coefficient is needed.
  • Breaking the fraction into 2xx2+3xdx+3x2+3xdx\int\frac{2x}{x^{2}+3x}dx + \int\frac{3}{x^{2}+3x}dx. Both halves do come out to logs, the first because 2xx2+3x\frac{2x}{x^{2}+3x} cancels to 2x+3\frac{2}{x+3}, but you have turned one substitution into two problems plus a recombination step.

Every answer on this page is machine checked

An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.

Frequently asked questions

What is the integral of (2x+3)/(x^2+3x)?

One substitution, u=x2+3xu = x^{2}+3x, carries it all the way to lnx2+3x+C\ln\left|x^{2}+3x\right| + C, with no coefficient out front.

How do I know when a fraction integrates to a natural log?

When the numerator is the derivative of the denominator, or a constant multiple of it. Differentiate the bottom and compare; if the derivative of the bottom is kk times the numerator, the answer is 1klng(x)\frac{1}{k}\ln\left|g(x)\right|.

Is ln|x| + ln|x+3| the same answer?

Yes. The product law combines it into lnx2+3x\ln\left|x^{2}+3x\right|, so the two forms are identical.