Solve Wave Equation: e^(-x^2), x*e^(-x^2), -infinity<x<infinity

In summary: I gotyt = 1/2(-4e^-(x+2t)^2+4e^-(x-2t)^2)+1/4(2e^{-(x+2t)^2}+2*e^{-(x-2t)^2}) and after subbing initial condition t as 0,
  • #1
JI567
174
0

Homework Statement


So it says solve this wave equation :
[y][/tt] - 4 [y][/xx] = 0
on the domain -infinity<x<infinity

with initial conditions y(x,0) = e^(-x^2), yt(x,0) = x*(e^(-x^2))

Homework Equations



I used the D Alembert's solution which is 1/2(f(x+ct)+f(x-ct)) + 1/2c ∫ g(z) dz

The Attempt at a Solution


I just replaced the f in the D'alembert equation by e^(-x^2) and c by 2. To get g(z) I integrated the yt function by substitution method and used x+2t and x-2t as the integral boundaries.

My solution was

y(x,t) = 1/2(e^(-x^2){x+2t}+e^(-x^2){x-2t})+1/2c(-1/2*e^{-(x+2t)^2}+1/2*e^{-(x-2t)^2})

Is this correct? Can someone please confirm or correct me. Please!
 
Physics news on Phys.org
  • #2
JI567 said:

Homework Statement


So it says solve this wave equation :
[y][/tt] - 4 [y][/xx] = 0
on the domain -infinity<x<infinity

with initial conditions y(x,0) = e^(-x^2), yt(x,0) = x*(e^(-x^2))

Homework Equations



I used the D Alembert's solution which is 1/2(f(x+ct)+f(x-ct)) + 1/2c ∫ g(z) dz

The Attempt at a Solution


I just replaced the f in the D'alembert equation by e^(-x^2) and c by 2. To get g(z) I integrated the yt function by substitution method and used x+2t and x-2t as the integral boundaries.

My solution was

y(x,t) = 1/2(e^(-x^2){x+2t}+e^(-x^2){x-2t})+1/2c(-1/2*e^{-(x+2t)^2}+1/2*e^{-(x-2t)^2})

Is this correct? Can someone please confirm or correct me. Please!

Well, you can check your work by plugging [itex]y(x,t)[/itex] into the differential equation [itex]y_{tt} - 4 y_{xx} = 0[/itex] to see if it's a solution.
 
  • #3
stevendaryl said:
Well, you can check your work by plugging [itex]y(x,t)[/itex] into the differential equation [itex]y_{tt} - 4 y_{xx} = 0[/itex] to see if it's a solution.

Hi, I have no idea how to do it. Because if I take ytt of the y(x,t) and yxx of the y(x,t) It gets really really complicated. I have to differentiate using the product rule method 2 times for f(x) and one time for g(x). I think that's way too complicated. Can you please tell me where I did wrong in solving the problem? Many thanks
 
  • #4
Well, another check is to see if your solution satisfies the initial conditions. I don't even understand how it satisfies y(x,0) = e^(-x^2) ?!
 
  • #5
BvU said:
Well, another check is to see if your solution satisfies the initial conditions. I don't even understand how it satisfies y(x,0) = e^(-x^2) ?!

You mean by putting t as 0 in the y(x,t) equation and see if I am just left with e^(-x^2) ? I just replaced the f of D'alembert equation with f(x) which equals to e^(-x^2). Is that part correct atleast?
 
  • #6
What if I write it as

y(x,t) = 1/2(e^-(x+2t)^2+e^-(x-2t)^2)+1/2c(-1/2*e^{-(x+2t)^2}+1/2*e^{-(x-2t)^2}). This should be correct right? Please reply...
 
  • #7
With c = 2 that would simplify a great deal; perhaps then you can check that it satisfies the initial condition for yt :)
And maybe also that it satisfies the wave equation :) :)

If not, we have to go back and investigate the integration you carried out :(
 
  • #8
BvU said:
With c = 2 that would simplify a great deal; perhaps then you can check that it satisfies the initial condition for yt :)
And maybe also that it satisfies the wave equation :) :)

If not, we have to go back and investigate the integration you carried out :(

I can do the yt by differentiating the y(x,t) equation once with respect to time then putting t as 0. But for satisfying the wave equation I need to do ytt and yxx that will require complicated product rule differentiation! or is there any simple way?
 
  • #9
One step at a time. What is the simple y(x,t) and does it satisfy the yt initial condition ?

RE wave equation: Alembert story is that any function of x-ct and any function of x+ct satisfy the equation. But it's still good to check. Not that hard, you can do it.
 
  • #10
BvU said:
One step at a time. What is the simple y(x,t) and does it satisfy the yt initial condition ?

RE wave equation: Alembert story is that any function of x-ct and any function of x+ct satisfy the equation. But it's still good to check. Not that hard, you can do it.

By differentiating y(x,t) = 1/2(e^-(x+2t)^2+e^-(x-2t)^2)+1/2c(-1/2*e^{-(x+2t)^2}+1/2*e^{-(x-2t)^2}) with respect to t once I got

yt = 1/2(-4e^-(x+2t)^2+4e^-(x-2t)^2)+1/4(2e^{-(x+2t)^2}+2*e^{-(x-2t)^2}) and after subbing initial condition t as 0, I end up with e^-(x^2) not x*e^-(x^2)

Can you identify where did I do wrong...
 
  • #11
Ah,

JI567 said:
What if I write it as

y(x,t) = 1/2(e^-(x+2t)^2+e^-(x-2t)^2)+1/2c(-1/2*e^{-(x+2t)^2}+1/2*e^{-(x-2t)^2}). This should be correct right? Please reply...
And there's me naively thinking that with c = 2 that is equal to e^-(x-2t)^2.

Do you mean ½ c or 1/(2c) ?

e^-(x-2t)^2 is no good anyway: yt(x, 0) would be a factor 4 too high. So maybe you do mean 1/(2c) ...

RE post #10: what is the derivative of ##e^{x^2}## ? I think we are getting closer to what's going wrong ! Product rule is one thing, chain rule is another !
 
  • #12
Yepp! I did wrong differentiation before, now I just corrected and it matches initial condition for yt! So I am correct now as it also matches initial condition for y!

Is it really necessary to check with wave equation? Satisfying initial conditions should be enough right?!
 
  • #13
You studying economics or physics ?
Think of the satisfaction when it comes out just fine :)
 
  • Like
Likes progyan
  • #14
Lol I am studying engineering...I am already satisfied man, differentiating two more times will be hustle...

Anyways
BvU said:
You studying economics or physics ?
Think of the satisfaction when it comes out just fine :)

Now, the next question I have is repeat this same equation with same initial condition but now on a semi infinite domain and i have a boundary condition of y(0,t) = 0.

Where do I need to make the change? As far as I know D'Alembert's solution can't be used for semi infinite domain unless the function is odd...I don't know what to do now...
 
  • #15
I could have guessed. Engineering is halfway between science and economics :)

No hustle: ## {d\over dx} e^{x^2} = 2x e^{x^2}## so ##{d^2\over dx^2} e^{x^2} = 4x^2 e^{x^2} + 2 e^{x^2}##

And I would do the check for economical reasons too: good chance there still is some error hidden somewhere and then you've done all this work for no glory ($, marks, whatever)...

RE next question:
Hehe, now you need your physics intuition: wave equation, boundary condition y(0,t)=0 ... I would say that sounds like reflection of a running wave from a fixed end.
Only: "same initial condition" is contradicting y(0,t) = 0. That really wordly what the exercise says ?
 
  • #16
You just differentiated ex^2 twice but I have to differentiate the entire wave equation with respect to x twice...gonna be more work...

Yes that's exactly what it says, same initial condition but semi infinite domain so yeah its fixed at one end but what solution do I apply? I mean I know that now we can set a value for x<0 but don't understand how is it going to help with D'alembert solution...
 
  • #17
Reflection fixed end: wave moving one way + same wave but with negative sign moving the other way: this link (but then one picture down)

I still don't know what to do with y(x,0) = exp(-x2) AND y(0,t) = 0. A Gaussian is positive definite...
 
  • #18
BvU said:
Reflection fixed end: wave moving one way + same wave but with negative sign moving the other way: this link (but then one picture down)

I still don't know what to do with y(x,0) = exp(-x2) AND y(0,t) = 0. A Gaussian is positive definite...

What's the problem here? To be honest I have no idea why these boundary and initial conditions even matter! Our lecturer was sooo vague in explaining. Can you please explain why are these initail and boundary conditions actually necessary for any wave equation problems?
 
  • #19
Just like with other differential equations, boundary conditions are needed to pin down a particular solution. The wave equation by itself is satisfied by a general solution u(x,t) = F(x-ct) + G(x+ct) where F and G can be any function. The F propagates to the right, G to the left.


With the original initial conditions y(x,0) and yt(x,0) you found a Gaussian that for 5/8 moves to the right and for 3/8 to the left (the simplification I was aiming for).

A condition y(0,t) = 0 can only be met if F(x-ct) = -G(x+ct) y(0,t) = 0 excludes an initial condition y(0,0) = 1 as in the original problem. In fact, the initial condition y(x,0) = e^(-x^2) is not equal to 0 anywhere !
 
  • #20
BvU said:
Just like with other differential equations, boundary conditions are needed to pin down a particular solution. The wave equation by itself is satisfied by a general solution u(x,t) = F(x-ct) + G(x+ct) where F and G can be any function. The F propagates to the right, G to the left.With the original initial conditions y(x,0) and yt(x,0) you found a Gaussian that for 5/8 moves to the right and for 3/8 to the left (the simplification I was aiming for).

A condition y(0,t) = 0 can only be met if F(x-ct) = -G(x+ct) y(0,t) = 0 excludes an initial condition y(0,0) = 1 as in the original problem. In fact, the initial condition y(x,0) = e^(-x^2) is not equal to 0 anywhere !

Why does it have to be equal to 0? I thought boundary conditions were applied directly to wave equation not the initial conditions...
 
  • #21
And if we do it like F(x-ct) = -G(x+ct) then how would we solve it? Maybe that's how we are supposed to do...can you tell me how would I solve it that way
 
  • #22
I thought you said "Now, the next question I have is repeat this same equation with same initial condition but now on a semi infinite domain and i have a boundary condition of y(0,t) = 0." in post #14 ?

I can't reconcile that with y(x,0) = e^(-x^2) so I'm stuck too. We need someone else to help us out...
 
  • #23
BvU said:
I thought you said "Now, the next question I have is repeat this same equation with same initial condition but now on a semi infinite domain and i have a boundary condition of y(0,t) = 0." in post #14 ?

I can't reconcile that with y(x,0) = e^(-x^2) so I'm stuck too. We need someone else to help us out...

Can't we do it like you know the odd function approach? where we define a value for x<0 of our own as its not given to us, so like -f(x) = f(-x)

for example

taking w as f(x) when 0<x<L
and taking w as -f(-x) when x<0

does that help at all with anything...
 

What is the wave equation?

The wave equation is a mathematical formula that describes the behavior of waves, such as sound waves or electromagnetic waves.

What is the function e^(-x^2)?

The function e^(-x^2) is an exponential function that decreases rapidly as x increases. It is commonly used in statistics and probability calculations.

How do you solve the wave equation with the function e^(-x^2)?

To solve the wave equation with the function e^(-x^2), you would use the method of separation of variables. This involves separating the dependent variable (in this case, the wave function) and the independent variables (in this case, x) and then solving for each variable separately.

What is the solution for x*e^(-x^2)?

The solution for x*e^(-x^2) is a Gaussian function, which is a bell-shaped curve. It is commonly used to describe the probability distribution of a random variable.

What is the significance of -infinity

The range of -infinity to infinity in the wave equation indicates that the equation applies to all values of x, both positive and negative. This allows for a more general solution that can be applied to a wide range of situations.

Similar threads

  • Advanced Physics Homework Help
Replies
19
Views
325
  • Advanced Physics Homework Help
Replies
4
Views
890
  • Advanced Physics Homework Help
Replies
10
Views
320
  • Advanced Physics Homework Help
Replies
3
Views
1K
Replies
1
Views
757
  • Advanced Physics Homework Help
Replies
7
Views
3K
  • Advanced Physics Homework Help
Replies
6
Views
763
  • Advanced Physics Homework Help
Replies
4
Views
977
Replies
1
Views
1K
  • Advanced Physics Homework Help
Replies
3
Views
1K

Back
Top