$\int\frac{1}{kx}dx$
There are two ways to integrate this...
Method 1 (Separating the coefficient from the variable):
$\frac{1}{k}\int\frac{1}{x}dx$
$\frac{\ln|x|}{k} + c$
Method 2 (knowing that it is an ln() function and multiplying by the reciprocal of the coefficient):
$\int\frac{1}{kx}dx$
$\frac{\ln|kx|}{k}+c$
When both solutions are derived, we get the same answer of $\frac{1}{kx}$.
Which solution is the correct solution?