2 Topic: Applications of Partial Differential Equations
2 Topic: Applications of Partial Differential Equations
2 Topic: Applications of Partial Differential Equations
Applications of
Prepared by:
Prof. Sunil
Department of Mathematics & Scientific Computing
NIT Hamirpur (HP)
2u 2u 2u u u
A x , y Bx , y C x , y f x , y, , 0
x 2 xy y 2 x y
.
This equation is linear in second order terms. PDE is said to be “linear or quasi-linear”
according as f is linear or non-linear.
Above PDE is classified as Elliptic, Parabolic or Hyperbolic.
Elliptic Equations:
In elliptic equations, the highest-order derivatives are of order two and appear
with opposite signs.
They typically arise in problems where the solution represents a steady-state
behavior or equilibrium, such as in problems involving diffusion or
electrostatics.
Examples include Laplace's equation and Poisson's equation.
Elliptic equations have smooth solutions and exhibit properties such as
maximum and minimum principles.
Examples:
2
Elliptic: B 4AC 0 : Laplace’s equation in two dimensions:
2u
x 2
2u
y 2
0.
2u 2u
Poisson’s equation: f x , y .
x 2 y 2
Parabolic Equations:
Parabolic: B 2 4AC 0 : One dimensional heat-flow equation: c 2
2 u u
x 2 t
.
Hyperbolic Equations:
Hyperbolic: B 2 4AC 0 : One-dimensional wave equation:
2u
t 2
c2
2u
x 2
.
Elliptic equations often require iterative methods for solving large systems of
equations, such as iterative solvers like the Jacobi or Gauss-Seidel methods.
Parabolic equations require time-stepping methods, such as the finite
difference method or the finite element method, to integrate the solution forward
in time.
Hyperbolic equations often require specialized methods that preserve the
characteristics of the equations, such as finite volume methods or high-
resolution shock-capturing schemes.
4. Stability and Convergence Analysis:
Stability and convergence properties of numerical methods depend on the
underlying properties of the PDE being solved.
The classification helps determine the appropriate stability criteria and
convergence rates for numerical methods applied to solve the PDE.
Understanding the classification allows for rigorous analysis of numerical
methods to ensure accurate and reliable solutions.
5. Physical Interpretation:
In many applications, the classification of a PDE provides insights into the
underlying physical processes being modeled.
For example, the classification of the Navier-Stokes equations as hyperbolic
helps in understanding the propagation of fluid waves and shocks in fluid flow
problems.
Knowing the type of PDE can guide the interpretation of solutions and facilitate
the development of physical intuition about the problem being studied.
2y 2y
c2
t 2 x 2
Where:
y(x, t) is the displacement or wave amplitude as a function of position x and time t.
c is the speed of wave propagation.
2y
represents the second partial derivative of u with respect to time, describing
t 2
the acceleration of the wave at each point.
2y
represents the second partial derivative of u with respect to position,
x 2
describing the curvature or spatial variation of the wave.
y-axis
T2
Q β
δs
P
α
T1 y
δx x-axis
O x x+δx A
Let m be the mass per unit length of the string. Consider the motion of an
element PQ of length s . Since the string does not offer resistance to bending (by
assumption), the tensions T1 and T2 at P and Q, respectively are tangential to the
curve.
Since there is no motion in the horizontal direction, we have
T1 cos T2 cos T (constant). (i)
Applications of Partial Differential Equations: One-dimensional Wave Equation 7
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2y 2 y
T
tan tan 2y T y .
t 2 ms t ms x x x x x
[Since s x to a first approximation, and tan and tan are the slopes of the curve
of the string at x and x x ]
y y
2 y T x x x x x T 2 y
, as x 0
t 2 m x m x 2
2y 2y T
c2 , where c 2 .
2 2
t x m
Thus, 2y 2y
c2
t 2 x 2 .
This is the partial differential equation giving the transverse vibrations of the
string.
It is also called the one-dimensional wave equation or vibrations of a stretched
string and y y (x, y) is called displacement function.
Boundary and Initial conditions:
Boundary conditions:
2y 2y
The boundary conditions, satisfied by the equation c2 are:
t 2 x 2
(i). y 0 when x 0 y0, t 0
. This means that .
(ii). y 0 when x ℓ yℓ, t 0
These should be satisfied for every value of t.
Initial conditions:
If the string is made to vibrate by pulling it into a curve y =f(x) and then releasing it, the
initial conditions are:
Applications of Partial Differential Equations: One-dimensional Wave Equation 8
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
(i). y f x , when t = 0,
y
(ii). 0 when t = 0.
t
SOLUTION of the one-dimensional wave equation by separation of variables:
2y 2y
The wave equation is c2 . (i)
t 2 x 2
Assume that y is separable, therefore let y Xx Tt , (ii)
be a solution of (i).
2y 2y
Then XT and X T .
t 2 x 2
X kX 0 and T kc 2 T 0 . (iv)
Solving (iv), we get
(i). When k is positive and = p2, (say)
(iii). When k = 0,
X c1x c 2 and T c 3 t c 4 .
y c1e px c 2 e px c 3 e cpt c 4 e cpt ,
y c1x c 2 c 3 t c 4 .
Of these three solutions, we have to choose that solution which is consistent with the
physical nature of the problem.
Since, we are dealing with a problem on vibrations, y most be a periodic function of x
and t. Therefore, the solution must involve trigonometric terms.
Accordingly, y c1 cos px c 2 sin px c 3 cos cpt c 4 sin cpt , (v)
and 0 c1 cos pℓ c 2 sin pℓ c 3 cos cpt c 4 sin cpt . (vii)
n
which is satisfied when sin pℓ 0 pℓ n p , where n = 1, 2, 3,……
ℓ
A solution of the wave equation satisfying the boundary condition is
nct nct nx
y c 2 c 3 cos c 4 sin sin .
ℓ ℓ ℓ
is also a solution.
Case 2: If boundary conditions and initial conditions are given:
Now applying the initial conditions.
y
y = f(x) and 0 , when t = 0, then from (viii), we have
t
Applications of Partial Differential Equations: One-dimensional Wave Equation 10
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
nx
f x a n sin (ix)
n 1
ℓ
nc nx
and 0 ℓ
b n sin
ℓ
(x)
n 1
ℓ
2 nx
where a n f x sin dx and yx ,0 f x .
ℓ ℓ
0
*****************************
D’Alembert’s solution of the one-dimension wave equation:
2y 2 2y
The wave equation is c . (i)
t 2 x 2
Let us introduce new independent variables u x ct , v x ct , so that y becomes a
y y y
function of u and v. Then
x u v
2y 2
2 y 2 y 2 y
Similarly, c 2 .
t 2 2 uv 2
u v
2y
Substituting in (i), we get 0. (ii)
uv
y
Integrating (ii) w.r.t. v, we get f (u ) , (iii)
u
where f(u) is an arbitrary function of u. Since the integral is a function of u alone, we
may denote it by u . Thus
Applications of Partial Differential Equations: One-dimensional Wave Equation 11
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
**********************
FINAL CONCLUSIONS
2y 2 2y
1. The solution of one-dimensional wave equation c
t 2 x 2
y0, t 0
satisfying the boundary conditions is given by
yℓ, t 0
nct nct nx
y y x , t a n cos b n sin sin .
n 1 ℓ ℓ ℓ
2y 2y
2. The solution of one-dimensional wave equation c2
t 2 x 2
Applications of Partial Differential Equations: One-dimensional Wave Equation 12
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
y0, t 0
satisfying the boundary conditions and the initial conditions
yℓ, t 0
yx ,0 f x
y is given by
0
t t 0
nct nx
y y x , t a n cos sin ,
n 1
ℓ ℓ
ℓ
2 nx
where a n f x sin dx and yx ,0 f x .
ℓ ℓ
0
*****************************************
2y 2y
of c2 . (i)
t 2 x 2
Boundary conditions: As the end points of the string are fixed, for all time, therefore
the boundary conditions are y0, t yℓ, t 0 . (ii)
Initial conditions: Since the initial transverse velocity of any point of the string is zero,
therefore, the initial conditions are
x y
yx ,0 a sin and 0 , when t = 0. (iii)
ℓ t
Now we have to solve (i) subject to the boundary conditions (ii) and initial conditions (iii).
ℓ
nct nx 2 nx
Then yx , t a n cos sin , where a n yx ,0 sin dx
n 1
ℓ ℓ ℓ ℓ
0
Applications of Partial Differential Equations: One-dimensional Wave Equation 13
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2 ℓ x nx 2a ℓ x nx
ℓ 0
a sin
ℓ
sin
ℓ
dx
ℓ 0
sin
ℓ
sin
ℓ
dx ,
x ct
Hence, the required solution is yx , t a sin cos .
ℓ ℓ
Q.No.2.: The points of trisection of a string are pulled aside through the same distance on
opposite sides of the position of equilibrium and string is released from rest. Derive
an expression for the displacement of the string at subsequent time and show that the
mid-point of the string always remains at rest.
Sol.: Let B and C be the points of trisection of the string OA of length ℓ , say. Initially the
string is held in the form OBCA , where BB CC a (say)
y-axis
ℓ
B , a
3
a
C A x-axis
O
B ℓ, 0
a
3a 2ℓ
The equation of OB is y x. C ,a
ℓ 3
2a ℓ 3a
The equation of BC is y a x i.e. y ℓ 2 x .
ℓ 3 ℓ
3
3a
The equation of CA is y x ℓ .
ℓ
Here the boundary conditions are y0, t yℓ, t 0 .
And the initial conditions are
Applications of Partial Differential Equations: One-dimensional Wave Equation 14
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
3a 1
ℓ x, 0x
3
3a 1 2ℓ y
y0, t ℓ 2 x , x and 0 when t = 0.
ℓ 3 3 t
3a 2ℓ
ℓ x ℓ , xℓ
3
nct nx
We have yx , t a n cos sin ,
n 1
ℓ ℓ
2 ℓ nx
where a n yx ,0 sin dx
ℓ 0 ℓ
nx nx
2 ℓ / 3 3ax
x ℓ sin nx dx
2ℓ / 3 3a ℓ 3a
sin dx ℓ 2 x sin dx
ℓ 0 ℓ ℓ ℓ / 3 ℓ ℓ 2 ℓ / 3 ℓ ℓ
2
ℓ/3
6a ℓ nx ℓ n x
x
2 n
cos 1. 2 2 sin
ℓ ℓ n ℓ 0
2ℓ / 3
ℓ nx ℓ2 nx
ℓ 2 x cos 2 . 2 2 sin
n ℓ n ℓ
ℓ/3
2
ℓ
ℓ nx ℓ n x
x ℓ cos 1. 2 2 sin
n ℓ
n ℓ
2ℓ / 3
6a ℓ 2 n ℓ2 n ℓ 2 2 n 2ℓ 2 2 n ℓ 2 n
cos sin cos sin cos
2 3n 2
3 n 2
3 3n 2 2 3n
ℓ 3 n 3 3
2ℓ 2 n ℓ 2 2 n ℓ2 2n
sin cos sin
n 22 3 3n 3 n 22 3
6a 3ℓ 2
2
.
ℓ n
sin
2 2
n
3
sin
2n 18a
2 2 sin
3 n
n
3
1 1n
2n n n n n n
Since sin 3 sin n 3 sin n cos 3 cos n sin 3 0 1 sin 3 1 sin 3
n n
a n 0 , when n is odd.
Applications of Partial Differential Equations: One-dimensional Wave Equation 15
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
36a n 9a 2m
sin , when n is even. i.e. sin , taking n = 2m
n 22 3 m 22 3
ℓ 9a 1 2m 2mct
Also y , t
2 2 m 1 m 2
sin
3
cos
ℓ
sin m 0 , since sin m 0 .
The displacement of the mid-point of the string is zero for all values of t.
Thus, the mid-point of the string is always at rest.
Q.No.3.: A tightly stretched string with fixed end points x = 0 and x ℓ is initially at rest in
its equilibrium position. If it is set vibrating by giving to each of its points a velocity
x ℓ x , find the displacement of the string at any distance x from one end at any
time t.
Sol.: Here the boundary conditions are y0, t yℓ, t 0 .
nct nct nx
yx , t a n cos b n sin sin . (i)
n 1 ℓ ℓ ℓ
y nc nct nx c nct nx
and b n cos sin nb n cos sin
t n 1 ℓ ℓ ℓ ℓ n 1 ℓ ℓ
y
But x ℓ x when t = 0. (Initial condition)
t
c nx
c nx
x ℓ x nb n sin nb n sin ,
n 1
ℓ n 1 ℓ ℓ ℓ
c 2 ℓ nx
where nb n x ℓ x sin dx
ℓ ℓ 0 ℓ
Applications of Partial Differential Equations: One-dimensional Wave Equation 16
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
ℓ
2 ℓ nx ℓ2 nx ℓ3 nx
x ℓ x cos ℓ 2 x 2 2 sin 2 cos
ℓ n ℓ n ℓ n 3 3
ℓ
0
8ℓ 2
= , taking n 2m 1 .
3 2m 13
8ℓ 3
bn .
c 4 2m 14
nct nx
From yx , t b n sin sin , the required general solution is
n 0
ℓ ℓ
yx , t
8ℓ 3 1 2m 1ct sin 2m 1x . Ans.
sin
c 4
m 1 2m 1 4 ℓ ℓ
Q.No.4.: A tightly stretched string of length ℓ with fixed ends is initially in equilibrium
x
position. It is set vibrating by giving each point a velocity v 0 sin 3 . Find the
ℓ
displacement y(x, t).
or
A string of length ℓ is initially at rest in equilibrium position and each of its points is
y x
given the velocity b sin 3 . Find the displacement y(x, t).
t t 0 ℓ
Sol.: The given is the problem of a vibrating stretched string. So consider one-dimensional
wave equation
2y 2y
c2 , (i)
t 2 x 2
y0, t 0
where . Boundary conditions (ii)
yℓ, t 0
Applications of Partial Differential Equations: One-dimensional Wave Equation 17
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
yx ,0 0
and y 3 x . Initial condition (iii)
b sin
t t 0 ℓ
Now, we have to solve (i) subject to the boundary conditions (ii) and initial conditions (iii).
Now the solution of (i) satisfying (ii) is given by
nct nct nx
yx , t a n cos b n sin sin . (iv)
n 1 ℓ ℓ ℓ
nct nx
Now yx , t a n cos sin [from (iii)]
n 1
ℓ ℓ
a n 0n .
nct nx
Hence, (iv) reduces to yx , t b n sin sin . (v)
n 1
ℓ ℓ
bℓ 3 x nx
sin nb n sin ,
c ℓ n 1
ℓ
x 3x
ℓ ℓ 3 sin sin
2 ℓb x nx 2b ℓ ℓ sin nx dx
nb n
ℓ c
. sin 3
ℓ
sin
ℓ
dx b n
cn 4 ℓ
0 0
x
[∵ sin 3A 3 sin A 4 sin 3 A where we take A ]
ℓ
ℓ
b nx x nx 3x
bn
2cn
3 sin
ℓ
sin
ℓ
sin
ℓ
sin
ℓ
dx (vi)
0
ℓ ℓ
3b nx x b nx 3x
4cn 2 sin
ℓ
sin
ℓ
dx
4cn 2 sin
ℓ
sin
ℓ
dx
0 0
Applications of Partial Differential Equations: One-dimensional Wave Equation 18
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
ℓ ℓ
3b x x b x x
cosn 1 cosn 1 dx cosn 3 cosn 3 dx
4cn ℓ ℓ 4cn ℓ ℓ
0 0
b 4x
ℓ
2x 2x
3 3 cos cos cos dx
4c ℓ ℓ ℓ
0
∵ 2 sin A sin B cosA B cosA B
2x 2x 4x
sin sin sin
b ℓ ℓ ℓ b 3ℓ 0 sin n 0n Z
3x 3
4c 2 2 4 4c
ℓ ℓ ℓ
3bℓ
.
4c
Again from (vi), we have
ℓ ℓ
b 3x x 3x b 3x x 2 3x
b3
6c
3 sin
ℓ
sin
ℓ
sin 2
ℓ
dx 3 2 sin
12c ℓ
sin 2 sin
ℓ ℓ
dx
0 0
b 6x
ℓ
2x 4x
3 cos cos
1 cos dx
12c ℓ ℓ ℓ
0
∵ 2 sin A sin B cosA B cosA B
Applications of Partial Differential Equations: One-dimensional Wave Equation 19
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
ℓ
2x 4x 6x
3 sin 3 sin sin
b ℓ bℓ .
ℓ ℓ x
sin n 0n Z
12c 2 4 6 12c
ℓ ℓ ℓ 0
Hence, from (v), the required solution is given by
nct nx ct x 3ct 3x
yx , t b n sin sin b1 sin sin b 3 sin sin 0 0 ........
n 1
ℓ ℓ ℓ ℓ ℓ ℓ
given c 2 1
Sol.: We know that the partial differential equation of the vibrating string is giving by
2y
t 2
c2
2y
x 2
2y
x 2
, 0x c 1
2
(i)
y0, t 0
Also the boundary conditions are (ii)
y, , t 0
k
2 sin x sin nx 2 sin 2x sin nx dx
0
k
cosn 1x cosn 1x cosn 2x cosn 2x
0
k k sin 2 x sin 3x
1 cos 2 x cos x cos 3x dx x sin x
2 3 0
0
k
0 0 0 k . ∵ sin n 0n Z
For n = 2, (v) gives
a2
2
k
k sin x sin 2 x sin 2 xdx 2 sin x sin 2 x 2 sin 2 2 x dx
0 0
k
cos x cos 3x 1 cos 4 x dx
∵ cos 2A 1 2 sin A
2
0
k sin 3x sin 4 x k
sin x x k ∵ sin n 0n Z
3 4 0
y x , t a n cos nt sin nx a1 cos t sin x a 2 cos 2t sin 2x .........
n 1
2y 2 2y
of c . (i)
t 2 x 2
y0, t 0
Also the boundary conditions are (ii)
yℓ, t 0
y( x ,0) x ℓ x
and the initial conditions are y . (iii)
0
t t 0
Now we have to solve (i) subject to the boundary conditions (ii) and initial conditions (iii).
Here the solution of (i) satisfying (ii) and (iii) is given by
nct nt
y y x , t a n cos sin , 0 x ℓ, (iv)
n 1
ℓ ℓ
ℓ
2 nx
where a n f x sin dx , yx,0 f x x ℓ x .
ℓ ℓ
ℓ
ℓ
2 nx
Now a n x ℓ x sin dx ,
ℓ I II ℓ
0
2 2ℓ 3 2ℓ 3
00 cos n 0 (As n varies from 1 to n 0 )
ℓ n 3 3
n 3 3
2 2ℓ 3
. 1 cos n 3
4ℓ 2 1 1n
0,
8ℓ 2
n is even
3
ℓ n 3 3
n 3 3, n is odd.
n
Hence, from (iv), the required solution is given by
8ℓ 2 1 nct nx
y y x , t 3 . 3 cos ℓ sin ℓ
n odd n
where n 2m 1 , odd.
Q.No.7.: A string is stretched between the fixed points (0, 0) and ℓ,0 and released at rest
from the initial deflection given by
2k ℓ
f (x) x, when 0 x
ℓ 2
.
2k ℓ
ℓ x , when x ℓ
ℓ 2
Find the deflection of the string at time t.
Sol.: The given is the problem of a vibrating stretching string. Therefore, we consider one-
dimensional wave equation
2y 2y
c2 . (i)
t 2 x 2
y0, t 0
Also given the boundary conditions are (ii)
y, , t 0
y
0
t t 0
2k ℓ.
and the initial conditions are
ℓ x , 0x (iii)
2
y ( x ,0 )
2k ℓ x , ℓ
xℓ
ℓ 2
Now we have to solve (i) subject to the boundary conditions (ii) and initial conditions (iii).
Applications of Partial Differential Equations: One-dimensional Wave Equation 23
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
ℓ
2 nx
where a n f x sin dx , y(x, 0) = f(x)
ℓ ℓ
0
ℓ / 2 ℓ
2 2k nx 2k nx
ℓ ℓ I ℓ I
an x sin dx ℓ x sin dx
ℓ ℓ
0 II ℓ /2 II
4k ℓ 2 n ℓ2 n ℓ2 n ℓ2 n
cos sin 0 0 cos sin
ℓ 2 2n 2 n 22 2 2 n 2 n 22 2
4 k 2ℓ 2 n 8k n
sin sin [ n 0 , as n varies from 1 to ] (v)
ℓ 2 n 2 2 2 n 2 2 2
8k 1 n nct nx
y( x , t )
2 2
sin cos sin .
n 1 n 2 ℓ ℓ
Q.No.8.: The ends of tightly stretched string of length ℓ are fixed at x = 0 and x ℓ . The
string is at rest with the point x = b drawn aside through a small distance d and
released at time t = 0. Show that
2dℓ 2 1 nb nb nct
yx , t sin sin cos .
bℓ b n 1 n
2 2 ℓ ℓ ℓ
Sol.: The given is the problem of a vibrating stretched string of length ℓ . So consider
2y 2 2y
c . (i)
t 2 x 2
Applications of Partial Differential Equations: One-dimensional Wave Equation 24
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
y0, t 0
Also the boundary conditions are (ii)
yℓ, t 0
y
and the initial conditions are 0 . (iii)
t t 0
Now we have to solve (i) subject to the boundary conditions (ii) and initial conditions (iii).
To find y(x, 0), equation of OA is given by
d0
y0 x 0 d x .
b0 b
y-axis A(b, d)
b x-axis
O(0, 0) L B
Therefore, the solution of (i), satisfying (ii), (iii) and (iv) is given by
nct nx
y( x , t ) a n cos
ℓ
sin
ℓ
, 0 x ℓ,
n 1
ℓ
2 nx
where a n f x sin dx , and y(x, 0) = f(x).
ℓ ℓ
0
b ℓ
2 d nx d nx
an x sin dx x ℓ sin dx
ℓ b I ℓ bℓ I ℓ
0 II b II
b ℓ
n x n x nx sin nx
cos sin cos
2d ℓ (1) ℓ 2d ℓ
x ℓ .
ℓ (1)
an x . 2 2 2
bℓ n n
ℓ b ℓ n n 2
ℓ 2 ℓ 2
ℓ 0 ℓ 0
ℓ
Q.No.9.: A tightly stretched string ℓ and fixed at the both ends is plucked at x and
3
assumes initially the shape of a triangle of height h. Find the displacement y(x, t)
after the string is released from rest.
Sol.: The given is the problem of a one dimensional wave equation
2y 2y
c2 . (i)
t 2 x 2
y0, t 0
Also the boundary conditions are (ii)
yℓ, t 0
y
and the initial conditions are 0 . (iii)
t t 0
Now we have to solve (i) subject to the boundary conditions (ii) and initial conditions (iii).
We find y(x, 0). Now equation of OB is given by
Applications of Partial Differential Equations: One-dimensional Wave Equation 26
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
h 0
y0 x 0 y 3hx , 0 x ℓ
ℓ ℓ 3
0
3
y-axis B ℓ / 3, h
ℓ/3 2ℓ / 3 x-axis
O(0, 0) L A ℓ, 0
ℓ
2 nx
where a n f x sin dx , y(x, 0) = f(x)
ℓ ℓ
0
ℓ / 3 ℓ
2 3hx nx 3h nx
x ℓ sin
ℓ ℓ
Now an sin dx dx
ℓ 2ℓ ℓ
0 I II ℓ/3 I II
Integrating by parts, we get
ℓ/3 ℓ
nx
x cos
nx
1 sin nx 1 sin nx
cos
6h ℓ ℓ 3h ℓ
an x ℓ ℓ
ℓ2 n n 2 2 ℓ 2 n 2 2
n
ℓ ℓ
ℓ2 0 ℓ2 ℓ / 3
Applications of Partial Differential Equations: One-dimensional Wave Equation 27
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
6h ℓ ℓ n ℓ2 n 3h 2ℓ 2 n ℓ2 n
. . cos . sin 0 cos sin
ℓ 2 3 n 3 n 22 3 ℓ 2 3n 3 n 22 3
2h n 6h n 2 h n 3h n
cos sin cos sin
n 2
3 n 2 3 n 2
3 n 2 3
9h n
sin , n 0. (vi)
2 2
n 3
Hence, from (v) and (vi), the required solution is given by
9h 1 n nct nx
y y( x , t ) sin cos sin . Ans.
2 n 1 n 2 3 ℓ ℓ
Q.No.10.: A tightly stretched string with fixed end points x = 0 and x ℓ is initially in a
x
position given by y y 0 sin 3 . If it is released from rest from this position,
ℓ
find the displacement y(x, t).
Sol.: The given is the problem of a one dimensional wave equation
2y 2 2y
c . (i)
t 2 x 2
y0, t 0
Also, the boundary conditions are (ii)
yℓ, t 0
y
and the initial conditions are 0 . (iii)
t t 0
Now we have to solve (i) subject to the boundary conditions (ii) and initial conditions (iii).
We know that the solution of (i), satisfying (ii) and (iii) is given by
nct nx
yx , t a n cos sin , 0 x ℓ, (*)
n 1
ℓ ℓ
ℓ
2 nx x
where a n f x sin dx , y(x, 0) = y 0 sin 3 f (x )
ℓ ℓ ℓ
0
3x
ℓ ℓ 3 sin sin
2 x nx 2y ℓ ℓ sin nx dx
Now a n
ℓ y 0 sin 3
ℓ
sin
ℓ
dx 0
ℓ 4 ℓ
0 0
Applications of Partial Differential Equations: One-dimensional Wave Equation 28
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
3 x
∵ sin 3A 3 sin A 4 sin A where we take A ℓ
ℓ
y x nx 3x nx
an 0
2ℓ 3 sin
ℓ
sin
ℓ
sin
ℓ
sin
ℓ
dx (iv)
0
ℓ ℓ
3y nx x y nx 3x
0
4ℓ 2 sin
ℓ
sin
ℓ
dx 0
4ℓ 2 sin
ℓ
sin
ℓ
dx
0 0
ℓ ℓ
3y 0 x x y0 x x
cos n 1 cos n 1 dx cosn 3 cosn 3 dx
4ℓ ℓ ℓ 4ℓ ℓ ℓ
0 0
2x
1 cos
ℓ ℓ
3y0 ℓ y0 2x 4x
2ℓ 2
dx cos
4ℓ ℓ
cos
ℓ
dx
0 0
ℓ ℓ
3y 0 2x 4x y0 6x
4ℓ cos ℓ cos ℓ dx 4ℓ 1 cos ℓ dx
0 0
2 3x
∵ cos 2A 1 2 sin A where we take A ℓ
ℓ ℓ
2x 4x 6x
sin sin sin
3y 0 ℓ ℓ y ℓ
0 x
4ℓ 2 4 4ℓ 6
ℓ ℓ 0 ℓ 0
2y 2y
Q.No.11.: Solve the boundary value problem 4 ,
t 2 x 2
y(0, t) = y(5, t) = 0,
y
y(x, 0) = 0, f x ,
t t 0
where (i) f ( x ) 3 sin 2x 2 sin 5x , (ii) f ( x ) 5 sin x .
Sol.: (i). We know that the solution of one dimensional wave equation
2y 2y
4 , (i)
t 2 x 2
satisfying the boundary conditions
y(0, t) = y(5, t) = 0 (ii)
is given by
Applications of Partial Differential Equations: One-dimensional Wave Equation 30
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
nct nct nx
y y( x , t ) a n cos
ℓ
b n sin
ℓ
sin
5
, 0 < x < 5,
n 1
a n 0n .
2nt nx
Hence (iii) reduces to y y( x , t ) b n . sin
5
sin
5
(iv)
n 1
y 2 n nx
b n sin 3 sin 2x 2 sin 5x , (given)
t t 0 n 1 5 5
which is a Fourier half-range sine series in (0, 5), and hence, for 0 < x < 5, we have
5
2 n 2 nx
b n 3 sin 2x 2 sin 5x sin dx
5 5 5
0
5
1 nx nx
bn
n
3 sin 2x sin
5
2 sin 5x sin
5
dx (v)
0
5 5
3 nx 1 nx
2 n 2 sin
5
sin 2xdx
n 2 sin
5
sin 5xdx
0 0
n
0n except 2 0 or n = 10 [As n varies from 1 to , n 25 ]
5
n
and 5 0 n 25 . sin n 0n Z
5
5
1
3 sin 2x sin 2x 2 sin 5x sin 2x dx
10
Now b10
0
5 5
3 1 1
. 2 sin 2 2xdx dx cos 3x cos 7 x dx
10
10 2
0 0
5 5
3
1 cos 4x dx 1 cos 3x cos 7x dx
20 10
0 0
∵ cos 2A 1 2 sin 2
A, Take A 2x
5 5
3 sin 4x 1 sin 3x sin 7 x
x
20 4 0 10 3
7 0
3
5 3 ∵ sin n 0n Z .
20 4
Also
5
1
3 sin 2x sin 5x 2 sin 5x sin 5x dx
25
b 25 [Using (v)]
0
5 5
3 1 1
. 2 sin 2x sin 5xdx dx sin 2 5xdx
25
25 2
0 0
5 5
3
cos 3x cos 7x dx 1 1 cos10x dx
50 25
0 0
y 2 n n
bn . sin x 3 sin x , (given)
t t 0 n 1 5 5
5
1 n
bn
n
5 sin x. sin
5
xdx dx
(v)
0
5 5
5 n 5 n n
2 n 2 sin
5
x sin xdx cos
2 n 5
1nx cos
5
1nx dx
0 0
n
1 0 as n varies from 1 to ]
5
Put n = 5, using (v), we have
Applications of Partial Differential Equations: One-dimensional Wave Equation 33
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
5 5 5
1 1 1 1 cos 2x
b5 5 sin x sin ndx sin 2 xdx dx
5 n 2
0 0 0
∵ cos 2x 1 2 sin x
2
5
1 sin 2x 1 5
x 5 ∵ sin n 0n Z
2 2 0 2 2
yx ,0 f ( x )
y 0 x ℓ. (iii)
0
t t 0
We now apply the method of separation of variables to solve (i).
Here y is dependent variable and x and t are independent variables, so we get
y XT (iv)
to be the required solution of (i)
2y 2y d 2T d 2X
Now XT , X T , where T and X .
t 2 x 2 dt 2 dx 2
Applications of Partial Differential Equations: One-dimensional Wave Equation 34
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
X 1 T
2
X c T
k
X
X
k
1 d 2X
X dx 2
k
d 2X
2
kX 0 D 2 k X 0 , D d (vi)
dx dx
and 2
1 T
c T
k
1 d 2T
2
c T dt 2
k D 2 kc 2 T 0 . (vii)
(vi) gives D 2 p 2 X 0 .
(vii) gives D 2 kc 2 T 0 .
Its auxiliary equation is Its auxiliary equation is
m 2 p 2 0 m p . m 2 p 2 c 2 0 m pc .
(vi) gives D 2 p 2 X 0 .
(vii) gives D 2 p 2 c 2 T 0 .
Its auxiliary equation is Its auxiliary equation is
m 2 p 2 0 m pi . m 2 p 2 c 2 0 m pci .
Also PI = 0. Also PI = 0.
X CF PI X c1 c 2 x . T CF PI T c3 c 4 t .
Hence, from (iv), the various possible solutions of (i), are given by
Y = XT
y c1e px c 2 e px c 3 e pct c 4 e pct (viii)
Now,, out of these solutions, we must choose that solution which is consistent with the
physical nature of the given problem. As we are dealing with the problem of a wave equation
and since waves are periodic in nature therefore y must be a periodic function i.e., y must
involve trigonometric identities. Hence from (ix),
y y( x , t ) c1 cos px c 2 sin px c 3 cos pct c 4 sin pct (xi)
nc nc n
c 2 c 3 cos t c 2 c 4 sin t sin x
ℓ ℓ ℓ
Replacing c2c3, by an, c2c4 by bn, and adding all solutions, we have
nc nc n
yx , t a n cos t b n sin t sin x. (xii)
n 1 ℓ ℓ ℓ
Home Assignments
2y 2y
Q.No.1.: Find the solution of the wave equation c2 , corresponding to the
t 2 x 2
2k ℓ
triangular initial deflection f x x when 0 x .
ℓ 2
2k
ℓ x when ℓ x ℓ ,
ℓ 2
and initial velocity zero.
Applications of Partial Differential Equations: One-dimensional Wave Equation 37
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
sin 4n 1x cos 4n 1at
4
.
4n 1 2
Ans.:
Q.No.4.: A taut string of length 20 cms. fastened at both ends is displaced from its position
of equilibrium, by imparting to each of its points an initial velocity given by
v=x in 0 x 10
v 20 x in 10 x 20 , x being the distance from one end . Determine the
displacement at any subsequent time.
1600 x at 1 3x 3at
Ans.: y sin sin sin sin .....
a 3 20 20 33 20 20
Applications of Partial Differential Equations: One-dimensional Wave Equation 38
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2u 2u
Q.No.5.: Show that the wave equation c2 , under the conditions u(0, t),
t 2 x 2
u
u (ℓ, t ) 0 for all t, u(x, t) = f(x), g x has the solution of the form
t t 0
n 2 1 nx
u x , t B n cos n t C n sin n t sin ℓ x , where B n ℓ 0 f (x ) sin ℓ dx ,
n 1
2 1 nx
Cn
cn 0
g ( x ) sin
ℓ
dx .
Ans.:
Q.No.6.: Using D’Alembert’s method, find the deflection of a vibrating string of unit length
having fixed ends, with initial velocity zero and initial deflection:
(i) f x a x x 3 , (ii) f x a sin 2 x .
Ans.: (i). y( x , t ) ax 1 x 2 3c 2 t 2 , (ii). y( x , t )
a
2
1 cos 2x cos 2ct .
************************************************
****************************************
****************************