AP Calculus AB and BC
Integral of 1/(2x): Answer, Proof, and Steps
The integral of 1/(2x) is (1/2)ln|x| + C. The constant 1/2 pulls out of the integral, leaving the integral of 1/x, which is ln|x|. The absolute value is required because 1/(2x) is defined for every x except 0.
Factor out the constant
The is a constant multiplier, and constants slide outside an integral untouched. What remains is the standard integral of .
Since , the inside integral is .
Why the bars are not optional
The function is defined for every , including negatives, but exists only for . The absolute value extends the antiderivative to the negative side, where the chain rule on produces the same .
Multiplying back by recovers on both branches.
The mistake students make
The genuine error is dropping the absolute value and writing , which throws away every negative . A separate slip is folding the 2 into the log as ; since , that form only adds the constant , so it is unsimplified rather than wrong.
Constant out front, bars on the log
Pull the outside, integrate to , and keep the bars. Only skip the absolute value when the domain is known to stay positive.
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
Is (1/2)ln|x| the same as ln|x|/2?
Yes, they are identical. and are two ways of writing the same expression.
Can I write the answer as (1/2)ln|2x|?
You can, but it only adds the constant , which the already covers. The cleaner form is .
Why not use a u = 2x substitution?
You can. With , , the integral becomes , which simplifies to up to a constant. Factoring the constant out first is quicker.