I want to solve the following problem:
$$u_{xx}(x,y)+u_{yy}(x,y)=0, 0<x<\pi, y>0 \\ u(0,y)=u(\pi, y)=0, y>0 \\ u(x,0)=\sin x +\sin^3 x, 0<x<\pi$$
$u$ bounded
I have done the following:
$$u(x,y)=X(x)Y(y)$$
We get the following two problems:
$$X''(x)+\lambda X(x)=0 \ \ \ \ \ (1) \ X(0)=X(\pi)=0$$
$$Y''(y)-\lambda Y(y)=0 \ \ \ \ \ (2)$$
To solve the problem $(1)$ we do the following:
The characteristic polynomial is $\mu +\lambda =0$.
$\lambda <0$: $\mu=\pm \sqrt{-\lambda}$
$X(x)=c_1e^{\sqrt{-\lambda}x}+c_2e^{-\sqrt{-\lambda}x}$
$X(0)=0 \Rightarrow c_1+c_2=0 \Rightarrow c_1=-c_2$
$X(\pi)=0 \Rightarrow c_1e^{\sqrt{-\lambda}\pi}+c_2 e^{-\sqrt{-\lambda}\pi}=0 \Rightarrow c_2(-e^{\sqrt{-\lambda}\pi}+e^{-\sqrt{-\lambda}\pi})=0 \Rightarrow c_1=c_2=0$
$\lambda=0$:
$X(x)=c_1 x+c_2$
$X(0)=0 \Rightarrow c_2=0 \Rightarrow X(x)=c_1x$
$X(\pi)=0 \Rightarrow c_1 \pi=0 \Rightarrow c_1=0$
$\lambda >0$ :
$X(x)=c_1 \cos (\sqrt{\lambda} x)+c_2 \sin (\sqrt{\lambda}x)$
$X(0)=0 \Rightarrow c_1=0 \Rightarrow X(x)=c_2 \sin (\sqrt{\lambda}x)$
$X(\pi)=0 \Rightarrow \sin (\sqrt{\lambda}\pi)=0 \Rightarrow \sqrt{\lambda}\pi=k\pi \Rightarrow \lambda=k^2$
For the problem $(2)$ we have the following:
$Y(y)=c_1 e^{ky}+c_2 e^{-ky}$
The general solution is the following:
$$u(x,y)=\sum_{k=0}^{\infty}a_n( e^{ky}+ e^{-ky}) \sin (kx) $$
$$u(x,0)=\sin x+\sin^3 x=\sin x+\frac{3}{4}\sin x-\frac{1}{4}\sin (3x)=\frac{7}{4}\sin x-\frac{1}{4}\sin (3x) \\ \Rightarrow \frac{7}{4}\sin x-\frac{1}{4}\sin (3x)=\sum_{k=0}^{\infty}2a_n\sin (kx) \\ \Rightarrow 2a_1=\frac{7}{4} \Rightarrow a_1=\frac{7}{8}, 2a_3=-\frac{1}{4}=-\frac{1}{8}, a_k=0 \text{ for } k=2,4,5,6,7, 8, \dots $$
Is this correct??
by separation of variable, you verify that $$e^{\pm ky}\sin kx$$ which satisfies laplace equation and the boundary conditions $u(0,y)=u(\pi,y)$ for any positive integer $k.$ requiring that the solution be bounded for $y$ at $\infty$ gives you that $$e^{-ky}\sin kx$$ is a solution.
we can decompose $$\sin^3 x = \frac 12 \sin x (1-\cos 2x)=\frac12\sin x - \frac 14(\sin 3x - \sin x)=\frac 34 \sin x - \frac 14\sin 3x$$ by principle of superposition the solution is $$u = \frac34e^{-y}\sin x - \frac14e^{-3y}\sin 3x.$$