I'd like to use MMA to tackle some advanced problems. First step is to ensure that simple, known problems are solved correctly. It seems solving PDE's is still quite an art. see Laplace Transforms vs Change of Variables
pde = D[p[x, τ], τ] == -D[(μ*x)*p[x, τ], x] + D[((σ^2*x^2)/2)*p[x, τ], {x, 2}]
soln = DSolve[pde, p[x, τ], {x,τ}]
The results of this is:
DSolve[Derivative[0, 1][p][x, τ] == (-μ)*p[x, τ] + σ^2*p[x, τ]
- x*μ*Derivative[1, 0][p][x, τ] + 2*x*σ^2*Derivative[1, 0][p][x, τ]
+ (1/2)*x^2*σ^2*Derivative[2, 0][p][x, τ], p[x, τ], {x, τ}]
Trying with an initial condition:
sol = DSolve[{pde, p[x, 0] == DiracDelta[x - x0]}, p[x, τ], {x, τ}]
The result is:
{{p[x, τ] ->
Integrate[DiracDelta[-1 + x0], {K[1], -∞ ,∞}]/(Sqrt[2*Pi]*σ*Sqrt[τ])}}
Boundary and Initial Conditions
The initial condition is p[x, 0] == DiracDelta[x - x0]
The function p[x,t]
is a probability density function, in this case two boundary conditions are p[-∞, τ] == 0
and p[∞, τ] == 0
.
Expected result
This is geometric Brownian motion so the expected result should be the lognormal density.
The problem I am interested in is as posted in this question here.
I'd greatly appreciate someone showing the canonical set up in MMA for this type of problem. Specifically how to get the expected density function returned.
DSolve
can solve your equation in v11.2, what's your problem? (BTW, the equation in your code is different from the one in the linked post. ) $\endgroup$DSolve
is incorrect? Do you know what the correct answer is? $\endgroup$