I am trying to find a way to efficiently solve the Laplace equation, by generating a rule for making Ansatz. However, once this ansatz is found, I struggle with finding the coefficients and the structure of the solution.
The problem is:
\begin{equation} u_{xx}+u_{yy}=0 \ \ \ \ \ \ \Omega: \{0<x<1, 0<y<3\} \\ u_x(0,y)=u_x(1,y)=0 \ \ \ \ \ \ \\ u(x,0)=0, u(x,3)=x \end{equation}
From this problem, we can actually see the form of the solution, by looking at the IC:
- $u_x(0,y)=u_x(1,y)=0$
This is a Neumann condition on x, thus the x-part of the solution must be in the form $u(x)=A_n\cos(\frac{n\pi}{a})x$.
- $u(x,0)=0, u(x,3)=x $
This is a Dirichlet condition on y, and note that the second condition suggests that the function is $x$ at the point 3, so this is clearly not a trigonometric behavior, therefore we can conclude that since it is Dirichlet, it must be a sine function, but since it is not trigonometric, it must be hyperbolic sine. So the form must be $u(y)=B_m\sinh\frac{m\pi}{b}y$.
Since the boundary is rectangular, we need an additional constant in front of the Ansatz, hence we can form the Ansatz as
\begin{equation} u(x,y)=C_n + \sum_{n=0}^\infty A_n\cos\frac{n\pi}{a}x \sum_{m=0}^\infty B_m\sinh\frac{m\pi}{b}y \end{equation}
But at this stage, is there an equally rapid way to find the coefficients? Evidently, only the cosine term can be subjected to series expansion, but here we have a zero in the Neumann conditions, so how is that done?
Thanks
a=b=1, andm=n, so let put $A_n B_n=c_n$. Exact solution computed with Mathematica is $u(x,y)=\frac{y}{6}+\sum_{n=1}^{\infty}\frac{2(-1+(-1)^n)\cos(n \pi x)\sinh(n\pi y)}{\pi^2n^2 \sinh(3 n \pi)}$. – Alex Trounev Jun 29 '22 at 12:46