I know that the European call option price fulfills the following equation: $$ \frac{\partial V}{\partial t} + \frac{1}{2} \sigma^2 S^2 \frac{\partial^2 V}{\partial S^2} + r S \frac{\partial V}{\partial S} - rV = 0, $$ where $V(S_t,t) = C(S_t, t) = S_t N(d_1) -K e^{-r(T-t)} N(d_2) $ for:
- $ d_1 =\frac{\log(S/K) + (r+\sigma^2/2)T}{\sigma \sqrt{T}} $
- $d_2 = d_1 - \sigma \sqrt{T}$
Moreover I know the formula for the European call option price which pays dividend D continuously: $$ \frac{\partial V}{\partial t} + \frac{1}{2} \sigma^2 S^2 \frac{\partial^2 V}{\partial S^2} + (r-D) S \frac{\partial V}{\partial S} - rV = 0, $$ Now my goal is to find the formula on $C(S_t, t)$ which fulfill the above equation.
I know that the result is: $V(S_t,t) = C(S_t, t) = S_t e^{-D(T-t)} N(d_1) -K e^{-r(T-t)} N(d_2) $ for:
- $ d_1 =\frac{\log(S/K) + (r-D+\sigma^2/2)T}{\sigma \sqrt{T}} $
- $d_2 = d_1 - \sigma \sqrt{T}$
But I do not know how to derive it.