Solving Laplace Equations using this boundary conditions?

1 reply · 2K views · last reply
astrodeva
Messages
1
Reaction score
0
The equation is Uxx + Uyy = 0
And domain of solution is 0 < x < a, 0 < y < b
Boundary conditions:
Ux(0,y) = Ux(a,y) = 0
U(x,0) = 1
U(x,b) = 2

What I've done is that I did separation of variables:
U(x,y)=X(x)Y(y)

Plugging into the equation gives:
X''Y + XY'' = 0

Rearranging:
X''/X = -Y''/Y = k

For case k > 0, I saw that it gives no non-trivial solutions.
For case k = 0, I solved it and found U(x,y) = y/b + 1

For case k < 0, I'm slightly lost.
X'' + kX = 0
Y'' - kX = 0

Two equations: X_n = A_n sin(sqrt(k_n) x) + B_n cos(sqrt(k_n) x), and its derivative X_n' = A_n sqrt(k_n) cos(sqrt(k_n) x) - B_n sqrt(k_n) sin(sqrt(k_n) x).


Using the X boundary conditions:
Handwritten derivation: du/dx(0,y) = du/dx(0) gives B_n = 0, and du/dx(a,y) = du/dx(a) gives n pi = sqrt(k_n) x, so sqrt(k_n) = n pi / a, leading to X_n(x) = A_n sin(n pi x / a).


Solution form Y_n = C_n sinh(sqrt(k_n) y) + D_n cosh(sqrt(k_n) y), a separated-variables ODE solution with coefficients C_n and D_n.

Using the Y boundary condition:
Two equations: u(x,0) = 1 leads to 1 = sum from n=1 to infinity of X_n Y_n, and 1 = sum from n=1 to infinity of X_n Y_n = sum from n=1 to infinity of A_n D_n cos(n pi x / a).

Using Fourier Series to find the coefficient:
Equation A_n D_n = (1/a) times the integral from -a to a of cos(n pi x / a) dx, written as a Fourier coefficient expression.


But the integral just gives Dn = 0, and this doesn't satisfy u(x,0) = 1.

Can someone explain where I went wrong?

Thanks!
 
Attachments
  • Three equations: u(x,0) = 1 leads to 1 = sum from n=1 to infinity of X_n Y_n; then 1 = sum of X_n Y_n equals sum of A_n D_n cos(n pi x / a); then A_n D_n = (1/a) times the integral from -a to a of cos(n pi x / a) dx.
    upload_2016-4-9_12-34-29.png
    1.4 KB · Views: 340
  • Two equations: u(x,0) = 1 leads to 1 = sum from n=1 to infinity of X_n Y_n, then 1 = sum from n=1 to infinity of X_n Y_n = sum from n=1 to infinity of A_n D_n cos(n pi x / a).
    upload_2016-4-9_12-34-45.png
    1 KB · Views: 515
Your working is confusing.

If you start with [itex]X'' = kX[/itex] and want [itex]k < 0[/itex], you should then be writing [itex]\sin(\sqrt{|k|}x)[/itex] and so forth, or defining [itex]k = -c^2[/itex] where [itex]c \geq 0[/itex].

You want to be using cosines, which in fact you end up doing, but only after expressly stating that [itex]X_n = A_n\sin(n\pi x/a)[/itex].

Now the cosine expansion of [itex]1[/itex] on [itex][0,a][/itex] is [itex]\cos(0x)[/itex]. Thus you have correctly determined that all the other coefficients vanish.