0% found this document useful (0 votes)
46 views5 pages

Characteristic Equations for PDEs

The document provides examples of finding characteristic curves for first order partial differential equations and plotting them. It gives the characteristic equations for equations x(∂u/∂x) + y(∂u/∂y) = u and x^2(∂u/∂x) + y(∂u/∂y) = (x+y)u. It then plots the characteristic curves for each example in 2D and 3D.

Uploaded by

nidhikoshalia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views5 pages

Characteristic Equations for PDEs

The document provides examples of finding characteristic curves for first order partial differential equations and plotting them. It gives the characteristic equations for equations x(∂u/∂x) + y(∂u/∂y) = u and x^2(∂u/∂x) + y(∂u/∂y) = (x+y)u. It then plots the characteristic curves for each example in 2D and 3D.

Uploaded by

nidhikoshalia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PRACTICAL - 5

Finding the characteristic equation for first order


PDE and solving them
∂u ∂u
Example 1 Find the characteristic curves of the equation x + y = u and plot them.
∂x ∂y
dx du dy
Solution-The characteristic equations are = = .
x u y
Using (i)=(ii) and integrating,we have,
y
ϕ = = C1 , is the first integral.
x
Using (i)=(iii) and integrating,we have,
u
ψ = = C2 , is the second integral.
x
Solution:

I n [ ] : = Plot[{x, 2 x, 3 x}, {x, - 4, 4}, PlotLegends  {"y=x", "y=2x", "y=3x"},


Axes  True, AxesLabel  {"x", "y"}, PlotLabel  "Characteristic Curves"]
O u t [ ] =

Characteristic Curves
y

10

5 y=x
y=2x
x
-4 -2 2 4 y=3x

-5

-10
2 NIDHI [Link]

I n [ ] : = Plot[{x, 2 x, 3 x}, {x, - 4, 4}, PlotLegends  {"u=x", "u=2x", "u=3x"},


Axes  True, AxesLabel  {"x", "u"}, PlotLabel  "Characteristic Curves"]
O u t [ ] =
Characteristic Curves
u

10

5 u=x
u=2x
x
-4 -2 2 4 u=3x

-5

-10

I n [ ] : = Plot3D[{x, 2 x, 3 x}, {x, - 4, 4}, {u, - 4, 4}, PlotLegends  {"y=x", "y=2x", "y=3x"},
Axes  True, AxesLabel  {"x", "u", "y"}, PlotLabel  "Characteristic Curves"]
O u t [ ] =

y=x
y=2x
y=3x
NIDHI [Link] 3

I n [ ] : = ParametricPlot3D[{{t, t, u}, {t, 2 t, u}, {t, 3 t, u}}, {t, - 5, 5}, {u, - 4, 4}]
O u t [ ] =

I n [ ] : = ParametricPlot3D[{{t, y, t}, {t, y, 2 t}, {t, y, 3 t}}, {t, - 5, 5}, {y, - 4, 4}]
O u t [ ] =

∂u ∂u
Example 3 Find the characteristic curves of the equation x 2 + y = (x + y) u and plot
∂x ∂y

them.
4 NIDHI [Link]

dx du dy
Solution - The characteristic equations are = = .
x2 (x+y) u y2
Using (i) = (ii) and integrating, we have,
(y - x)
ϕ= = C1, is the first integral.
xy
Using (i) = (iii) and integrating, we have,
u
ψ= = C2, is the second integral.
x-y
Solution:

x x x y-x y-x y-x


I n [ ] : = Plot , , , {x, - 3, 3}, PlotLegends  " =1", " =2", " =3",
1-x 1-2x 1-3x xy xy xy
Axes  True, AxesLabel  {"x", "y"}, PlotLabel  "Characteristic Curves"
O u t [ ] =

Characteristic Curves
y

0.5

y -x
x =1
xy
-3 -2 -1 1 2 3
y -x
=2
xy
-0.5
y -x
=3
xy

-1.0

-1.5
NIDHI [Link] 5

I n [ ] : = Plot3D{x - y, 2 (x - y), 3 (x - y)}, {x, - 3, 3}, {y, - 3, 3},


u u u
PlotLegends  " =1", " =2", " =3", Axes  True,
x-y x-y x-y
AxesLabel  {"x", "y", "u"}, PlotLabel  "Characteristic Curves"
O u t [ ] =

u
=1
x -y
u
=2
x -y
u
=3
x -y

You might also like