Answer check transport equation (1st order linear PDE)

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
jianxu
Messages
91
Reaction score
0

Homework Statement



Hi everyone, I just wanted to double check if I've solved this correctly?

Given:
[tex]\left.\frac{du}{dx} + sin(x)\frac{du}{dy} = 0[/tex]

[tex]\left.-\infty < x < \infty[/tex]

y > 0

[tex]\left.u(\frac{\pi}{2} , y ) = y^{2}[/tex]

Solve the PDE

Homework Equations


Method of characteristics

The Attempt at a Solution


Using method of characteristics, first I said:

[tex]\left.\frac{dy}{dx}= \frac{sin x}{1}[/tex]

taking the integral I get
[tex]\left. y = -cos(x) + C[/tex]

solving for C:
C = y + cos(x)

so now,
[tex]\left.u(x,y) = f(y+cos(x))[/tex]

our initial condition gives us the following:
[tex]\left.u(\frac{\pi}{2},y) = y^{2}[/tex]
so:
[tex]\left.u(\frac{\pi}{2},y) = f(y)[/tex]

which means:
[tex]\left. f(y) = y^{2}[/tex]

Therefore:
[tex]\left. u(x,y) = f(y + cos x) = (y+cos(x))^{2}[/tex]

I think this should be right but I wanted to double check. Thanks!
 
Physics news on Phys.org
Why don't you, then? (Double check, that is.) One thing you should get in the habit of doing is checking your own work. Take the partials of u(x, y) and see if they satisfy your differential equation and initial conditions. If they do, you're golden.
 
hm didn't think about that before. thanks