MATLAB: Solving a first order Partial Differential Equation in MATLAB

MATLABpartial differential equations

I want to solve a first order partial differential equation of the form
(∂f(x,y))/∂x+(∂f(x,y))/∂y=g(x,y)
where g(x,y) is an image consisting of nx pixels in x direction and ny pixels in y direction (nx*ny pixels). I wanted to solve this PDE to obtain f(x,y). Can anyone suggest how to solve this PDE in MATLAB.
I had easily solved a second order PDE in MATLAB using finite difference method but I am not able solve the above first order PDE.
Thanks in advance…

Best Answer

Hi...
I have solved the problem..
I custom made a solver using Finite Difference Method and adopted it to solve the PDE. In situations like the one I mentioned above, Finite difference method is the best choice according to me
-Regards Ashik
Related Question