I've been trying to implement a set of differential equations from a research paper 1 and I'm stumped by this notation:
$$\dfrac{\mathrm{d}}{\mathrm{d}t}(\log P) = \log\left(\dfrac{S}{D}\right)$$
What does it mean? It's odd to see the dependent variable be an expression. How do I express $\frac{\mathrm{d}P}{\mathrm{d}t}$ using the above equation?
I'm sure that it's obvious to any mathematician, but alas I'm a programmer.
Thanks
On the assumption that $P$, $S$, and $D$ are functions of $t$, we get: $$ \begin{eqnarray} \ln\left( \dfrac{S(t)}{D(t)} \right) &=& \dfrac{\mathrm{d}\ln(P(t))}{\mathrm{d}t} \tag{given} \\ &=& \dfrac{\mathrm{d}\ln(P(t))}{\mathrm{d}P(t)} \cdot \dfrac{\mathrm{d}P(t)}{\mathrm{d}t} \tag{chain rule} \\ &=& \dfrac{1}{P(t)} \cdot \dfrac{\mathrm{d}P(t)}{\mathrm{d}t} \tag{derivative of $\log$} \;, \end{eqnarray} $$ and therefore, $$ \dfrac{\mathrm{d}P(t)}{\mathrm{d}t} = P(t) \cdot \ln\left( \dfrac{S(t)}{D(t)} \right) \;. $$ If the initial condition is given as $P_0 = P(t_0)$, this can be solved by separation of the variables: $$ P(t) = P_0 \cdot \exp\left( \int\limits_{t_0}^{t} \ln\left( \dfrac{S(\tau)}{D(\tau)} \right) \mathrm{d}\tau \right) \;. $$