Solving PDEs: Char Field & Characteristic Curve

fluidistic
Gold Member
Messages
3,928
Reaction score
272

Homework Statement


Solve the following PDE's:
\frac{\partial u }{\partial t }+c \frac{\partial u }{\partial x} with u(x,0)=h(x). (1)
\frac{\partial u }{\partial t }+u \frac{\partial u }{\partial x} with u(x,0)=h(x). (2)
Hints:
Specify the characteristic field of directions associated to each equation.
Consider the curve \gamma (s) =(s,0,h(s)) in \mathbb{R}^3. Get the characteristic curve \gamma (s,t) that passes through in each \gamma (s) in t=0, solving the DE that determines the field of characteristic directions.

Homework Equations


No idea, self studying. Tried separation of variables method, assuming that u(x,t)=f(x)g(t).

The Attempt at a Solution


Using separation of variables I reach \int _{g(t_0)}^{g(t_1)} \frac{dg}{g}=K(t_1-t_0) and \int _{f(x_0)}^{f(x_1)} \frac{df}{f}=K(x_1-x_0). So that \ln g (t_1)- \ln g(t_0)=K(t_1-t_0) and \ln f (x_1)- \ln f(x_0)=K(x_1-x_0).
I'm not confident in myself nor do I know how to proceed further if this is right.
 
Physics news on Phys.org
I don't believe that separation of variables is intended here- the problem says specifically, "Specify the characteristic field of directions associated to each equation." Do you understand what the "characteristic field of directions" is?

(By the way, in order to have "Partial Differential Equations", you have to have equations! Are we to assume that those are equal to 0?)
 
May I suggest a textbook which I've used for some time which I think is very accessible: "Basic Partial Differential Equations" by Bleecker and Csordas. There is a chapter on first-order PDE which I think you'd find accessible (easy to follow) and I bet you'd like it and it's in the library on most campuses. Start simple, first-order, constant coefficients. Get that straight, then first-order, variable coefficients, then attempt to tackle first-order non-linear (quasi-linear) like the second one above.
 
Both first order PDE's (the standard diffusion equation and the inviscid Burgers equation) can be solved by the method of characteristics. This online handout from stanford explains the basic method:
www.stanford.edu/class/math220a/handouts/firstorder.pdf

Try to understand what a characteristic is. It is actually quite important, mathematically as well as physically.
 
Ok thanks guys, I'm definitely looking to study more before attacking the first problem.
HallsofIvy said:
I don't believe that separation of variables is intended here- the problem says specifically, "Specify the characteristic field of directions associated to each equation." Do you understand what the "characteristic field of directions" is?

(By the way, in order to have "Partial Differential Equations", you have to have equations! Are we to assume that those are equal to 0?)
No I don't know what it is (I'm going to spend some time now on it!). And yes I forgot to equal them to 0, sorry about that.

jackmell said:
May I suggest a textbook which I've used for some time which I think is very accessible: "Basic Partial Differential Equations" by Bleecker and Csordas. There is a chapter on first-order PDE which I think you'd find accessible (easy to follow) and I bet you'd like it and it's in the library on most campuses. Start simple, first-order, constant coefficients. Get that straight, then first-order, variable coefficients, then attempt to tackle first-order non-linear (quasi-linear) like the second one above.
Too bad my campus library is closed up till last week of January, because they have the book! (checked out in their internet search books option).
bigfooted said:
Both first order PDE's (the standard diffusion equation and the inviscid Burgers equation) can be solved by the method of characteristics. This online handout from stanford explains the basic method:
www.stanford.edu/class/math220a/handouts/firstorder.pdf

Try to understand what a characteristic is. It is actually quite important, mathematically as well as physically.
Ok thanks a lot; this might be where I'll get most of my info for now.
I will repost here later.
 
To my understanding the characteristic lines are lines along which u(x,t) is constant.
So that if I take the directional partial derivative of u in the direction of these particular lines, I should get 0.
I think this means \vec \nabla u(x,t) \cdot \hat r=0. The problem is that I don't know what u(x,t) is.
Now I look back at the hint and see that I should consider t=0, so in a 3d dimensional graph of u(x,t) sketched in function of x and t, \gamma (s,0) lies in the x-u(x,t) plane.
I think I understand what curve \gamma (s,0) they ask me to find (I've skected it) but I'm not sure how to do find it. I must first find the characterstic lines of u(x,t) and then \gamma (s,0) will be the intersection of these lines with the x-u(x,t) plane.
I don't know how to solve the problem precisely because I don't know u(x,t) (although I know that if I know this function the problem is instantly solved).
 
You don't need u(x,t) to find the characteristics. That's the whole point. Work through Example 1 in the Stanford pdf file. It's the same as your first equation and they are very thorough. You'll see they find the characteristics and use them to solve the equation, they don't use the solution to find the characteristics.
 
Dick said:
You don't need u(x,t) to find the characteristics. That's the whole point. Work through Example 1 in the Stanford pdf file. It's the same as your first equation and they are very thorough. You'll see they find the characteristics and use them to solve the equation, they don't use the solution to find the characteristics.

Ok thanks.
I'm stuck at understanding when they say
Eliminating the parameter s, we observe that these curves are lines in R3 given by x−at = x0 ,
I have x(s)=cs+x_0, t(s)=s+t_0 and z=z_0.
Now I have to "eliminate the parameter s and reach x_0=x-ct. How did they get that?
My attempt: x(s)=x=cs+x_0... So this is not the way to eliminate s.
Edit: the closest thing I reach is x_0=x-c(t-t_0).
 
fluidistic said:
Ok thanks.
I'm stuck at understanding when they say
I have x(s)=cs+x_0, t(s)=s+t_0 and z=z_0.
Now I have to "eliminate the parameter s and reach x_0=x-ct. How did they get that?
My attempt: x(s)=x=cs+x_0... So this is not the way to eliminate s.
Edit: the closest thing I reach is x_0=x-c(t-t_0).

The constant t_0 in t(x)=s+t_0 is just an arbitrary constant. They just set it to zero. If you want to keep it around like you did in x_0=x-c(t-t_0) write that as x_0-c*t_0=x-ct putting all of the constants on one side. The message is still the same. The value of u(x,t) is constant along the characteristic lines x-ct=constant.
 
  • #10
Dick said:
The constant t_0 in t(x)=s+t_0 is just an arbitrary constant. They just set it to zero. If you want to keep it around like you did in x_0=x-c(t-t_0) write that as x_0-c*t_0=x-ct putting all of the constants on one side. The message is still the same. The value of u(x,t) is constant along the characteristic lines x-ct=constant.

Ah I see. I'm going to keep the constants of integration. Ok about that the message doesn't change, though it's not obvious to me that u(x,t) is constant for these lines.
In the PDE file they say
Now let S be the integral surface formed from a union of these
characteristic curves.
Perfect, this looks like my \gamma. So \gamma = (x(s),t(s),z(s))=(vs+x_0,s+t_0,z_0).
They go on to say
In doing so, we see that z(x, t) is constant along the lines x − at = x0 .
But I don't get it. When I look at z(x,t), it's worth z_0 which is constant for any ... oh wait, x and t. But x=vs-x_0 which lead to x-vt=constant as we saw. (sorry for changing letters, my c into v which is their a.) So I guess now I understand this point.
Hmm not really. For any x means x=v(t-t_0)+x_0 ah but for any t means... well I'm really confused here. Why only the lines x-vt, I don't know. It looks like for any x and any t so... any line?
 
  • #11
fluidistic said:
But I don't get it. When I look at z(x,t), it's worth z_0 which is constant for any ... oh wait, x and t. But x=vs-x_0 which lead to x-vt=constant as we saw. (sorry for changing letters, my c into v which is their a.) So I guess now I understand this point.
Hmm not really. For any x means x=v(t-t_0)+x_0 ah but for any t means... well I'm really confused here. Why only the lines x-vt, I don't know. It looks like for any x and any t so... any line?

You are maybe getting caught up in irrelevant details. Let's skip to the end. The idea is that u(x,t) is constant along curves where x-ct=constant. That means u(x,t) is really only a function of x-ct. Since if x1-c*t1=x2-c*t2 then you must have u(x1,t1)=u(x2,t2). Now what is that value? You have u(x,0)=h(x) as a boundary condition. That means u(x,t)=h(x-ct). Try substituting u(x,t)=h(x-ct) into your original PDE. Does it work?
 
  • #12
Dick said:
You are maybe getting caught up in irrelevant details. Let's skip to the end. The idea is that u(x,t) is constant along curves where x-ct=constant. That means u(x,t) is really only a function of x-ct. Since if x1-c*t1=x2-c*t2 then you must have u(x1,t1)=u(x2,t2). Now what is that value? You have u(x,0)=h(x) as a boundary condition. That means u(x,t)=h(x-ct). Try substituting u(x,t)=h(x-ct) into your original PDE. Does it work?

Yes it does satisfies the transport equation, but I'm not understanding anything. :/
I'm currently searching for a free ebook on PDE's on the Internet, if someone has any suggestions, feel free to post.
 
  • #14
I'm confused on the second PDE.
\frac{dx}{ds}=u(x,t), \frac{dt}{ds}=1 and \frac{du}{ds}=0. The latter equation tells me that u(x,t) is constant along s.
However t=s from integration and choosing t_0=0, so that u(x,t) is also a constant with respect to time, for a given x.
Since u(x,t) is constant with respect to s and time t, \frac{dx}{ds}=u(x,t) \Rightarrow x_0=x-\underbrace {u(x,t)}_{\text{constant}}t. This is similar to the previous equation.
Now u(x,t)=constant=h(x,0), I take x=x_0, so that u(x_0,t)=h(x_0)=h(x-ut).
When I plug back this function into the original PDE, I indeed reach 0 so that h(x-ut) (with u being a constant with respect to time) is a solution to the PDE.
In the original problem I forgot to mention that they ask about this particular PDE, until what value of t can we extend the solution?
In Stanford's PDF they say that there's a singularity from a certain t but I don't understand how to calculate this time t. Any help on this is welcome.
Also, is what I've done correct?
 
  • #15
Yes, what you have done is correct. h(x-ut) is a solution, but it's a solution only in implicit form. To actually find u you would need to solve the equation u=h(x-ut). You are only going to be able to pull this off if h(x) is a REALLY simple function. To get an intuition for what's going on pick a simple form of h(x), say h(x)=Kx for a K a constant. Now you can find the actual solutions. How does the singularity depend on K? Now can you picture what's going on in terms of the characteristics?
 
  • #16
Dick said:
Yes, what you have done is correct. h(x-ut) is a solution, but it's a solution only in implicit form. To actually find u you would need to solve the equation u=h(x-ut). You are only going to be able to pull this off if h(x) is a REALLY simple function. To get an intuition for what's going on pick a simple form of h(x), say h(x)=Kx for a K a constant. Now you can find the actual solutions. How does the singularity depend on K? Now can you picture what's going on in terms of the characteristics?

Ok thank you. If I was a mathematician I'd have to probably use the implicit function theorem or inverse function theorem to show that I can't solve for u in u=h(x-ut) for any function h. Unless I'm wrong.
So I took your example, this lead to u(x,t)=\frac{Kx}{1+Kt}, which indeed satisifies the PDE. When t=-\frac{1}{K}, u becomes undefinied. So I think this mean that for this particular h(x)=Kx, the solution would be valid for any t \neq -1/K.
And I'm not sure what's going on with the characteristics... It looks like it means that \frac{dx}{ds}=\frac{dx}{dt} becomes infinitely large for that particular value of t.
 
  • #17
fluidistic said:
Ok thank you. If I was a mathematician I'd have to probably use the implicit function theorem or inverse function theorem to show that I can't solve for u in u=h(x-ut) for any function h. Unless I'm wrong.
So I took your example, this lead to u(x,t)=\frac{Kx}{1+Kt}, which indeed satisifies the PDE. When t=-\frac{1}{K}, u becomes undefinied. So I think this mean that for this particular h(x)=Kx, the solution would be valid for any t \neq -1/K.
And I'm not sure what's going on with the characteristics... It looks like it means that \frac{dx}{ds}=\frac{dx}{dt} becomes infinitely large for that particular value of t.

You usually think of solutions to these kind of equations as starting at t=0 and integrating forward in time until the solution becomes singular. Then you stop. So for the time being, just think of the cases that have a singularity at positive t. Focus on a singular case like K=(-1). Then you have a singularity at t=1. Now draw some characteristics. What's the characteristic passing through (x,t)=(0,0), through (x,t)=(1/4,0), through (x,t)=(1/2,0) etc?
 
  • #18
Dick said:
You usually think of solutions to these kind of equations as starting at t=0 and integrating forward in time until the solution becomes singular. Then you stop. So for the time being, just think of the cases that have a singularity at positive t. Focus on a singular case like K=(-1). Then you have a singularity at t=1. Now draw some characteristics. What's the characteristic passing through (x,t)=(0,0), through (x,t)=(1/4,0), through (x,t)=(1/2,0) etc?

Ok thank you, this makes sense.
So for this particular case of K=-1, I'm having some troubles for the characteristic curves. If I'm not wrong I must find (x(s),t(s)) such that this passes by (0,0).
But the dependence on s bothers me somehow. x=x_0+tu, and t=s.
So I've plotted a 3d graph x-y-u and drew x_0 along the x axis. To graph well, I think I must get u(x,t) which is worth u=-\frac{x_0}{t}. But I thought u was worth -x/(1-t)... I'm totally confused.
 
  • #19
Very good notes from an excellent professor of a class I took on PDEs: http://www.math.ucsb.edu/~grigoryan/124A/lecs/lec2.pdf

Also, has anyone recommended Strauss' book?

I printed all of these lecture notes in preparation of the final for the course. Reads much better than any book I've found.
 
  • #20
fluidistic said:
Ok thank you, this makes sense.
So for this particular case of K=-1, I'm having some troubles for the characteristic curves. If I'm not wrong I must find (x(s),t(s)) such that this passes by (0,0).
But the dependence on s bothers me somehow. x=x_0+tu, and t=s.
So I've plotted a 3d graph x-y-u and drew x_0 along the x axis. To graph well, I think I must get u(x,t) which is worth u=-\frac{x_0}{t}. But I thought u was worth -x/(1-t)... I'm totally confused.

I'm not sure you getting the characteristic idea. u(x,t) is constant along curves where x-ut=constant, right? That means u is a constant. So the curve is a straight line. Let's figure out what the characteristic curve is through (x,t)=(1,0). Put x=1 and t=0. That gives 1-u(1,0)*0=constant. u(1,0)=h(1) and the constant=1. So x-h(1)*t=1 is the characteristic line through (1,0). If h(x)=(-x), then the characteristic line is x+t=1. Do the same exercise and find the characteristic through (2,0). If the characteristic lines intersect, you likely have a singularity there. The idea is that the value of u along a characteristic is determined by h, if two characteristics intersect then they may have conflicting values of h.
 
Last edited:
  • #21
Dick said:
I'm not sure you getting the characteristic idea. u(x,t) is constant along curves where x-ut=constant, right? That means u is a constant. So the curve is a straight line. Let's figure out what the characteristic curve is through (x,t)=(1,0). Put x=1 and t=0. That gives 1-u(1,0)*0=constant. u(1,0)=h(1) and the constant=1. So x-h(1)*t=1 is the characteristic line through (1,0). If h(x)=(-x), then the characteristic line is x+t=1. Do the same exercise and find the characteristic through (2,0). If the characteristic lines intersect, you likely have a singularity there. The idea is that the value of u along a characteristic is determined by h, if two characteristics intersect then they may have conflicting values of h.
Ok I think I'm understanding it now.
For (x,t)=(2,0) I get the characteristics line x+2t=2 or x(t)=2-2t. It's a line along the x-axis starting at x=2 and going to minus infinity. While for (x,t)=(1,0) the characteristics was a line along the x-axis starting at x=1 and going to minus infinity. So not only they cross each other but they are crossed infinitely many times.
Hmm this doesn't sound good... I guess I made an error?
 
  • #22
fluidistic said:
Ok I think I'm understanding it now.
For (x,t)=(2,0) I get the characteristics line x+2t=2 or x(t)=2-2t. It's a line along the x-axis starting at x=2 and going to minus infinity. While for (x,t)=(1,0) the characteristics was a line along the x-axis starting at x=1 and going to minus infinity. So not only they cross each other but they are crossed infinitely many times.
Hmm this doesn't sound good... I guess I made an error?

Think in the (x,t) plane, not the (x,y) plane. All of the characteristics cross at (0,1), right?
 
  • #23
Dick said:
Think in the (x,t) plane, not the (x,y) plane. All of the characteristics cross at (0,1), right?

Right. I wasn't even graphing in the (x,y) plane (I don't have an y axis), instead, I was making x variates without variating t (erroneously).
Yes both lines cross at (0,1). So what's the lesson after all of this? For a special case -u(x,t)=K(x-ut)- of a special case -K=1-, there's a singularity of u(x,t) when t=K=1.
When characteristics lines intersects, there's a singularity?
 
  • #24
fluidistic said:
Right. I wasn't even graphing in the (x,y) plane (I don't have an y axis), instead, I was making x variates without variating t (erroneously).
Yes both lines cross at (0,1). So what's the lesson after all of this? For a special case -u(x,t)=K(x-ut)- of a special case -K=1-, there's a singularity of u(x,t) when t=K=1.
When characteristics lines intersects, there's a singularity?

Sure, that's the lesson. Crossing characteristics mean you'll a singularity. Are you supposed to get some kind of expression for a general function h(x)? Look at the picture on page 15 of the Stanford notes and think about what happens if r1 and r2 are very close together.
 
  • #25
Dick said:
Sure, that's the lesson. Crossing characteristics mean you'll a singularity. Are you supposed to get some kind of expression for a general function h(x)? Look at the picture on page 15 of the Stanford notes and think about what happens if r1 and r2 are very close together.

Okay thank you for all so far. About h(x) I do not know, I copied all the information given in the assignments (course is already over). My professor is known to be very exigeant mathematically, so it wouldn't surprises me if I have to solve the problem for any twice differentiable h. Though working through particular examples isn't bad either.
Okay I look at this picture. If r1 and t2 are very close to each other u will have a singularity almost instantly (t<<1). Is this reasoning right?
 
  • #26
fluidistic said:
Okay thank you for all so far. About h(x) I do not know, I copied all the information given in the assignments (course is already over). My professor is known to be very exigeant mathematically, so it wouldn't surprises me if I have to solve the problem for any twice differentiable h. Though working through particular examples isn't bad either.
Okay I look at this picture. If r1 and t2 are very close to each other u will have a singularity almost instantly (t<<1). Is this reasoning right?

Not necessarily. Try doing it. The characteristics are x=h(r1)t+r1 and x=h(r2)t+r2, right? At what value of t do they intersect?
 
  • #27
Dick said:
Not necessarily. Try doing it. The characteristics are x=h(r1)t+r1 and x=h(r2)t+r2, right? At what value of t do they intersect?

At t=\frac{r_2-r_1}{h(r_1)-h(r_2)}. With h=-x, this gives t=1 for all r_1 and r_2. In other words all characteristic curves will cross no matter what.
 
  • #28
fluidistic said:
At t=\frac{r_2-r_1}{h(r_1)-h(r_2)}. With h=-x, this gives t=1 for all r_1 and r_2. In other words all characteristic curves will cross no matter what.

Ok, now think about a general function h(x) and let r2 approach r1. Anything in there remind you of a difference quotient? Isn't this fun?
 
  • #29
Dick said:
Ok, now think about a general function h(x) and let r2 approach r1. Anything in there remind you of a difference quotient? Isn't this fun?

Hmm that's weird. When r2 approaches r1 it looks like t=-\frac{1}{h&#039;(r_1)}.
 
  • #30
fluidistic said:
Hmm that's weird. When r2 approaches r1 it looks like t=-\frac{1}{h&#039;(r_1)}.

Ok, you've got it. At points near r1 characteristics will cross at a time near -1/h'(r1). This is the inviscid Burger's equation and if you hunt around you can find statements that the time to developing a singularity is -1/min(h'(x)). Now you should be able to figure out why. Remember you are only intersected in singularities at positive time.
 
Last edited:
Back
Top