3

A problem I'm working on requires me to solve $\ln r+\ln q=kr$ for $r$. I've tried using the Lambert $W$ function, but I'm not sure how to do it. Is there method, technique or known solution, that would help me approach this problem?

Nawar Ismail
  • 103
  • 7

1 Answers1

5

Recall that

$$\log z=W(z)+\log W(z) \tag 1$$

where $W$ is Lambert's "W" function.

Here, we have

$$\log r+\log q=kr\implies -\log q=-kr+\log r \tag 2$$

So, let's add $\log (-k)$ to both sides of $(1)$ to obtain

$$\log(-k/q)=(-kr)+\log(-kr) \tag 3$$

Comparing $(3)$ with $(1)$ reveals that

$$r=-\frac1k\,W\left(-\frac{k}{q}\right)$$


NOTE:

If we are restricting $k$, $r$, and $q$ to be real-valued, then we must have $-\frac{k}{q}>-e^{-1}$.

Mark Viola
  • 184,670