jianxu
- 91
- 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!