Unless k is a variable, this is correct. I got 1/(x ln10), which is an equivalent expression.
Otherwise, it would be (k-x)/(xkln10). // Scratch that. Bad math. It would have to be a partial derivative, unless one of the variables could be expressed in terms of the other.