Suppose I use a 5-point approximation for the Laplacian $u_{xx} + u_{yy}$ at a point $( x_i , y_j )$ \begin{align*} \frac{-2 u_{ij} + u_{i+1,j} + u_{i-1,j}}{h_x^2} + \frac{-2 u_{ij} + u_{i,j+1} + u_{i,j-1}}{h_y^2} \end{align*} to solve $u_{xx} + u_{yy}=f$ with Dirichlet boundary condition, can I use the Fast Poisson solver? If yes (I think the answer should be yes since the coefficient matrix is of tridiagonal symmetric toeplitz block type), what about imposing a nonzero Dirichlet boundary condition instead to solve $u_{xx} + u_{yy}=0$ using finite difference method? And why the solution vector $u$ cannot have a local maximum at any interior node $(x_{i},y_{j})$? Thanks for any hints.
2026-03-27 08:46:56.1774601216
Solving Laplace's equation using finite difference method
1.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in LINEAR-ALGEBRA
- An underdetermined system derived for rotated coordinate system
- How to prove the following equality with matrix norm?
- Alternate basis for a subspace of $\mathcal P_3(\mathbb R)$?
- Why the derivative of $T(\gamma(s))$ is $T$ if this composition is not a linear transformation?
- Why is necessary ask $F$ to be infinite in order to obtain: $ f(v)=0$ for all $ f\in V^* \implies v=0 $
- I don't understand this $\left(\left[T\right]^B_C\right)^{-1}=\left[T^{-1}\right]^C_B$
- Summation in subsets
- $C=AB-BA$. If $CA=AC$, then $C$ is not invertible.
- Basis of span in $R^4$
- Prove if A is regular skew symmetric, I+A is regular (with obstacles)
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
Related Questions in NUMERICAL-LINEAR-ALGEBRA
- sources about SVD complexity
- Showing that the Jacobi method doesn't converge with $A=\begin{bmatrix}2 & \pm2\sqrt2 & 0 \\ \pm2\sqrt2&8&\pm2\sqrt2 \\ 0&\pm2\sqrt2&2 \end{bmatrix}$
- Finding $Ax=b$ iteratively using residuum vectors
- Pack two fractional values into a single integer while preserving a total order
- Use Gershgorin's theorem to show that a matrix is nonsingular
- Rate of convergence of Newton's method near a double root.
- Linear Algebra - Linear Combinations Question
- Proof of an error estimation/inequality for a linear $Ax=b$.
- How to find a set of $2k-1$ vectors such that each element of set is an element of $\mathcal{R}$ and any $k$ elements of set are linearly independent?
- Understanding iterative methods for solving $Ax=b$ and why they are iterative
Related Questions in FAST-FOURIER-TRANSFORM
- Translation of the work of Gauss where the fast Fourier transform algorithm first appeared
- Arcsin of a number greater than one
- Unable to solve nonlinear equation using scipy.optimize.fsolve
- Fourier transform on formal series
- Optimization of a Fast Fourier Transformation-based correlation function?
- Example of 1-D Poisson Equation in physics field, engineering field, or others in daily life
- Fourier Curve Fitting
- The best textbook on Fourier Transformation for beginners
- What is the intuition of FFT for polynomial multiplication?
- Which part of formula is FFT changing the basis?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Consider the discrete Dirichlet problem for Laplace equation: $$ \frac{u_{i-1,j} - 2u_{i,j} + u_{i-1,j}}{h_x^2} + \frac{u_{i,j-1} - 2u_{i,j} + u_{i,j-1}}{h_y^2} = 0, \quad i = 1,\dots,M-1, \quad j=1,\dots,N-1\\ \tag{*} u_{0,j} = g_{0,j}, \quad j=0,\dots,N\\ u_{M,j} = g_{M,j}, \quad j=0,\dots,N\\ u_{i,0} = g_{i,0}, \quad i=1,\dots,M-1\\ u_{i,N} = g_{i,N}, \quad i=1,\dots,M-1 $$ Let's reformulate it as equivalent discrete Possion problem by substituting $v_{ij} = u_{ij} - g_{ij}$. $$ \frac{v_{i-1,j} - 2v_{i,j} + v_{i-1,j}}{h_x^2} + \frac{v_{i,j-1} - 2v_{i,j} + v_{i,j-1}}{h_y^2} = f_{ij}, \quad i = 1,\dots,M-1, \quad j=1,\dots,N-1\\ f_{ij} \equiv -\frac{g_{i-1,j} - 2g_{i,j} + g_{i-1,j}}{h_x^2} - \frac{g_{i,j-1} - 2g_{i,j} + g_{i,j-1}}{h_y^2}\\ v_{0,j} = 0, \quad j=0,\dots,N\\ v_{M,j} = 0, \quad j=0,\dots,N\\ v_{i,0} = 0, \quad i=1,\dots,M-1\\ v_{i,N} = 0, \quad i=1,\dots,M-1 $$ For this to work we need to define $g_{i,j}$ at the internal nodes $i=1,\dots,M-1,j=1,\dots,N-1$.
For direct solvers (direct sparse or FFT methods) the choice for internal $g_{i,j}$ may be arbitrary, for example, $g_{i,j} = 0$. This is equivalent to eliminating boundary unknowns $u_{0,j}$, $u_{M,j}$,$u_{i,0}$, $u_{i,N}$, from the system. After the elimintation the right hand side would contain extra terms containing boundary values of $g_{i,j}$.
For iterative solvers the choice of interval values for $g_{i,j}$ may affect the number of required iterations and it may be wise to take $g_{i,j}$ as a smooth function, for example: $$ g_{i,j} = \tilde c_1 g_{0,j} + \tilde c_2 g_{M,j} + \tilde c_3 g_{i,0} + \tilde c_4 g_{i,N}\\ c_1 = \frac{N h_y}{h_x i}, \quad c_2 = \frac{N h_y}{h_x (M-i)}\\ c_3 = \frac{M h_x}{h_y j}, \quad c_4 = \frac{M h_x}{h_y (N-j)}\\ \tilde c_i = \frac{c_i}{c_1 + c_2 + c_3 + c_4}. $$ This formula is a very rough approximation of Cauchy integral but it gives a pretty smooth $g_{ij}$ if boundary data is also smooth.
The property that $u_{i,j}$ attains its extrema at the boundary is known as discrete maximum principle and does not depend on the way you solve (*), as it is the property of the solution itself. The proof is very simple. Rewrite the discrete Laplace equation as $$ u_{i,j} = \frac{h_y^2 u_{i-1,j} + h_y^2 u_{i+1,j} + h_x^2 u_{i,j+1} + h_x^2 u_{i,j-1}}{2(h_x^2 + h_y^2)}. $$ Assume that $u_{i,j}$ is strictly greater (strictly less) than each of $u_{i-1,j}$, $u_{i+1,j}$, $u_{i,j+1}$, $u_{i,j-1}$. Then the equality cannot hold. So the discrete solution cannot have local maxima or minima inside the domain (that is in points that are surrounded by four neighbours). The only possibility left it that extrema are located at some boundaries.