Your equation has "K" both inside a transcendental function, log(K), and outside it. Such equations cannot, in general be solved in terms of elementary functions. You might be able to solve for K in terms of "Lambert's W function" which is defined as the inverse function to .