∫1/x dx = ln|x| + C
A river splits a town into two halves with no bridge. What happens on one bank says nothing about the other bank.
ln x + C (x > 0) y = ln(x) + cln(−x) + D (x < 0) y = ln(-x) + d
Drag to move · pinch or scroll to zoom · tap to read a point
slope at P0.5
1/x at P0.5
Step by step
- 1/x is not defined at x = 0. So any integral of it lives on two separate pieces.
- For x > 0, ln x has derivative 1/x. For x < 0, ln(−x) also has derivative 1/x (chain rule: (1/(−x)) × (−1)).
- Both pieces together are ln|x|. Move P to each side: the slope is 1/x on both.
- Move C and D. Each piece moves on its own and still fits. Books write ln|x| + C, with one C for each piece in mind.
Try this
- Make both pieces the dashed ln|x|.
- Make the left piece pass through (−1, 2).
- Find the slope at x = −0.5. Is it negative?
Practise this
Problems on Integrals with checks, marks and help from Sir are on the exam site (sign in). Practise Integrals on the exam site →