# How do you differentiate f(x)=lnx^2+lnx-x using the sum rule?

$f ' \left(x\right) = \frac{3}{x} - 1$
$f ' \left(x\right) = \frac{2}{x} + \frac{1}{x} - 1$