I am reading about Dupire local volatility model and have a rough idea of the derivation. But I can't reconcile the local volatility surface to pricing using geometric brownian motion process. If I'm not mistaken the proces $dS=rSdt+\sigma(S;t) S dX$ given final condition $(S-K)^{+}$ will produce correct options values given some strike. So in other words each time I change the strike $K$ I should get the options values that are consistent with the market (or really close to them). Is it true? How does my model know that I changed my strike?
EDIT:
2016/11/19:
I'm still not sure if I understand that correctly.
If I have a matrix of option prices by strikes and maturities then I should fit some 3D function to this data. This can be done by some interpolation/extrapolation or just finding some 3rd degree polynomial. I did the latter.
The formula for instantenous volatility is $\sigma(E;T)=\sqrt{\frac{\frac{\partial V}{\partial T}+rE\frac{\partial V}{\partial E}}{\frac{1}{2}E^2\frac{\partial^2 V}{\partial^2 E}}}$
If I want to perform Monte Carlo simulation I should evaluate $\sigma(E;T)$ at each timestep. At each timestep I simulate current stock price $S_c$ and I pretend it is $E$ so I evaulate $\sigma(E;T)$ at $E=S_c; T=t$. Is this correct? If so, then $\frac{\partial V}{\partial T}$ is really a instantenous change of option price which has the strike $S_c$ and it comes from Matrix of option prices. Is this correct? So really any stochastic process $dS=rSdt+\sigma(S;t) S dX$ should have the same diffusion for all Strikes. If they have exactly the same diffusion, the probability density function will be the same and hence the realized volatility will be exactly the same for all options, but market data differentiate volatility between strike and option price. If I have realized volatility different than implied, there is no way I should get the same option prices as the market.
For example for option with strike K=100 realized vol should be 20% (this is implied from quoted option prices), and for option with strike K=110 realized vol should be 15%, but actually with the dupire formula it will be the same for both of them. Could you guys clarify?
Edit 2016/11/21: Ok guys, I think I understand it now. I performed MC simulation and got the correct numbers. In fact the pdf will be tlhe same but it will allow to replicate implied vol surface. Thanks for the explanation, it was helpful.