I have been given a problem to code the heat equation which is transformed from B-S equation (European call option) .
Now the boundary conditions are for European call option: $$C(S,T)=\max(S-K,0)$$ $$C(0,t)=0$$ $$C(S,t) \sim S \space as \> S\to \infty$$ Transforming it to heat equation :$$\frac{\partial u}{\partial \tau}=\frac{\partial^2u}{\partial x^2} $$ with the initial condition: $$u(x,0)=max(e^{\frac{k+1}{2}x}-e^{\frac{k-1}{2}x},0)$$ what are the boundary conditions for this heat equation ?
here the derivation was given. they used the same parameters but the boundary conditions of the heat equation is not given. I get weird boundary conditions.
– user1157 Mar 29 '19 at 18:40