Solving inhomogenous wave equation

In summary: The boundary conditions for w(x,t) are:w(0,t)=1, w_{x}(1,t)=0w(x,0)=u(x,0)-S(x)=1-\frac{x^{3}}{6}+\frac{x}{2}, w_{t}(x,0)=0So, for w(0,t)=1 we get:w(0,t)=\frac{A}{B}sin(0)+cos(0)=\frac{A}{B}=1And for w_{x}(1,t)=0 we get:w_{x}(x,t)=\frac{A}{B}kcos(kx)-ksin(kx) ==> w_{x}(1
  • #1
wahoo2000
37
0
I have made an attempt on this one, but I'm not quite sure that I have done it correctly so far..? I am now heading a (for me:)) massive partial integration, and therefore I think it's better to ask before I start.

Homework Statement


Find the solution u(x,t) of the inhomogenous wave equation

[tex]u_{tt}-u_{xx}=x, 0<x<1, t>0[/tex]
[tex]u(0,t)=1, u_{x}(1,t)=0[/tex]
[tex]u(x,0)=1, u_{t}(x,0)=0[/tex]

The Attempt at a Solution



Let u(x,t)=S(x)+w(x,t) where S''(x)=x, S(0)=S'(1)=0
then
S'(x)= X^2+C
S(x)=x^3/6+C*x+D
S(0)=0 ==> D=0
S'(1)=0 ==> C=-1/2
==>
S(x)=x^3/6-x/2

Then the equation for w is:
[tex]
w_{tt}-w_{xx}=0, 0<x<1, t>0[/tex]
[tex]w(0,t)=1, w_{x}(1,t)=0[/tex]
[tex]w(x,0)=u(x,0)-S(x)=1-\frac{x^{3}}{6}+\frac{x}{2}, w_{t}(x,0)=0
[/tex]

I will try to send the rest as a reply to this post... I get database error when I try to send more than this.. :/
 
Last edited:
Physics news on Phys.org
  • #2
Now I use separation of variables
w(x,t)=X(x)T(t)=/0
==>

[tex]\frac{X''(x)}{X(x)}=\frac{T''(t)}{T(t)}=\lambda<0[/tex]
==>

[tex]X(x)=Asin(\sqrt{-\lambda}x+Bcos(\sqrt{-\lambda}x)[/tex]
And since X(0)=1 ==> A=0
and therefore [tex]\lambda=-n^{2}\pi^{2}[/tex]
And then [tex]X_{n}x=cos(nx\pi)[/tex]
 
Last edited:
  • #3
same thing for t ==> [tex]T_{n}t=P_{n}sin(nt\pi)+Q_{n}cos(nt\pi)[/tex]
And since [tex]w_{t}(x,0)=0, T_{n}'t=P_{n}cos(nt\pi)-Q_{n}sin(nt\pi)[/tex]
==>[tex]Q_{n}=0[/tex]
This means that [tex]w(x,t)=\sum^{n=1}_{\infty}P_{n}sin(nx\pi)cos(nx\pi)[/tex]
 
  • #4
And to identify [tex]P_{n}[/tex] let t=0 (to use w(x,0))

[tex]w(x,0)=\sum^{\infty}_{n=1}P_{n}sin(nt\pi)=1-\frac{x^{3}}{6}+\frac{x}{2}[/tex]
Multiply both sides with [tex]sin(kx\pi)[/tex] and integrate over (0,1)

==>
[tex]\sum^{\infty}_{n=1}P_{n}\int^{0}_{1}sin(nt\pi)sin(kx\pi)dx = \int^{0}_{1}(1-\frac{x^{3}}{6}+\frac{x}{2})sin(kx\pi)dx[/tex]

And now it is time for the integration by parts... If it was correct so far!
 
Last edited:
  • #5
wahoo2000 said:
S'(x)= X^2+C
S(x)=x^3/6+C*x^2/2+D

==>
S(x)=x^3/6-x^2/4

Your solution for [tex] S(x) [/tex] is incorrect:

[tex] \int Cdx = Cx+D [/tex]

NOT

[tex] \frac{Cx^2}{2} + D [/tex]
 
  • #6
Yes, of course... S(x)=x^3/6-x/2
 
  • #7
wahoo2000 said:
Now I use separation of variables
w(x,t)=X(x)T(t)=/0
==>

[tex]\frac{X''(x)}{X(x)}=\frac{T''(t)}{T(t)}=\lambda<0[/tex]
==>

[tex]X(x)=Asin(\sqrt{-\lambda}x+Bcos(\sqrt{-\lambda}x)[/tex]
And since X(0)=1 ==> A=0
and therefore [tex]\lambda=-n^{2}\pi^{2}[/tex]
And then [tex]X_{n}x=cos(nx\pi)[/tex]

Why are you assuming [tex] \lambda < 0 [/tex] here? Don't you generally have to treat all three cases:
[tex] \lambda < 0 [/tex], [tex] \lambda = 0 [/tex], and [tex] \lambda > 0 [/tex] ?
 
  • #8
Hmm, I might have misunderstood this. In all examples I have seen, [tex]\lambda<0[/tex] is the one used. Therfore I thought it might be ok to assume that this is the case, if I find a non-trivial solution using that [tex]\lambda[/tex]
 
  • #9
wahoo2000 said:
Hmm, I might have misunderstood this. In all examples I have seen, [tex]\lambda<0[/tex] is the one used. Therfore I thought it might be ok to assume that this is the case, if I find a non-trivial solution using that [tex]\lambda[/tex]

You might also find non-trivial solutions for the other two cases. If you do, then the complete solution will be the product of your solutions for each of the 3 cases. I think you need to make sure that there are no non-trivial solutions for the other two cases.
 
  • #10
wahoo2000 said:
Now I use separation of variables
w(x,t)=X(x)T(t)=/0
==>

[tex]\frac{X''(x)}{X(x)}=\frac{T''(t)}{T(t)}=\lambda<0[/tex]
==>

[tex]X(x)=Asin(\sqrt{-\lambda}x+Bcos(\sqrt{-\lambda}x)[/tex]
And since X(0)=1 ==> A=0
and therefore [tex]\lambda=-n^{2}\pi^{2}[/tex]
And then [tex]X_{n}x=cos(nx\pi)[/tex]

Anyways, for the [tex]\lambda<0[/tex] case,

[tex]X(0)=1 \Rightarrow Asin(0) + Bcos(0) = B =1[/tex]

NOT [tex]A=0[/tex]
 
  • #11
Ah, okey! Then I have the check the other two cases as well. Thanks so far!
 
  • #12
[tex]\lambda=-n^{2}\pi^{2}[/tex]

Where did you get that from?
 
  • #13
Ok, I have studied the two other cases now...

For X the boundary conditions given are X(0)=1 and X'(1)=0
And X''(x)=[tex]\lambda*X(x)[/tex]
The characteristic equation is r^2=lambda and hence [tex]r_{1,2}=+-\sqrt{\lambda}, \lambda>0 [/tex]
and
[tex]r_{1,2}=+-i\sqrt{-\lambda}, \lambda<0.[/tex]

For case 1, lambda=0
X(x)=Ax+B
X'(x)=A

X(0)=B=1
X'(1)=A=0 ==> X(x)=0 and that is not what we are looking for... so now to the case where lambda>0:

[tex]X(x)=Ae^{\sqrt{\lambda}x}+Be^{-\sqrt{\lambda}x}[/tex]
and
[tex]X'(x)=\sqrt{\lambda}*(Ae^{\sqrt{\lambda}x}-Be^{-\sqrt{\lambda}x})[/tex]
then
X(0)=A+B=1
and
X'(1)[tex]= \sqrt{\lambda}*(Ae^{\sqrt{\lambda}}-Be^{-\sqrt{\lambda}})=0[/tex]
then I am not sure.. sqrt(lambda) obviously can't be zero, since lambda is larger than zero in this case.. Then the other part might be zero? But I am not sure if I can say it is.. If it is zero, then the case where lambda<0 alone gives the solution.

There is no need to do the same calculations for T since the equations and boundary conditions are the same, right?
 
  • #14
gabbagabbahey said:
Where did you get that from?

From the boundary condition [tex]u_{x}(1,t)=0[/tex]
X' is [tex]-Bsin(\sqrt{-\lambda}x)=0[/tex] for x=1
and since B is not allowed to be 0, [tex]sin(\sqrt{-\lambda})[/tex] has to be zero. And that is true if sqrt(-lamba)=n*Pi, which menas that [tex]\lambda=-n^{2}\pi^{2}[/tex]
 
  • #15
wahoo2000 said:
From the boundary condition [tex]u_{x}(1,t)=0[/tex]
X' is [tex]-Bsin(\sqrt{-\lambda}x)=0[/tex] for x=1
and since B is not allowed to be 0, [tex]sin(\sqrt{-\lambda})[/tex] has to be zero. And that is true if sqrt(-lamba)=n*Pi, which menas that [tex]\lambda=-n^{2}\pi^{2}[/tex]

This is incorrect.

gabbagabbahey said:
Anyways, for the [tex] \lambda<0 [/tex] case,

[tex] X(0)=1 \Rightarrow Asin(0) + Bcos(0) = B =1 [/tex]

NOT [tex] A=0 [/tex]

If [tex] X(0)=1[/tex] , then [tex]B=1 \Rightarrow X(x)=Asin(kx) +cos(kx) \Rightarrow X'(x) = Akcos(kx) -ksin(kx) [/tex] where [tex] k \equiv \sqrt{- \lambda} [/tex]

So,

[tex] X'(1)=0 \Rightarrow Akcos(k) -ksin(k)=0 \Rightarrow A = tan(k) \Rightarrow X(x)=tan(k)sin(kx)+cos(kx) [/tex]

But(!) these are not the boundary conditions you were given; you only have conditions for [tex] w(x,t) [/tex] NOT for [tex]X(x)[/tex] and [tex]T(t)[/tex] individually.

Here is what you actually know:

[tex]w(x,t)=(Asin(kx)+Bcos(kx))(Csin(kt) + Dcos(kt)) [/tex]

And so, for the first boundary condition:

[tex] w(0,t)=1 \Rightarrow (Asin(0)+Bcos(0))(Csin(kt)+Dcos(kt))=B(Csin(kt)+Dcos(kt))=1[/tex]

[tex] \Rightarrow (Csin(kt)+Dcos(kt))= \frac{1}{B}[/tex]

[tex] \Rightarrow w(x,t) = \frac{A}{B}sin(kx)+cos(kx)[/tex]

What do the other 3 boundary conditions say about [tex] w(x,t) [/tex] ?
 
  • #16
"[tex]\lambda=-n^{2}\\pi^{2}[/tex]
This is incorrect. "

Hmm.. Tried again and saw an error, but still get the same result? :confused:
X'= [tex]
-B\sqrt{-\lambda}sin(\sqrt{-\lambda}*1)=0
[/tex] But B or lambda can't be zero so then sqrt(-lambda)=n*Pi?

Then I made an attempt with the boundary conditions but I am getting confused... Is the solution really t-independent?
From the first BC you got w(x,t)=(A/B)sin(kx)+cos(kx), but since B=1, w(x,t)=Asin(kx)+Bcos(kx).

Then I uesd the second one, [tex]w_{x}(1,t)=0=(Ak cos(k)- k sin(k))=0
==>
A=\frac{k cos(k)}{k sin(k)} ==> \frac{1}{A}=tan(k) ==> A=\frac{1}{tan(k)}[/tex]

Then the third, w_t(x,0)=0
Is true because the soulution is independent of t, (because C and D = 0) ?

Fourth
w(x,0)=Asin(kx)+cos(kx)=1-x^3/6-x/2 I don't know what to do with it? True since there is no t..?

Then w(x,t)=(1/tan(k))sin(kx)+cos(kx)-1+x^3/6-x/2

But I don't know what to do now, this can't be it..? Seems suspiciously simple.. Need to get to u(x,t), and also it has to be written in some convenient form that can help me to calculate [tex]\sum^{\infty}_{k=0}\frac{1}{(2k+1)^{4}}[/tex]
 
Last edited:
  • #17
Are you sure you've posted the correct boundary conditions for u(x,t)?

i.e. are these correct:
[tex] u(0,t)=1, u_{x}(1,t)=0[/tex]
[tex] u(x,0)=1, u_{t}(x,0)=0[/tex]

?
 
  • #18
Yes... that is what it says.
 
  • #19
hmmm...okay, I think I found the problem:

(1) first, for w(x,t)+S(x) to satisfy the given wave equation, S''(x) should be negative x, not +x. This gives a general solution of S(x)=-(x^3)/6 +Ax +B

(2) second, S(0)=0 leaves w(x,t) with too harsh restrictions at x=0; it is better to set S(0)=1 so that w(0,t)=0. S'(1)=0 is fine though. This gives S(x)=-(x^3)/6 +x/2 +1.

So the boundary conditions for w(x,t) are:
[tex] (i) \quad w(0,t)=0 [/tex]
[tex] (ii) \quad w_x (1,t)=0 [/tex]
[tex] (iii) \quad w(x,0)=\frac{x^3}{6} - \frac{x}{2} [/tex]
[tex] (iv) \quad w_t (x,0)=0 [/tex]

Now you can get a meaningful solution for [tex]w(x,t)[/tex]

Start with the [tex]\lambda <0[/tex] and show me what you get.
 
Last edited:
  • #20
Hmm..

k=n*Pi=sqrt(-lambda) if my lambda was correct.

then
(i) w(0,t)=0=B(Csin(kt)+Dcos(kt)), and since B=1, Csin(kt)+Dcos(kt) must be =0

(ii) w_x(1,t)=0=(Akcos(k)-Bksin(k))(Csin(kt)+Dcos(kt))
And I know from (i) that Csin(kt)+Dcos(kt)=0 and hence Akcos(k)-ksin(k)=0 ==> A=(kcos(k))/ksin(k)=tan(k)

(iii) w(x,0)=x^3/6-x/2=(Asin(kx)+Bcos(kx))(Csin(0)+Dcos(0))=D(Asin(kx)+(Bcos(kx)=x^3/6-x/2
==> D(tan(k)sin(kx)+cos(kx))=x^3/6-x/2

(iv) w_t(x,0)=(Asin(kx)+Bcos(kx))(Ckcos(0)-Dksin(0))=Ck(Asin(kx)+Bcos(kx))=0
==> Ck=(tan(k)sin(kx)+cos(kx))=0

But I don't know how to continue from here?
 
  • #21
wahoo2000 said:
Hmm..

k=n*Pi=sqrt(-lambda) if my lambda was correct.

then
(i) w(0,t)=0=B(Csin(kt)+Dcos(kt)), and since B=1, Csin(kt)+Dcos(kt) must be =0

Why would B=1 here? doesn't (i) tell you that B=0?
 
  • #22
gabbagabbahey said:
Why would B=1 here? doesn't (i) tell you that B=0?
Sorry, got that from [tex]
X(0)=1 \Rightarrow Asin(0) + Bcos(0) = B =1
[/tex] but that is history now..
Hmm.. But why must B=0 and not Csin(kt)+Dcos(kt)=0?
Just because we _want_ to find solutions including t?
 
  • #23
wahoo2000 said:
Sorry, got that from [tex]
X(0)=1 \Rightarrow Asin(0) + Bcos(0) = B =1
[/tex] but that is history now..
Hmm.. But why must B=0 and not Csin(kt)+Dcos(kt)=0?
Just because we _want_ to find solutions including t?

[tex]
w(x,t)=(Asin(kx)+Bcos(kx))(Csin(kt) + Dcos(kt))
[/tex]

If

[tex]
(Csin(kt) + Dcos(kt))=0
[/tex]

then

[tex]
w(x,t)=(Asin(kx)+Bcos(kx))(0) =0
[/tex]

which is the trivial solution
 
  • #24
Ah, I see..

So then all Bcos(kx) disappears
and then, from
(iii)=> D(tan(k)sin(kx))=x^3/6-x/2
and
(iv)=> Ck(tan(k)sin(kx))=0
 
  • #25
wahoo2000 said:
Ah, I see..

So then all Bcos(kx) disappears
and then, from
(iii)=> D(tan(k)sin(kx))=x^3/6-x/2
and
(iv)=> Ck(tan(k)sin(kx))=0

What happened to A?
 
  • #26
A=tan(k) ?

from (ii)
Akcos(k)-ksin(k)=0
A=(ksin(k))/(kcos(k))=tan(k)
 
  • #27
wahoo2000 said:
A=tan(k) ?

from (ii)
Akcos(k)-ksin(k)=0
A=(ksin(k))/(kcos(k))=tan(k)
But your no longer using the same w(x,t) as before; remember (i) gives you B=0 now

[tex]\Rightarrow w(x,t)=Asin(kx)(Csin(kt)+Dcos(kt))[/tex]

or absorbing A into C and D,

[tex]w(x,t)=sin(kx)(Csin(kt)+Dcos(kt))[/tex]

What does (ii) say about this w(x,t)?
 
  • #28
gabbagabbahey said:
But your no longer using the same w(x,t) as before; remember (i) gives you B=0 now

[tex]\Rightarrow w(x,t)=Asin(kx)(Csin(kt)+Dcos(kt))[/tex]

or absorbing A into C and D,

[tex]w(x,t)=sin(kx)(Csin(kt)+Dcos(kt))[/tex]

What does (ii) say about this w(x,t)?


Hmm, absorbing? Never heard of that.. If [tex]w(x,t)=Asin(kx)(Csin(kt)+Dcos(kt))[/tex] and then after absorbing:
[tex]w(x,t)=sin(kx)(Csin(kt)+Dcos(kt))[/tex], have you not said that A=1 then?
 
  • #29
wahoo2000 said:
Hmm, absorbing? Never heard of that.. If [tex]w(x,t)=Asin(kx)(Csin(kt)+Dcos(kt))[/tex] and then after absorbing:
[tex]w(x,t)=sin(kx)(Csin(kt)+Dcos(kt))[/tex], have you not said that A=1 then?

Not really, I've just taken advantage of the fact that AC and AD are still constants and called them C and D. You can call them E and F if it makes you feel better, but it makes no real difference.
 
  • #30
Anyway.. if I keep the A
(ii) [tex]\Rightarrow w_{x}(1,t)=Akcos(kx)(Csin(kt)+Dcos(kt))=0[/tex] then cos(kx) should be zero because k and (Csin(kt)+Dcos(kt) are not zero, (and neither is A..), because if A=0 we have only trivial solution X(x)T(t)=0, and same if (Csin(kt)+Dcos(kt)=0, then per definition k is not zero since lambda<0.


then
(iii)[tex] \Rightarrow w(x,0)=D(Asin(kx))=\frac{x^3}{6}-\frac{x}{2}[/tex]

(iv)[tex] \Rightarrow w_{t}(x,0)=Ck(Asin(kx))=0[/tex]

Hmmm...and then, from (iv) Asin(kx) can't be zero (since A is not allowed to be zero), and k is not zero.
Then C must be zero.

so w(x,t)=Asin(kx)*Dcos(kt)
then this, together with (iii) says that
Asin(kx)*Dcos(0)=ADsin(kx)=x^3/6-x/2
then (ii)=>
w_x(1,t)=kAcos(k)*Dcos(kt)=0
 
  • #31
wahoo2000 said:
Anyway.. if I keep the A
(ii) [tex]\Rightarrow w_{x}(1,t)=Akcos(kx)(Csin(kt)+Dcos(kt))=0[/tex] then cos(kx) should be zero because k and (Csin(kt)+Dcos(kt) are not zero, (and neither is A..), because if A=0 we have only trivial solution X(x)T(t)=0, and same if (Csin(kt)+Dcos(kt)=0, then per definition k is not zero since lambda<0.

Right, so what does [tex]cos(kx)=0[/tex] tell you about k?
 
  • #32
that k=(n*Pi)/2...
so [tex]\lambda=-\frac{n^{2}\pi^{2}}{4}[/tex]
 
Last edited:
  • #33
wahoo2000 said:
that k=(n*Pi)/2...
so [tex]\lambda=-\frac{n^{2}\pi^{2}}{4}[/tex]

Close, but only true if n is odd. The best way to represent that is :

[tex](ii) \Rightarrow k= \frac{(2n-1) \pi}{2} \quad \ni n=1,2,3 \ldots [/tex]

[tex] \Rightarrow w(x,t)= \sum_{n=1}^{\infty} A_nsin \left( \frac{(2n-1) \pi}{2} x \right)(C_nsin \left(\frac{(2n-1) \pi}{2} t \right)+D_n cos \left( \frac{(2n-1) \pi}{2} t \right) ) [/tex]

And (iv) still implies that C=0,

[tex] \Rightarrow w(x,t)= \sum_{n=1}^{\infty} A_n D_n sin \left( \frac{(2n-1) \pi}{2} x \right) cos \left( \frac{(2n-1) \pi}{2} t \right) [/tex]

So, what do you get from (iii) now?
 
  • #34
Well... that means that

[tex]
\Rightarrow w(x,0)= \sum_{n=1}^{\infty} A_n D_n sin \left( \frac{(2n-1) \pi}{2} x \right) cos \left( 0\right) \Rightarrow \sum_{n=1}^{\infty} A_n D_n sin \left( \frac{(2n-1) \pi}{2} x \right)=\frac{x^{3}}{6}-\frac{x}{2}
[/tex]
 
  • #35
wahoo2000 said:
Well... that means that

[tex]
\Rightarrow w(x,0)= \sum_{n=1}^{\infty} A_n D_n sin \left( \frac{(2n-1) \pi}{2} x \right) cos \left( 0\right) \Rightarrow \sum_{n=1}^{\infty} A_n D_n sin \left( \frac{(2n-1) \pi}{2} x \right)=\frac{x^{3}}{6}-\frac{x}{2}
[/tex]

Yes, and from this you can use Fourier's method to determine [tex]A_nD_n[/tex]. Give it a shot; what do you get?
 

Similar threads

  • Calculus and Beyond Homework Help
Replies
11
Views
729
  • Calculus and Beyond Homework Help
Replies
2
Views
798
  • Calculus and Beyond Homework Help
Replies
21
Views
823
  • Calculus and Beyond Homework Help
Replies
1
Views
429
  • Calculus and Beyond Homework Help
Replies
0
Views
139
  • Calculus and Beyond Homework Help
Replies
7
Views
254
  • Calculus and Beyond Homework Help
Replies
10
Views
301
  • Calculus and Beyond Homework Help
Replies
14
Views
372
  • Calculus and Beyond Homework Help
Replies
7
Views
549
  • Calculus and Beyond Homework Help
Replies
5
Views
612
Back
Top