34.4. LAPLACE EQUATION 685

First find the solution which has siny on the right and zero on the other edges. This wasdone in the above. It is

u1 (x,y) =∞

∑n=1

bn sinh(nπx)sin(nπy)

where bn is as given above. Thus

bn =2

sinh(nπa)

∫ 1

0sin(t)sin(nπt)dt =

2sinhnπa

nπ sin1(−1)n

n2π2−1

Hence this partial solution is

u1 (x,y) =∞

∑n=1

2sinhnπa

nπ sin1(−1)n

n2π2−1sinh(nπx)sin(nπy)

Next find the solution to the equation which has 1− (x−1)2 on the top and zero on theother sides. This is just like what was done earlier except that you would switch a and b.You find the eigenfunctions for the two opposite zero boundary conditions. These are

sin(nπ

2x), n = 1,2, · · ·

with eigenvalues n2π2

4 . Next you look for solutions to the equation which involve

a(y)sin(nπ

2x)

Thus

a′′ (y)sin(nπ

2x)+a(y)

(−π2

4n2 sin

π

2nx)= 0

Hence

a′′ (y)− π2

4n2a(y) = 0

and soa(y) = an cosh

(nπ

2y)+bn sinh

(nπ

2y)

Then the general solution is

u2 (x,y) =∞

∑n=1

(an cosh

(nπ

2y)+bn sinh

(nπ

2y))

sin(nπ

2x)

When y = 0, you are supposed to get 0 for the boundary condition. Hence an = 0. Wheny = b you need

1− (1− x)2 =∞

∑n=1

(bn sinh

(nπ

2

))sin(nπ

2x)

Therefore, you need

bn sinh(nπ

2

)=∫ 2

0

(1− (1− s)2

)sin(nπ

2s)

ds = 82−2(−1)n

n3π3

34.4. LAPLACE EQUATION685First find the solution which has siny on the right and zero on the other edges. This wasdone in the above. It is©uy (x,y) = y b, sinh (nx) sin (nay)n=1where b,, is as given above. Thus2 nmsin1(—1)"2 5 [sin e)sin a at ="~~ sinh (naa sinhnta = n?n2—1Hence this partial solution is- 2 — nmsin1(—1)"u(y) = L sinhnta n2m2—1n=1sinh (n7x) sin (nzy)Next find the solution to the equation which has 1 — (x — 1) on the top and zero on theother sides. This is just like what was done earlier except that you would switch a and b.You find the eigenfunctions for the two opposite zero boundary conditions. These arennin { — =1.2....sin (Sx), 52,n2 72with eigenvalues “7—. Next you look for solutions to the equation which involve_ (nta(y) sin (2)Thus 5a’ (y) sin (Sx) +a(y) (50 sin ns) =0Hence 5" La)a'(y)—yraly) =0and soa(y) =a, cosh (Sy) + by, sinh (Sy)Then the general solution isuz (x,y) = Ly (a cosh (“y) + b, sinh (y)) sin (Ss)When y = 0, you are supposed to get 0 for the boundary condition. Hence a, = 0. Wheny =b you need .1—(1—x)’ = py (b, sinh (“)) sin (2)Therefore, you needby, sinh (=) = [ (1 -(1 -s)°) sin (“s) ds= ge 2(=I"nem