Plotting Solutions Using Finite Difference Method with M = N = 20

squenshl
Messages
468
Reaction score
4
How do I use the finite difference method with M = N = 20 to obtain a plot of the solution of

\nabla2u = 1, 0 < x < 1, 0 < y < 1,
u(x,0) = x(1-x), u(x,1) = x(1-x), 0 \leq y \leq 1,
u(0,y) = 0, u(1,y) = 0, 0 \leq y \leq 1.
 
Physics news on Phys.org
Okay, what have you done on this? In particular, what would \nabla^2 u= 1[/math] look like in terms of this mesh?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top