I’m trying to solve a multi-dimensional diffusion equation (Fokker-Planck equation to be exact) which is multi dimensional (with constants A_{1,2,3})
\frac{\partial P}{\partial L}(L,x,y,z) = \frac{A_3^2z^2}{2}\frac{\partial^2 P}{\partial x^2}(L,x,y,z) \\ + A_3^2xz\frac{\partial^2 P}{\partial x\partial z}(L,x,y,z) + \bigg(A_1^2+A_2^2+A_3^2\frac{z^2}{x^2}\bigg)\frac{\partial^2 P}{\partial y^2}(L,x,y,z)
\\ + A_3^2x^2\frac{\partial^2 P}{\partial z^2}(L,x,y,z) +\bigg(\frac{A_3^2}{2}-A_4\bigg)x\frac{\partial P}{\partial x}(L,x,y,z)\\ + \bigg(\frac{A_3^2}{2} +A_4\bigg)z\frac{\partial P}{\partial z}(L,x,y,z)
- A_5\frac{\partial P}{\partial y}(L,x,y,z) \\
= F(L,x,y,z).
PDE has initial condition P(L=0,x,y,z) = \delta(x)\delta(y)\delta(z-1) with x,\,y\in[1,\infty) z \in [1,\infty) and Neumann as standard. The L variable can be thought of as time (it corresponds to length). First I discretise the left hand side via
\bigg(\frac{\partial P}{\partial L}\bigg)^{n+1} \approx \frac{P^{n+1}-P^n}{\Delta L}
to obtain
P^{n+1} - P^n = \Delta L \,F(L,x,y,z).
My question is now how to obtain the correct variational form. What should my test function depend on? Should it be multidimensional too? I am thinking I should have something like
\int_{\Omega}\bigg(P(L,x,y,z)v(\mathbf{x}) - \Delta L\, F(L,x,y,z)v(\mathbf{x})\bigg)\,d\mathbf{x} = \int_{\Omega}p^{n}(L,x,y,z)v(\mathbf{x})\,d\mathbf{x}
where \mathbf{x} = [x,y,z]^{T}, but I am really confused on how to reduce the second derivatives in this case. Thank you for help in advance.