I'm trying to solve with Mathematica the following problem $$-\Delta u = 10$$ on $[0,1]\times [0,1]$ with homogeneous Dirichlet boundary conditions.
I obtain the following plot with my own Matlab code, but with Mathematica I can't even obtain the plot. Could anyone confirm if the same plot is obtained with your own version of Mathematica?
f = 10;
pde = -Laplacian[u[x, y], {x, y}] == f;
bc = {u[x, 0] == 0,
u[x,1] == 0,
u[0, y] == 0,
u[1, y] == 0
};
DSolve[{pde, bc}, u[x, y], {x, y}, Assumptions -> {0 <= x <= 1 && 0 <= y <= 1}]