4.8 HW 8

  4.8.1 Chapter 13, problem 2.1 Mary Boas book. Second edition
  4.8.2 Chapter 13, problem 2.2 Mary Boas book. second edition
  4.8.3 Chapter 13, problem 2.3 Mary Boas book. second edition
  4.8.4 Chapter 13, problem 2.7 Mary Boas book. second edition.
  4.8.5 Chapter 13, problem 3.2 Mary Boas book. second edition
  4.8.6 Chapter 13, problem 3.3 Mary Boas book. second edition
  4.8.7 Chapter 13, problem 3.7. Mary Boas book. second edition
  4.8.8 Chapter 13, problem 3.9. Mary Boas book. second edition
  4.8.9 Problem chapter 13, 3.10. Mary Boas book. Second edition
PDF (letter size)
PDF (legal size)

4.8.1 Chapter 13, problem 2.1 Mary Boas book. Second edition

Find the steady-state temperature distribution for the semi-infinite plate problem if the temp at the bottom edge is T=f(x)=x (in degrees; that is the temp at x cm is x degrees). The temperature of the others sides is zero degrees and the width of the plate is 10 cm.

pict

Solution

Since we are looking for a steady state heat distribution, which means there is no heat source, then we use Laplace PDE to represent the problem. We need to solve the following PDE

2T=2Tx2+2Ty2=0

For a 2D problem as the above, we start by assuming that the solution T(x,y) is of the form T(x,y)=X(x)Y(y). We now substitute this assumed solution into the Laplace PDE and obtain

XY+YX=0

dividing by XY gives

1XX+Y1Y=01XX=1YY=k2

Since the left hand side in the above equation depends only on the independent variable x while the right hand side depends only on the independent variable y, and both sides are equal to each others, then each side must be equal to the same constant. This is called the separation of variables approach. Assuming this constant is k2 for k0 we obtain two ODE’s to solve for X and Y

X+k2X=0 andYk2Y=0 To solve the X ODE, we assume the solution is X=Aemx, for some constants A,m and substitute this in the ODE to obtain m2Aemx+k2Aemx=0, or m2+k2=0. This is the characteristic equation whose solution is m=±ik, hence X=Ae±ikx.

A general solution is found by adding all the individual solutions, hence X= Aeikx+ Aeikx=A(eikx+ eikx). But cos(kx)=eikx+eikx2, hence X=2Acos(kx)=cos(kx) by taking constant 2A=1.

Another general solution can be obtained by taking the difference of the individual solutions, hence, X= Aeikx Aeikx=A(eikx eikx). But sinkx=eikx eikx2i, hence X=2iAsinkx=sin(kx) by taking 2iA=1. Therefore solutions to 1Xd2Xdx2=k2 are X1(x)=cos(kx)X2(x)=sin(kx)

Now we solve Yk2Y=0.  Assuming solution is Y=Aemy hence the characteristic equation is m2Aemyk2Aemy=0, or m2k2=0, hence m=±k, then Y=Ae±ky , and let A=1, then  Y=eky or Y=eky

Since T(x,y)=X(x)Y(y), then the T solution is a combination of all the above solutions.

T(x,y)={sinkx coskx {eky eky

Now we use the boundary conditions on the plate to find which of the above 4 solutions is the correct solution.

Since this is a semi-infinite plate, then as y, T(x,y)0, this means eky solution must be rejected since they have the positive power of y on the exponential function. (since k>0). Therefore we now have

T(x,y)={sinkx ekycoskx eky

Looking now at the left boundary condition where we want T=0 for x=0, this means that solution coskx eky must be rejected since it is not zero at x=0.

So, only solution left is T(x,y)=sinkx eky And we have two boundary conditions to satisfy yet, the right hand side, and the bottom side.

At the right side, where x=w=10 cm, we need T=0, hence this can be achieved by having sin10k=0 or 10k=nπ, or k=nπ10 for n=1,2,3, So the solution now looks like T(x,y)=sin(nπ10x)enπ10yn=1,2,3,

We have the last boundary condition to satisfy, which is the bottom side. On that side we have T=f(x)=x at y=0 hence if we let y=0 in the above the solution becomes T(x,0)=x=sin(nπ10x) This solution is not satisfied for any n. for example, for x=5, n=1, we have sin(π105)=sinπ2=15

Hence we need to find another method to find this boundary condition. Since a sum of scaled solutions is also a solution (this is a linear system), then we write

T(x,y)=n=1bn enπ10ysin(nπ10x)

Now we try to find bn when y=0. This is the Fourier series expansion for f(x).

Since sin functions are orthogonal to each others, i.e. 0wsinax sinbx  dx=0 ab,the above can be written as 0wsin(nπ10x) f(x) dx=010sin(nπ10x)(m=1bmsin(mπ10x))dx=m=1bm010sin(nπ10x)sin(mπ10x)dx=bn010sin(nπ10x)sin(nπ10x) dx

Since all terms vanish expect when m=n then bn=010sin(nπ10x) f(x) dx010sin2(nπ10x)  dx=010sin(nπ10x) x dx010sin2(nπ10x)  dx

But 010sin2(nπ10x)dx=5 for n0. Hence bn=210010xsin(nπ10x)dx. integration by parts. udvdx=uvvdudxdx. Let u=x, dv=sin(nπ10x) then dudx=1, v=wnπcos(nπ10x). Hence (using w=10) bn2w=[xwnπcos(nπwx)]0w0wwnπcos(nπwx) dx=[w2nπcos(nπ)0]+wnπ[1nπwsinnπwx]0w=[w2nπcos(nπ)]+wnπ[wnπsinnπ0]=[w2nπcos(nπ)]+[w2n2π2sinnπ]=w2π(1ncos(nπ)+1n2πsinnπ)

Hence bn=2wπ(1ncos(nπ)+1n2πsinnπ)

Since n is an integer, all the sinnπ terms vanish

bn=2wπ(1ncos(nπ))

Since w=10 then

bn=20π(1ncos(nπ))

Then

bn=20π(11(1)),20π(12(1)),20π(13 (1)),bn=20π, 20π(12),20π(+13),=20π(1n+1n)

Hence

T(x,y)=n=1bn enπ10ysin(nπ10x)T(x,y)=20πn=1(1n+1n) enπ10ysin(nπ10x)

Here is a plot of the solution for n up to 70.


pict

4.8.2 Chapter 13, problem 2.2 Mary Boas book. second edition

Find the steady-state temperature distribution for the semi-infinite plate with bottom edge of 20 cm if the temp at the bottom edge temp. is  held at

T={00   0<x<10100   10<x<20

The others sides at zero degrees.

pict

solution To solve this, I will follow the same steps as in 2.1, until I get to the step of trying to fit to the bottom edge conditions into the solution, and then I will use f(x) as a step function:

f(x)={0      0<x<10100   10<x<20

Hence, as shown in problem 2.1, the candidate solutions for T(x,y) are

T(x,y)={sinkx ekysinkx ekycoskx ekycoskx eky

Now we use the boundary conditions on the plate to find which of the above 4 solutions is the correct solution. We know by the uniqueness theorem of ODE solution that there will be one solution only out of the above 4, and by the existence theorem, that a solution will exist.

Since this is a semi-infinite plate, then as y, T(x,y)0, this means sin(kx)eky and cos(kx)eky solution must be rejected since they have the positive power of y on the exponential function. (since k>0)

Looking now at the left boundary condition where we want T=0 for x=0, this means that solution cos(kx)eky must be rejected since it is not zero at x=0.

So, only solution left is sin(kx)eky and we have 2 boundary conditions to satisfy yet, the right hand side, and the bottom side.

At the right side, where x=w=20 cm, we need T=0, hence this can be achieved by having kw=nπ, or k=nπw for n=1,2,3,

so the solution now looks like T(x,y)=sin(nπwx) enπwyn=1,2,3,

Now we have the last boundary condition to satisfy, Since a sum of scaled solutions is also a solution (this is a linear system), then we write

T(x,y)=n=1bn enπwysin(nπwx)

And now we try to find bn when y=0

This is the Fourier series expansion for f(x).

Since sin functions are orthogonal to each others, i.e. 0wsinax sin(bx) dx=0 for ab then the above can be written as 0wsin(nπwx) f(x) dx=0wsin(nπwx)(m=1bmsin(mπwx))dx=m=1bm0wsin(nπwx)sin(mπwx)dx=bn0wsin(nπwx)sin(nπwx) dx

Since all terms vanish expect when m=n, hence bn=0wsin(nπwx) f(x) dx0wsin2(nπwx)  dx=0wsin(nπwx) x dx0wsin2(nπwx)  dx

But 0wsin2(nπwx)  dx=w2  for n0 Hence bn=2w0wf(x)sin(nπwx)  dx=220{010f(x)sin(nπwx)  dx+1020f(x)sin(nπwx)  dx}

But f(x)=0 for 0<x<10 , and f(x)=100 for 10<x<20 therefore

bn=220{0100 sin(nπ20x)  dx+1020100sin(nπ20x)  dx}=200201020sin(nπ20x)  dx=101020sin(nπ20x)  dx=10 1nπ20[cosnπ20x]1020=200nπ[cosnπ20x]1020=200nπ[cosnπ2020cosnπ2010]=200nπ[cosnπcosnπ2]

Looking at few n values starting from n=1

bn=200π[cosπcosπ2],2002π[cos2πcosπ],2003π[cos3πcos3π2], 2004π[cos4πcos2π],2005π[cos5πcos5π2],2006π[cos6πcos3π],2007π[cos7πcos7π2],2008π[cos8πcos4π]bn=200π[10],2002π[1(1)],2003π[10],2004π[11],2005π[10],2006π[1(1)],2007π[10],2008π[11]bn=200π[1],2002π[2],2003π[1],2004π[0],2005π[1],2006π[2],2007π[1],2008π[0],

We see a term multiplier is 1,2,1,0,1,2,1,0,

When n is multiple of 4, this multiplier is zero. when n is odd, the multiplier is -1, and when n is even (not multiple of 4), this multiplier is 2.

Solution is

T(x,y)=n=1bn enπ20ysin(nπ20x)T(x,y)={200π1nenπ20ysin(nπ20x) n odd, 1,3,5,7,...400π1nenπ20ysin(nπ20x)n even 2,6,10,14,18,...0Otherwise


pict

4.8.3 Chapter 13, problem 2.3 Mary Boas book. second edition

Find the steady-state temperature distribution for the semi-infinite plate problem if the temp at the bottom edge is T=f(x)=cos(x) ( The temp. of the others sides is zero degrees, and the width of the plate is π cm.

pict

Solution

This problem is similar to problem 2.1, but for a different boundary function at the bottom edge.

As shown in problem 2.1, T(x,y) is given by one of these solutions:

T(x,y)={sinkx ekysinkx ekycoskx ekycoskx eky

Now we use the boundary conditions on the plate to find which of the above 4 solutions is the correct solution. We know by the uniqueness theorem of ODE solution that there will be one solution only out of the above 4, and by the existence theorem, that a solution will exist.

Since this is a semi-infinite plate, then as y, T(x,y)0, this means sinkx eky and coskx eky solution must be rejected since they have the positive power of y on the exponential function. (since k>0)

Looking now at the left boundary condition where we want T=0 for x=0, this means that solution coskx eky must be rejected since it is not zero at x=0.

Only solution left is sinkx eky and we have 2 boundary conditions to satisfy yet, the right hand side, and the bottom side.

At the right side, where x=w=π cm, we need T=0, hence this can be achieved by having kπ=nπ, or k=n for n=1,2,3,

so the solution now looks like T(x,y)=sin(nx) enyn=1,2,3,

Now we have the last boundary condition to satisfy, which is the bottom side. On that side we have T=f(x)=cos(x) at y=0 hence if we let y=0 in the above the solution becomes T(x,y)=cos(x)=sin(nx)

This solution is not satisfied for any n.

Hence we need to find another method to find this boundary condition. Since a sum of scaled solutions is also a solution (this is a linear system), then we write

T(x,y)=n=1bn enysin(nx)

Now we try to find bn when y=0, i.e. at y=0

T(x,y)=f(x)=cos(x)=n=1bn sin(nx)

This is the Fourier series expansion for f(x). Since sin functions are orthogonal to each others, i.e. 0πsinax sinbx  dx=0 ab,the above can be written as (taking inner product of RHS and LHS w.r.t. sin(nx)) : cos(x)=n=1bn sin(nx)0πsin(nx) f(x) dx=0πsin(nx)(m=1bmsin(mx))dx0πsin(nx) cos(x) dx=m=1bm0πsin(nx)sin(mx)dx0πsin(nx) cos(x) dx=bn0πsin(nx)sin(nx) dx

Where on the RHS we simplified it since all terms vanish expect when m=n. The above now becomes

0πsin(nx) cos(x) dx=bn0πsin2(nx)  dx0πsin(nx) cos(x) dx=bnπ2

bn=2π0πsin(nx) cos(x) dx=2π n(1+cos(nπ))n21

Looking at few values of n=2,3,4,... (not defined for n=1).

bn=2π 2(1+cos(2π))3,2π 3(1+cos(3π))8 ,2π 4(1+cos(4π))15...bn= 2π 2(2)3,0 ,2π 4(2)8,0,...= 4π nn21  for even n

Since

T(x,y)=n=1bn enysin(nx)

Then the final solution is

T(x,y)=4πn=even nn21 enysin(nx)


pict

4.8.4 Chapter 13, problem 2.7 Mary Boas book. second edition.

Find the steady-state temperature distribution of the following plate, height=1. Temp at the bottom edge is T=cos(x) ( The temp. of the others sides is zero degree and width of the plate is π cm.

pict

Solution As shown in problem 2.1, T(x,y) is given by one of these solutions:

T(x,y)={sinkx ekysinkx ekycoskx ekycoskx eky

Now we use the boundary conditions on the plate to find which of the above 4 solutions is the correct solution. We know by the uniqueness theorem of ODE solution that there will be one solution only out of the above 4, and by the existence theorem, that a solution will exist.

Here we can not reject the 2 candidate solutions sinkx eky and coskx eky as we did for the semi-infinite plate cases because as y1, these solutions do not blow up.

But to use one of them , looking at T(x,y)= sinkx eky, then at y=1, where we require T=0, we get 0= sinkx , and this means we must have k=nπ for integer n. but this means that T=0 everywhere in the plate and on the other boundaries, which is not correct.

Similarly if we try to fit cos(kx)eky.

One way to avoid this problem is to use a linear combination of the exponential aeky+beky and now we try to find a,b. If we choose a=12ehk,b=12ehk, where h is the height of the plate, we get 12ehkeky12ehkeky= 12ek(hy)12ek(hy)

To verify, We want 12ek(hy)12ek(hy)=0 when y=h, Hence

12ek(hy)12ek(hy)=1212 =0

The solutions to consider are now

T(x,y)={sinkx (12ek(hy)12ek(hy))coskx (12ek(hy)12ek(hy))

The initial 4 candidate solutions are now 2 candidate solutions since we have combined a combination of two solutions together.

Looking now at the left boundary condition where we want T=0 for x=0, this means the second candidate solution above which is coskx (12ek(hy)12ek(hy)) must be rejected since it is not zero at x=0 for any y.

Only solution left is sinkx (12ek(hy)12ek(hy)). Write 12ek(hy)12ek(hy)=sinhk(hy) then the final candidate solution which we want to fit on the remaining boundary conditions can be written as

T(x,y)=sinhk(hy)sin(kx)

We have 2 boundary conditions to satisfy yet, the right hand side, and the bottom side. At the right side, where x=w=πcm, we need

T=0=sinhk(hy) sinkπ

hence this can be achieved by having kπ=nπ, or k=n for n=1,2,3, So the solution now looks like T(x,y)=sinhn(hy)sin(nx)n=1,2,3,

Now we have the last boundary condition to satisfy, which is the bottom side. On that side we have T=f(x)=cos(x) at y=0 hence if we let y=0 in the above the solution becomes T(x,y)=cos(x)=sinh(n(h))sin(nx)

This solution is not satisfied for any n. We need to find another method to find this boundary condition. Since a sum of scaled solutions is also a solution (this is a linear system), then we write

T(x,y)=n=1bnsinh(n(hy))sin(nx)

And now we try to find bn when y=0, i.e. at y=0

T(x,y)=f(x)=cos(x)=n=1bn sinh(nh) sin(nx)

This is the Fourier series expansion for f(x). Since sin functions are orthogonal to each others, i.e.

0πsin(ax) sin(bx)dx=0ab

The above can be written as (taking inner product of RHS and LHS w.r.t. sinnx) :

cos(x)=m=1bm sinh(mh) sin(mx)0πsin(nx) f(x) dx=0πsin(nx)(m=1bm sinh(mh) sin(mx))dx0πsin(nx) cos(x) dx=m=1bm0πsin(nx)sinh(mh) sin(mx)dx0πsin(nx) cos(x) dx=bn0πsin(nx)sinh(nh)sin(nx) dx

Where on the RHS we simplified it since all terms vanish expect when m=n. Above now becomes

0πsin(nx) cos(x) dx=bn0πsinh(nh) sin2(nx)  dx0πsin(nx) cos(x) dx=sinh(ny)  bn0πsin2(nx)  dx=π2bn sinh(nh)

bn=2π1sinh(nh)0πsin(nx) cos(x) dx=2π1sinh(nh) n(1+cos(nπ))n21

Looking at few values of n=2,3,4,... (not defined for n=1).

bn=2π 1sinh(h) 2(1+cos(2π))3,2π 1sinh(2h)3(1+cos(3π))8 ,1sinh(2h)2π 4(1+cos(4π))15...bn= 2π 1sinh(h)2(2)3,0 ,1sinh(3h)2π 4(2)8,0,...= 4π 1sinh(nh)nn21  for even n

Since

T(x,y)=n=1bn sinh(n(hy))sin(nx)

The final solution becomes

T(x,y)=4πn=even1sinh(nh) nn21 sinh(n(hy))sin(nx)


pict

4.8.5 Chapter 13, problem 3.2 Mary Boas book. second edition

A bar length L=10 cm with insulated sides is initially at 100 degrees. starting at t=0, the ends are held at zero degree. Find the temperature distribution in the bar at time t.

pict

Solution

This is a heat distribution problem governed by the diffusion or heat equation 2u(x,t)=1α2u(x,t)t

This is for a one spatial dimension.

To solve this PDE, assume the solution is u(x,t)=F(x)T(t)

Where F(x) is a function of the spatial x independent variable, and T(t) is a function of the time t.

Solving using separation of variable as with the Laplace equation. By substituting in the original PDE, we get

1Fd2Fdx2=1α21TdTdt

Since RHS and LHS are both equal, and each is a function of a different independent variable, then both must be equal to a constant. Let this constant be k2. hence we get 2 ODE equations to solve

1Fd2Fdx2=k21T1α2dTdt=k2

To solve 1T1α2dT(t)dt=k2,

1TdTdt=α2k21TdT=α2k2 dt1TdT=α2k2 dtlnT=α2k2tT=eα2k2t

To solve 1Fd2Fdx2=k2. Assume solution is F(x)=emx thendFdx=memx, d2Fdx2=m2emx. Substituting in the ODE gives m2emx=emx k2 or m2=k2, m=±ik, so F(x)=eikx or F(x)=eikx. By adding or subtracting these solutions we get a general solution that is either coskx or sinkx.

hence

F(x)={sinkxcoskx

So

u(x,t)=F(x)T(t)u(x,t)={eα2k2tsinkxeα2k2tcoskx

Now we have 2 candidate solutions. Since these are solutions for t>0, we need to find the conditions that u=0 at x=0 and x=L.

Since at x=0, u=0, then we can not use the coskx, solution because that will not go to zero at x=0.

So we are left with the solution

u(x,t)=eα2k2tsinkx

Now apply the second boundary condition, which is x=L,u=0.

This means 0=eα2k2tsinkL, then kL=nπ or K=nπL for n=1,2,3,...So our solution now looks like

u(x,t)=eα2(nπL)2tsinnπLx        n=1,2,3,

Since a scaled sum of these solutions is a solution, then the general solution is

u(x,t)=n=1bn eα2(nπL)2tsinnπLx     (1)

Now we need to find the bn

For this we use the initial conditions, i.e. for t=0. Then we had the sides at u=100, and since no time was involved then (this is the initial steady state), the governing PDE is the Laplace equation with only the x spatial coordinate.

2u0(x)=0, a solution to this is u0(x)=ax+b. when x=0, u0=100, hence 100=b.

When x=L,u=100, hence 100=La+b, or La=100100=0. hence a=0.

Hence at t=0,u0=100. So now from equation (1) above, we write

u(x,0)=u0(x)=100=n=1bn sinnπLx  

Taking the inner product of the LHS and RHS w.r.t. sinnπxL over [0,L] gives

0L100 sinnπLx dx=0L(m=1bm sinmπLx)sinnπLx  dx 1000L sinnπLx dx=m=1bm 0LsinmπLxsinnπLxdx1000L sinnπLx dx=bn  0Lsin2nπLx dx100 [LnπcosnπxL]0L=bn   L2100 [LnπcosnπLnπ]=bn   L2100Lnπ [cosnπ1]=bn   L2bn=200nπ [cosnπ1]

Looking at few values of n=1,2,3,4,..., bn=200nπ [cosnπ1]

bn=200π [cosπ1],2002π [cos2π1],2003π [cos3π1],2004π [cos4π1],...bn= 200π [11],2002π [11],2003π [11],2004π [11],.bn=  400π ,0,4003π ,0,

Hence bn=1n400πfor odd n

From equation (1) above we had

u(x,t)=n=1bn eα2(nπL)2tsinnπLx 

Hence

u(x,t)=400πodd n1n eα2(nπL)2tsin(nπLx)


pict

Animation

4.8.6 Chapter 13, problem 3.3 Mary Boas book. second edition

In the initial state of an infinite slab of thickness L, the face x=0 is at zero degrees, and the face at x=l is at 100 degrees. from t=0 on, the face at x=0 is held at 100 degrees, and the face at x=L at zero degrees. find the temp. distribution at time t.

pict

Solution

This is a heat distribution problem governed by the diffusion or heat equation 2u(x,t)=1α2u(x,t)t

This problem is similar to problem 2.2, where an infinite slab is considered the same as a slab with 2 insulated sides. Similar to problem 3.2, we get the following 2 candidate solutions to the above PDE

u(x,t)={eα2k2tsinkxeα2k2tcoskx

Since these are solutions for t>0, we need to find the conditions that u=100 at x=0 and u=0 at x=L.

discard the coskx solution because at x=0 we want u=100, which means eα2k2tcoskx=eα2k2t=100 which is not generally true for all t.

So the second solution is eα2k2tsinkx, which is 0 at x=L, hence eα2k2tsinkL=0, i.e. kL=nπ or k=nπL. So we start with the solution

u(x,t)= eα2(nπL)2tsinnπLx

To make this solution fit at x=0, we need to have 100=eα2k2tsinnπLx. but sin(x) is zero at x=0, hence to compensate, we start with the solution

u(x,t)= 100e(αnπL)2tsinnπLx

This solution gives 100 when x=0.

But now we need to check it again for x=L, we see it gives u=100 which is not correct. So need to subtract the term 100Lx (which is found below for the initial steady state). Now we have the candidate solution

(1)u(x,t)= 100100Lx+e(αnπL)2tsinnπLx

To verify: at x=0, this given u=100, and at x=L, this gives u(x,t)= 100100LL=0, which is what we want.

Since a scaled sum of these solutions is a solution, then the general solution is

(2)u(x,t)=100100Lx+n=1bn e(αnπL)2tsinnπLx

Now we need to find the bn. For this we use the initial conditions, i.e. for t=0.

The sides x=0 is at u=0, and since no time was involved then (this is the initial steady state), the governing PDE is the Laplace equation with only the x spatial coordinate. 2u0(x)=0, a solution to this is u0(x)=ax+b. when x=0, u0=0, hence 0=b.

When x=L,u=100, hence 100=La+0, or a=100L.Hence at t=0

u0=100Lx

So now from equation (2) above, we write

u(x,0)=u0(x)=100Lx=100100Lx+n=1bn sinnπLx      100Lx=100100Lx+n=1bn sinnπLx200Lx100=n=1bn sinnπLx

Take the inner product of the LHS and RHS w.r.t. sinnπLx over [0,L], we get

0L(200Lx100) sinnπLx dx=0L(m=1bm sinmπLx) sinnπLx  dx100 0L(2xL1)sinnπLx dx=m=1bm 0LsinmπLx sinnπLx dx100  Lnπ(1+cos(nπ))+2Lsin(nπ)n2π2=bn  0Lsin2mπLx dx100Lnπ(1+cos(nπ))+2sin(nπ)n2π2    =bn   L2bn=200 (nπ(1+cos(nπ))+2sin(nπ)n2π2)

so looking at few values of n=1,2,3,4,. Hence bn=200 (nπ(1+cos(nπ))+2sin(nπ)n2π2)

bn= 200 (π(11)+0π2), 200 (2π(1+1)+022π2),200 (3π(11)+032π2),200 (4π(1+1)+042π2),200 (5π(11)+052π2)bn= 200 (0), 200 (4π 4π2),200 (0),200 (8π 16π2),200 (0)...,bn=0,400 12π,0,40014π,0,bn=400 1nπ

Hence

bn=4001nπn=2,4,6,

From equation (2) above we had

u(x,t)=100100Lx+n=1bn e(αnπL)2tsinnπLx     

Hence

u(x,t)=100100Lx+n even400 1nπ  e(αnπL)2tsinnπLx u(x,t)=100100Lx400πn even 1n e(αnπL)2tsinnπLx


pict

Animation

4.8.7 Chapter 13, problem 3.7. Mary Boas book. second edition

A bar of length L with insulated sides has its ends also insulated from time t=0. Initially the temp. is u=x, where is x is the distance from one end. Determine the temp. distribution inside the bar at time t.

pict

Solution

In this problem, since all 4 sides are insulated, there will be no heat loss. Hence given the initial amount of heat inside the bar, we should obtain a solution that keeps this amount of heat the same. The solution should give a heat distribution at t large, such that it will be equally distributed over the length of the bar.

Since the two end sides are insulated, this is a Neumann type problem, so at t>0 we will use ux=0 at both ends (x=0,x=L)

This is a heat distribution problem governed by the diffusion or heat equation 2u(x,t)=1α2u(x,t)t

Similar to problem 3.2, we get the following two candidate solutions to the above PDE

u(x,t)={eα2k2tsinkxeα2k2tcoskx

Since these are solutions for t>0 we need to find the conditions that ux=0 at x=0 and ux=0 at x=L. The above conditions tells us to discard the sinkx solution because at x=0 ux=eα2k2tcoskx=eα2k2t0. So the second solution we are left with is

eα2k2tcos(kx)

Which satisfies ux=0 at x=0. Now at x=L, we also want ux=0, hence xeα2k2tcoskx=k eα2k2tsinkL=0. For this to be true we need k=0 or sinkL=0, i.e. kL=nπ or k=nπL

So there are two solutions to look at, one for k=0 and one for k=nπL. Looking at the k=nπL solution first, we start with the solution

 u(x,t)= e(αnπL)2tcosnπLx 

Now consider the initial conditions at t=0. At t=0, when x=L/2, u=L/2. Since we are told that u0=x. So from the above, we get u(L2,0)=cosnπLL2=cosnπ2 Which is zero for integer n. Hence to force the outcome to be L2, we need to add this term to the solution above. The solution now looks like

(1) u(x,t)= L2+e(αnπL)2tcosnπLx

Now Since a scaled sum of these solutions is a solution, then the general solution is

(2)u(x,t)=n=1bn (e(αnπL)2tcosnπLx)

Now we need to find the bn. For this we use the initial conditions, i.e. for t=0. We are told that at t=0, u0=x. From equation (1) above, we write, at time t=0

u(x,0)=x=n=1bn cosnπLx  

Taking the inner product of the LHS and RHS w.r.t. cosnπLx  over [0,L] gives

 0Lx cosnπLx =0L(m=1bm cosmπLx)cosnπLx dx  0Lx cosnπLx =m=1bm 0LcosmπLx cosnπLx dx   L2(1+cos(nπ)+nπsin(nπ))n2π2=bn  0Lcos2mπLx dxL2(1+cos(nπ)+nπsin(nπ))n2π2    =bn   L2bn=2L(1+cos(nπ)+nπsin(nπ))n2π2

Looking at few values of n=1,2,3,4

bn=2L(1+cos(nπ)+nπsin(nπ))n2π2

Hence

bn= 2L(1+cos(π)+πsin(π))π2, 2L(1+cos(2π)+2πsin(2π))22π2,2L(1+cos(3π)+3πsin(3π))32π2,2L(1+cos(4π)+4πsin(4π))42π2,...bn= 2L(11)π2, 2L(1+1)22π2,2L(11)32π2,2L(1+1)42π2,...bn=2L(2)π2, 2L(0)22π2,2L(2)32π2,2L(0)42π2,...bn=4Lπ2, 0,4L32π2,0,...bn=4Ln2π2

Hence

bn=4Ln2π2    n=1,3,5,...

From equation (1) above we had

 u(x,t)= L2+e(αnπL)2tcosnπLx    =L2+oddbn (e(αnπL)2tcosnπLx) u(x,t)=L2+odd4Ln2π2 e(αnπL)2tcosnπLx 

Hence

u(x,t)=L24Lπ2odd1n2 e(αnπL)2tcosnπLx


pict

Animation

Now we need to consider the k=0 solution we had at the beginning. Starting with u(x,t)=eα2k2tcoskx, for k=0, we have u(x,t)=1, and as before we want to look for a general solution as  ug(x,t) =n=1bn u(x,t), which is now will be ug(x,t) =n=1bn

To find bn, as before we use the conditions at t=0, which is u(x,0)= x. Therefore u(x,0)=x =n=1bn

Therefore n=1bn=x. The general solution in this case is given by

ug(x,t)=n=1bnug(x,t)=x

which is what we are required to show. What this means is that for k=0, the heat distribution does not change. So this is the same as the time-independent initial conditions.

4.8.8 Chapter 13, problem 3.9. Mary Boas book. second edition

A bar of length L=2 with insulated side at x=0 only, at t=0 held at zero temperature. at t>0 the right side is held at T=100 degrees. Determine the time dependent temperature distribution inside the bar

pict

Solution

In this problem, since left side is insulated, this is a Neumann condition at the x=0 side. So at t>0 we will use ux=0 at x=0. This is a heat distribution problem governed by the diffusion or heat equation 2u(x,t)=1α2u(x,t)t

Similar to problem 3.2, we get the following 2 candidate solutions to the above PDE

u(x,t)={eα2k2tsinkxeα2k2tcoskx

Since these are solutions for t>0. We need to find the conditions that ux=0 at x=0 and u=100 at x=L. Since we want ux=0 at x=0, then we can not use the sinkx solution. We are left with the solution eα2k2tcos(kx) which satisfies ux=0 at x=0. Now at x=L, we want u=100, hence eα2k2tcos(kL)=100. The way this is presented will not allow exact expression for k so we have to write u(L,t)=100+eα2k2tcos(kL), and now we are able to set only the eα2k2tcos(kL) term to zero, which means we need to have cos(kL)=0 or kL=2n12π or k=2n12πL. Hence we start with the solution

 u(x,t)= 100+eα2(2n12πL)2tcos(2n12πLx)(1)= 100+e(α2n12πL)2tcos(2n12πxL)

Since a scaled sum of these solutions is a solution, then the general solution is

(2)u(x,t)=100+n=1bn e(α2n12πL)2tcos(2n12πxL)

Now we need to find the bn. For this we use the initial conditions. We are told that at t=0, u0=0. So now from equation (1) above

u(x,0)=0=100+n=1bncos(2n12πxL)100=n=1bn cos(2n12πxL)

Taking the inner product of the LHS and RHS w.r.t. cos(2n12πxL) over [0,L] gives

100 0Lcos(2n12πxL) dx =0L(m=1bm cos(2m12πxL))cos(2n12πxL)  100 [12n12πLsin(2n12πxL)]0L =m=1bm 0Lcos(2m12πxL) cos(2n12πxL) dx   100 2L(2n1)π[sin(2n12πxL)]0L=bn  0Lcos2(2n12πxL)dx  200L(2n1)π [sin(2n12πLL)sin(0)] =bn   L2200L(2n1)π [sin(2n12π)] =bn   L2bn= 400(2n1)π [sin(2n12π)]

Looking at few values of n, bn= 400(2n1)π[sin(2n12π)], hence

bn=400(21)π[sin(212π)],400(41)π[sin(412π)],400(61)π[sin(612π)],400(81)π [sin(812π)]...bn= 400π[sin(12π)], 4003π[sin(32π)],4005π [sin(52π)],...bn=400π, +4003π,4005π,bn=(1)n2n+1400πn=0,1,2,3,

Therefore bn=(1)n2n+1400πn=0,1,2,3,

From equation (2) above we had

 u(x,t)=100+n=1bn e(α2n12πL)2tcos(2n12πxL)   

Substituting the value for bn and adjusting the summation index to start from n=0 since this is where bn is defined to start from, and so we need to replace 2n12 by 2n+12 in the rest of the above terms. Hence

u(x,t)=100+n=0(1)n2n+1400π e(α2n+12πL)2tcos(2n+12πxL)=100400πn=0(1)n2n+1  e(α2n+12πL)2tcos(2n+12πxL)


pict

Animation

4.8.9 Problem chapter 13, 3.10. Mary Boas book. Second edition

Separate the wave equation 2u=1v2ut2 into space and time equation and show that the space equation is the Helmholtz equation.

Solution

Assume that the solution is of this form u(x,y,z,t)=F(x,y,z)T(t)

That is, the solution of the PDE is the product of 2 functions, one that depends only on the spatial displacements and a function that depends only on time.

Substituting back in the PDE which when written in the long form is:

2ux2+2uy2+2uz2=1v2ut2

Hence,

ux=T(t)Fx2ux2=T(t)2Fx2

similarly we get 2uy2=T(t)2Fy22uz2=T(t)2Fz22ut2=F(x,y,z) d2Tdt2

Now 2u=1v2ut2 can be written as

T(t)2Fx2+T(t)2Fy2+T(t)2Fz2=1vF(x,y,z) d2Tdt2T 2F =1vF d2Tdt2

dividing the equation by T F, we get

1F 2F =1v1T d2Tdt2

Since the LHS is a function of space only, and RHS is a function of time only, and they equal to each others, then they must be equal to a constant, say k2

Hence we get

1F 2F =k21v1T d2Tdt2=k2

Looking at the space equation only:

1F(x,y,z) 2F(x,y,z) =k22F(x,y,z)=F(x,y,z) k22F(x,y,z)+F(x,y,z) k2=0

So the space equation is the Helmholtz equation.