Hi Arne,
To separate the variables in a partial differential equation like the Laplace equation, you can use the method of separation of variables. The goal is to rewrite the equation in a form where one side depends only on ( x ) and the other side depends only on ( y ). This is possible when the equation is homogeneous and linear.
Here’s how you can implement this in MATLAB :
syms f(x) g(y) lambda a c
eqn1 = diff(f,2) == -lambda*(c/a)*f;
eqn2 = diff(g,2) == lambda*g;
% Now you can solve eqn1 and eqn2 for f(x) and g(y) respectively
Hope this helps.