I want to derive a Black-Scholes type partial differential equation to price options on an asset that follows a mean-reverting process (Schwartz model).
My attempt follows the methodology of deriving the Black-Scholes PDE but using a mean-reverting process to describe the asset instead of a geometric Brownian motion:
Let $S$ follow a mean-reverting stochastic process $$ S = \kappa(\mu-\ln S)S dt + \sigma SdW $$ and let $V=V(S,t)$ denote the value of the option. From Itô's lemma we have $$ dV=\left(\frac{\partial V}{\partial t}+\kappa(\mu-\ln S)S\frac{\partial V}{\partial S}+\frac{1}{2} \sigma^2 S^2 \frac{\partial^2 V}{\partial S^2}\right)dt+ \sigma S \frac{\partial V}{\partial S} dW_t. $$
Let's perform a delta hedge, i.e. construct a portfolio $\Pi=-V+\frac{\partial V}{\partial S} S$. We see that $$ d\Pi = \left(\frac{\partial V}{\partial t}+\frac{1}{2} \sigma^2 S^2 \frac{\partial^2 V}{\partial S^2}\right)dt, $$ and since the portfolio $\Pi$ does not involve any risk, it must earn the risk-free interest rate, i.e. $$ d\Pi = r\Pi dt= r\left(-V+\frac{\partial V}{\partial S} \right)dt. $$ Thus, we will have a PDE of the form $$ \frac{\partial V}{\partial t} +rS\frac{\partial V}{\partial S} +\frac{1}{2}\sigma^2 S^2 \frac{\partial ^2V}{\partial S^2}-rV=0, $$ which is the regular Black-Scholes PDE.
Is this correct, or where do I go wrong here?
I believe that the PDE should be $$ \frac{\partial V}{\partial t} +\kappa\left(\mu - \lambda-\ln S\right)S\frac{\partial V}{\partial S} +\frac{1}{2}\sigma^2 S^2 \frac{\partial ^2V}{\partial S^2}-rV=0, $$ where $\lambda$ is the market price of risk. This form of the PDE can be found in this post, for example.