Solve Heat Equation PDE with Boundary Conditions

saxen
Messages
44
Reaction score
0

Homework Statement


u_{t}=3u_{xx} x=[0,pi]
u(0,t)=u(pi,t)=0
u(x,0)=sinx*cos4x

Homework Equations





The Attempt at a Solution



with separation of variables and boundry conditions I get:

u(x,t)= \sumB_{n}e^-3n^{2)}}*sinnx

u(x,0)=sinx*cos4x

f(x)=sinx*cos4x=\sumB_{n}*sinnx

And here is where I am stuck! I tried computing B_{n} by computing it like a Fourier coeff. of f(x) but all I got was zero... I don&#039;t really know where to go from here.<br /> <br /> I&#039;m having a hard time with Fourier analysis, that&#039;s why I have bombarded this forums with question these last couple of days. I really appreciate the help I get.
 
Physics news on Phys.org
Hey,
It might help to consult the literature on this; Try http://en.wikipedia.org/wiki/Heat_equation#equation_6".

And as for your case, in particular, can you please show us how did you integrate the Coefficient? It should be something along the lines of:
<br /> B_n \propto \int_{0}^{\pi}f(x)\sin(nx\pi)<br />
as per your statement, certainly not zero!

Daniel
 
Last edited by a moderator:
danielakkerma said:
Hey,
It might help to consult the literature on this; Try http://en.wikipedia.org/wiki/Heat_equation#equation_6".

And as for your case, in particular, can you please show us how did you integrate the Coefficient? It should be something along the lines of:
<br /> B_n \propto \int_{0}^{\pi}f(x)\sin(nx\pi)<br />
as per your statement, certainly not zero!

Daniel

Bn= 2/L *integral sinx*cos4x*sinnpix/L

L should be pi since my intervall is 0 to pi, or have I misunderstood something? Then integral becomes:

http://www.wolframalpha.com/input/?i=integrate+sinx*cos4x*sin(n*x)

sin(n+5)pi should be zero for all n?
 
Last edited by a moderator:
Thanks dude, this problem is driving me insane.
 
Okay,
Firstly I solved your problem numerically, and received the following graph, tested it using two schemes, and it's mighty accurate!(Pat on the back here :)).
Since we're getting zero here, one naturally inclines to use a Taylor expansion of the series, around Pi.
In the case of Sin(n*x), we'll get, up to the second order:
That the expansion of the integral, at large, gives:
B_n = \frac{(15 + n^2) \sin(n \pi)}{((-5 + n) (-3 + n) (3 + n) (5 + n))}
This resolves, for most N, as:
B_n = \frac{-n(x-\pi)^3}{3}
I would advise you to plot the resulting function using this expansion, and see whether it matches the attached diagram.
Lets hope it works!
Daniel
 

Attachments

Thanks! Pat on back is well deserved =). Will try this. Do you think there is a way to solve this analytical?
 
Last edited:
The Fourier solution method is very discreet and is only effective for particular cases. I would advise you to use, in such PDEs and those beyond these(i.e Hyperbolic ones etc.) Numerical methods..
Daniel
 
I tried this problem again this morning and solved after 5 minutes. I am sooooo stupid.

sinx*cos4x = 1/2*(sin3x+sin5x)

So: ∑Bn∗sinnx = 1/2(sin3x+sin5x)

---> Bn1sinn1x+Bn2+sinn2=1/2(sin3x+sin5x)

Bn1=Bn2=1/2

n1=3
n2=5

And its solved. That is all.
 
  • #10
Well done!
I had a feeling this had to sit with reducing your compound expression with the cosines and sines...
Congratulations, and kudos!
Daniel
 
  • #11
saxen said:

Homework Statement


u_{t}=3u_{xx} x=[0,pi]
u(0,t)=u(pi,t)=0
u(x,0)=sinx*cos4x

Homework Equations





The Attempt at a Solution



with separation of variables and boundry conditions I get:

u(x,t)= \sumB_{n}e^-3n^{2)}}*sinnx

u(x,0)=sinx*cos4x

f(x)=sinx*cos4x=\sumB_{n}*sinnx

And here is where I am stuck! I tried computing B_{n} by computing it like a Fourier coeff. of f(x) but all I got was zero... I don&#039;t really know where to go from here.<br /> <br /> I&#039;m having a hard time with Fourier analysis, that&#039;s why I have bombarded this forums with question these last couple of days. I really appreciate the help I get.
<br /> <br /> Why does your summation formula for u(x,t) not have t in it anywhere?<br /> <br /> RGV
 

Similar threads

Back
Top