0% found this document useful (0 votes)
20 views2 pages

MTL712 Finite Difference Methods Hyperbolic PDEs 240814 130646

Uploaded by

ishavsingla2003
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)
20 views2 pages

MTL712 Finite Difference Methods Hyperbolic PDEs 240814 130646

Uploaded by

ishavsingla2003
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
You are on page 1/ 2

Department of Mathematics

MTL712: Computational Methods for Differential Equations


Exercise Set: Finite Difference Methods for Hyperbolic PDEs.

1. Use the Finite-Difference method with (a) h = 0.1, k = 0.05, to approxi-


mate the solution to the hyperbolic problem

∂2u ∂2u
(x, t) = 4 (x, t), 0 < x < 1, 0 ≤ t,
∂t2 ∂x2
with the boundary conditions

u(0, t) = 0 = u(1, t), 0 ≤ t,

and the initial conditons


∂u
u(x, 0) = sin(πx), (x, 0) = 0, 0 ≤ x ≤ 1
∂t
and compare the results at t = 0.5 with the exact soltuion u(x, t) =
sin(πx) cos(2πt).
π
2. Use the Finite-Difference method with (a) h = 10 , k = 0.05, (b) h =
π π
20 , k = 0.1 and (c) h = 20 , k = 0.05 to approximate the solution to the
wave equation

∂2u ∂2u
(x, t) = (x, t), 0 < x < π, 0 ≤ t,
∂t2 ∂x2
with the boundary conditions

u(0, t) = 0 = u(π, t), 0 ≤ t,

and the initial conditon


∂u
u(x, 0) = sin(x), (x, 0) = 0, 0 ≤ x ≤ 1,
∂t
and compare the results at t = 0.5 with the exact soltuion u(x, t) =
sin(x) cos(t).

3. Use the Finite-Difference method with m = 4, T = 1.0, N = 4 to approxi-


mate the solution to the wave equation

∂2u ∂2u
(x, t) = (x, t), 0 < x < 1, 0 ≤ t,
∂t2 ∂x2
with the boundary conditions

u(0, t) = 0 = u(1, t), 0 ≤ t,

and the initial conditions


∂u
u(x, 0) = sin(πx), (x, 0) = 0, 0 ≤ x ≤ 1,
∂t
and compare the results at t = 1.0 with the exact soltuion u(x, t) =
sin(πx) cos(πt).
4. Use the Finite-Difference method with h = 0.1, k = 0.1 to approximate
the solution to the wave equation

∂2u ∂2u
2
(x, t) = (x, t), 0 < x < 1, 0 ≤ t,
∂t ∂x2
with the boundary conditions

u(0, t) = 0 = u(1, t), 0 ≤ t,

and the initial conditons


∂u
u(x, 0) = sin(2πx), (x, 0) = 2π sin(2πx), 0 ≤ x ≤ 1,
∂t
and compare the results at t = 0.3 with the exact soltuion u(x, t) =
sin(πx)[cos(2πt) + sin(2πt)].

You might also like