1

$\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?

  • 2
    Since, as you write "When both solutions are derived, we get the same answer of $\frac{1}{kx}$", they are both right. – MasB May 02 '16 at 23:52

2 Answers2

4

$${\frac{\ln(kx)}{k}+C = \frac{\ln(k)}{k}+\frac{\ln(x)}{k}+C = \frac{\ln(x)}{k} + \tilde{C}}$$

So they're the same, they just differ by a constant

Brenton
  • 3,796
2

Both are fine, they differ by a constant.

and actually $$\int \frac{1}{x} dx = \ln |x| $$

Siong Thye Goh
  • 153,832