684 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS

Thus, you need

g′′ (x)− π2

b2 n2g(x) = 0

You know the solution isC1e

b x +C2e−nπ

b x

Now it turns out that in this application, it is much more convenient to write the generalsolution as

an cosh(nπ

bx)+bn sinh

(nπ

bx)

This gives the same general solution. The above functions are linear combinations of theknown solutions and so things in the above form are solutions. Furthermore, the ratio ofthe two solutions is not constant so their Wronskian does not vanish. Hence it is the generalsolution. Now you try and get the solution to the boundary value problem in the form

u(x,y) =∞

∑n=1

(an cosh

(nπ

bx)+bn sinh

(nπ

bx))

sin(nπ

by)

when x = 0, you get ∑∞n=1 an sin

( nπ

b y)= 0 and so each an = 0. When x = a, you need

f (y) =∞

∑n=1

bn sinh(nπ

ba)

sin(nπ

by)

Hence you need

bn sinh(nπ

ba)=

2b

∫ b

0f (t)sin

(nπ

bt)

dtbn =2

bsinh( nπ

b a) ∫ b

0f (t)sin

(nπ

bt)

dt

Therefore, with this formula for bn

u(x,y) =∞

∑n=1

bn sinh(nπ

bx)

sin(nπ

by)

This shows how to solve a more general problem in which you have functions given onthe edges. You solve the problem for the situation in which there is something nonzero onexactly one edge with 0 on the others and then you add these solutions together.

Example 34.4.1 Find the solution to the boundary value problem

uxx +uyy = 0

where the boundary conditions and rectangle are as expressed in the following picture.

(2,1)

(2,0)(0,0)

(0,1)

sin(πy)

1− (x−1)2

0

0

684 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONSThus, you needYou know the solution isnw nwCie b*+CQoe o*Now it turns out that in this application, it is much more convenient to write the generalsolution asnt . nta, cosh (x) + b, sinh (x)This gives the same general solution. The above functions are linear combinations of theknown solutions and so things in the above form are solutions. Furthermore, the ratio ofthe two solutions is not constant so their Wronskian does not vanish. Hence it is the generalsolution. Now you try and get the solution to the boundary value problem in the form)=¥ (a cosh (x) + b, sinh (“*2)) sin (™y)when x = 0, you get °°) a, sin (= 7 y y) = 0 and so each a, = 0. When x = a, you need— 1 1y= XL b, sinh (ac) sin (“y)Hence you needDn sinh (“"a) =i [ f(t) sin ( 1) dthy = Fan FA) ah to sin (“*r)a tTherefore, with this formula for b,a nt nt=X basinh (+) sin ([y)y) py sinh ( [x] sin( SyThis shows how to solve a more general problem in which you have functions given onthe edges. You solve the problem for the situation in which there is something nonzero onexactly one edge with 0 on the others and then you add these solutions together.Example 34.4.1 Find the solution to the boundary value problemUxy + Uyy = 0where the boundary conditions and rectangle are as expressed in the following picture.(0,1) I=6=I 4)sin(zy)