Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Sreerag S Kumar
II BSc Physics
6370
March 22, 2019
1 Problem Sheet 1
1.1 Section A
00
1. Which of the following is not a solution of y − y = 0?
(a) ex
(b) e−x
(c) ex + e−x
(d) 1 + ex
Ans: 1 + ex
00 0
2. Find the general solution of y + 9y + 20y = 0
Ans:
The corresponding characteristic equation is λ2 +9λ+20 = 0; whose solutions
are λ = −4, −5
Therefore the general solution of the given differential equation is,
y = C1 e−4x + C2 e−5x
00 0
3. Write a pair of basis solutions of x2 y − 4xy + 6y = 0
Ans:
The auxiliary equation is m2 −5m+6 = 0; whose solutions are m=2,3. Hence
the basis solutions for the given differential equation are
y1 = x2 , y2 = x3
4. If y1 = e2x , y2 = e−x , find w(y1 , y2 )
Ans:
y1 y2
w = 0
y1 y20
1
= y1 · y20 − y2 · y10
= −ex − 2ex
= −3ex
5. Find the laplace transform of sin(ωt)
Ans:
ω
s + ω2
2
6. Find
60 + 6s2 + s4
L −1 [ ]
s7
Ans:
60 + 6s2 + s4 t6 t4 t2
L −1 [ ] = + +
s7 12 12 2
7. f (x) = x3 + 2x2 is :
Ans: Neither even nor odd
with y (0) = y0 .
2
1.2 Section B
10. Apply (D + 5)2 to sin(5x) + 5x
Ans:
λ2 + 10λ + 25 = 0
whose solution is -5. Therefore the general solution of the given differential
equation is
y = (C1 + C2 )xe−5x
3
14. Reduce to first order and solve 2xy 00 = 3y 0
Ans: Let
y0 = p
⇒ y 00 = p0
⇒ 2xp0 = 3p
dp 3dx
⇒2 =
p x
Z Z
dp dx
⇒2 =3
p x
⇒ 2ln(p) = 3ln(x) + C
3
⇒ p = x2 + C
dy 3
⇒ = x2 + C
Z dxZ Z
3
⇒ dy = x dx + C dx
2
5
2x 2
⇒y= + Cx + D (2)
5
15. Find the Laplace transform of (t + 1)2 et .
Ans:
L (eat f (t)) = F (s − a)
y 00 = x + y
4
Ans:
Z ∞ Z ∞ Z ∞
F (p)dp = e−pt f (t)dtdp
s s 0
Z ∞Z ∞
= e−pt f (t)dpdt
Z 0∞ s Z ∞
= f (t) e−pt dpdt
0
Z ∞ s
f (t)
= e−st dt
0 t
f (t)
= L( ) (4)
t
17. Find
1
L −1 [ ]
s(1 + 2s)
Ans: Z t
1
L −1
[ F (s)] = f (t)dt
s 0
1
F (s) =
1 + 2s
⇒ L −1 (F (s)) = f (t)
1 1
f (t) = e− 2 t
2
Z t Z t
1 1 −1t
L −1 [ F (s)] = f (t)dt = e 2 dt
s 0 0 2
1
= 1 − e− 2 t (5)
18. Find the first two approximate solutions y1 (x) and y2 (x) of the initial
value problem y 0 = x + y, y(0) = −1 using Picard’s method.
Ans:
By Picard’s algorithm,
Z x
(n)
y = y0 + f (x, y (n−1) )dx
x0
Hence Z x
1
y = −1 + (x − 1)dx
0
5
x2
= −x−1
2
Similiarly,
x
x2
Z
2
y = −1 + ( − 1)dx
0 2
3
x
= −x−1
6
1.3 Section C
19. Solve the initial value problem
y 00 + 1.5y 0 − y = 0
y(0) = 4 ⇒ C1 + C2 + 459 = 4
6
C1 C2
y 0 (0) = 8 ⇒ − =8
2 2
⇒ C1 = 251, C2 = 235
The solution of the differential equation is then,
1
y = 251e 2 x + 235e−2x + x4 + 12x3 + 54x2 + 234x + 459
y 00 + y = 0
Whose solution is
yh = Acos(x) + Bsin(x)
By the method of variation of parameters,
y2 · r y1 · r
Z Z
yp = −y1 dx + y2 dx
w w
cos(x) sin(x)
where w = w(cos(x), sin(x)) = =1
−sin(x) cos(x)
Hence,
Z Z
yp = −cos(x) sin(x) · sec(x)dx + sin(x) cos(x) · sec(x)dx
Z Z
= −cos(x) tan(x)dx + sin(x) dx
y = yh + yp
7
Ans:
s2 + 9s − 9 s 3 3
L −1 [ 3
] = L −1 [ 2 ] + 3L −1 [ 2 ] − 3L −1 [ 2 ]
s −s s −9 s −9 s(s − 9)
3
= cosh(3t) + 3sinh(3t) − 3L −1 [ ]
s(s2 − 9)
Z t
F (s)
L −1
[ ]= f (u)du
s 0
Hence, Z t
3 3
−3L −1
[ 2 ] = −3 L −1 [ 2 ]du
s(s − 9) 0 s −9
Z t
= −3 sinh(3u)du
0
= −3 · cosh(u) |t0
= −3(cosh(t) − 1)
Hence,
s2 + 9s − 9
L −1 [ ] = cosh(3t) + 3sinh(3t) − 3(cosh(t) − 1)
s3 − s
= 3(sinh(3t) + 1)
Ans: n = 4, h = 14
By Simpson’s rule,
h
S= (S0 + 4S1 + 2S2 )
3
1
= (y0 + y4 + 4(y2 ) + 2(y1 + y3 ))
12
5 1 81 1
= (0 + 1 + 4( + ) + 2( ))
12 256 256 16
= 1.0025
8
1.4 Section D
33. Solve
21
x2 y 00 − 4xy 0 + 6y =
x4
Ans: The corresponding homogenous equation is,
x2 y 00 − 4xy + 6y = 0
m2 − 5m + 6 = 0
which gives m = 2, 3 and hence the solution of the homogenous equation is,
y h = C 1 x2 + C 2 x3
y = yh + yp
x−4
⇒ y = C 1 x2 + C 2 x 3 +
2
9
23. Using Runge-Kutta method, solve the Initial Value Problem
y 0 = x + y, y(0) = 0, h = 0.2
An = hf (xn , yn ) = 0.2(xn + yn )
Bn = hf (xn + 21 h, yn + 21 An ) = 0.29(xn + 0.1 + yn + 0.1(xn + yn ))
= 0.22(xn + yn ) + 0.22
Cn = hf (xn + 21 h, yn + 21 Bn ) = 0.2(xn + 0.1 + yn + 0.11(xn + yn ) + 0.01)
= 0.222(xn + yn ) + 0.222
Dn = hf (xn + h, yn + Cn ) = 0.2(xn + 0.2 + yn + 0.222(xn + yn ) + 0.022)
= 0.2444(xn + yn ) + 0.0444
Now,
yn+1 = yn + 0.2214(xn + yn ) + 0.0214
⇒ y1 = 0.021400
y2 = 0.091818
y3 = 0.222107
2 Problem Sheet 2
2.1 Section A
1. Find the general solution of y 00 + ω 2 y = 0
Ans: Solving the characteristic equation
λ2 + ω 2 = 0,
λ = ıω, −ıω
⇒ y = Acos(ωx) + Bsin(ωx)
10
3. Write the general form of the Euler-Cauchy equation.
Ans:
yn+1 = yn + hf (xn , yn )
4. Find
L (a + bt + ct2 )
Ans:
a b 2c
L (a + bt + ct2 ) = + 2+ 3
s s s
5. What is L (f 0 )?
Ans:
L (f 0 ) = SL (f ) − f (0)
6. What is
1
L −1 ( )?
s2 + a2
Ans:
1
L −1 ( ) = sin(at)
s 2 + a2
11
8. Write Picard’s iterative formula to find the numerical approximation
of y 0 = f (x, y), y(x0 ) = y0
Ans: For the initial value problem
2.2 Section B
10. Find the general solution of
(9D2 + 6D + 1)y = 0
9λ2 + 6λ + 1 = 0
and
1
λ=−
3
Therefore the general solution of the given differential equation is
1
y = (C1 + C2 x)e− 3 x
m2 − 4m + 4 = 0
12
Whose solution is m = −2. Therefore the solution of the given differential
equation is,
y = (C1 + C2 ln(x))x−2
13. Find
60 + 6s2 + s4
L −1 [ ]
s7
Ans:
60 + 6s2 + s4 t6 t4 t2
L −1 [ ] = + +
s7 12 12 2
14. Prove that the product of an odd function and an even function is an
odd function.
Ans: Let f (x) and g(x) be functions such that f (−x) = f (x) and
g(−x) = −g(x). Then if we define a function h(x) such that
Hence it is proven that the product of an odd function and an even function
is an odd function.
13
15.Apply Picard’s method to solve the IVP y 0 = x2 + y, y(0) = −1
Ans: By Picard’s algorithm,
Z x
(n)
y = y0 + f (x, y (n−1) )dx
x0
Hence,
Z x
(1)
y = −1 + f (x, y 0 )dx
0
Z x
= −1 + (x2 − 1)dx
0
x3
= −x−1
3 Z
x
y (2) = −1 + f (x, y 1 )dx
Z x 3 0
x
= −1 + ( + x2 − x − 1)dx
0 3
x4 x3 x2
= + − − x − 1 (8)
12 3 2
16. Evaluate the given definite integral using trapezoidal rule.
Z 6
dx
2
,h = 1
0 1+x
Ra
Ans: By the trapezoidal rule, to evaluate the definite integral b f (x)dx, we
use
n−1
h X
T = (y0 + yn + 2 yi )
2 i=1
h
T = (y0 + y6 + 2(y1 + y2 + y3 + y4 + y5 ))
2
1 1 1 1 1 1 1
= (1 + + 2( + + + + ))
2 37 2 5 10 17 26
= 1.41079 (9)
y 00 + y 0 = 0, y(0) = 5, y 0 (0) = −3
14
Ans:
L (y 00 + y 0 = 0)
⇒ L (y 00 + y 0 ) = 0
⇒ s2 L (y) − sy(0) − y 0 (0) + sL (y) − y(0) = 0
⇒ s2 L (y) − 5s + 3 + sL (y) − 5 = 0
2 + 5s
⇒ L (y) = 2
s +s
2 + 5s
⇒ y = L −1 ( 2 )
s +s
2 5
= L −1 ( 2 ) + L −1 ( )
s +s s+1
1 1 1
= 2L −1 ( · ) + 5L −1 ( )
s s+1 s+1
Z t
1 1
=2 L −1 ( ) + 5L −1 ( )
0 s+1 s+1
Z t
= 2 (e−t dt) + 5e−t
0
= 2(1 − e−t ) + 5e−t
= 2 + 3e−t (10)
For small enough h, we neglect the higher order terms and are left with the
approximation
y(x + h) = y(x) + hy 0 (x)
Which can then be written as,
15
We also denote
xn = xn−1 + h; yn = y(xn )
By substitution we get
⇒ y1 = y0 + hf (x0 , y0 )
Which can be further generalised to
yn+1 = yn + hf (xn , yn )
2.3 Section C
19. Find the general solution of
y 00 + 2y 0 + y = 2x + x2
y 00 + 2y 0 + y = 0
λ2 + 2λ + 1 = 0
K2 = 1, K1 = −2, K0 = 2
Therefore, yp = x2 − 2x + 2
The solution of the given differential equation is then,
y = yh + yp = (C1 + C2 x)e−x + x2 − 2x + 2
16
20. Find the general solution of
yh = C1 ex + C2 e−4x
yp = Kcos(2x) + M sin(2x)
Which gives
yp0 = −2Ksin(2x) + 2M cos(2x)
and
yp00 = −4Kcos(2x) − 4M sin(2x)
Substituting,
y 00 + y = sec(x)
y 00 + y = 0
17
Whose solution is
yh = Acos(x) + Bsin(x)
Byt he method of variation of parameters,
y2 · r y1 · r
Z Z
yp = −y1 dx + y2 dx
w w
cos(x) sin(x)
where w = w(cos(x), sin(x)) = =1
−sin(x) cos(x)
Hence,
Z Z
yp = −cos(x) sin(x) · sec(x)dx + sin(x) cos(x) · sec(x)dx
Z Z
= −cos(x) tan(x)dx + sin(x) dx
y = yh + yp
22. Find
1
L −1 ( √ √ )
(s + 2)(s − 3)
Ans: By applying the method of partial fractions,
1 −1 1 1 1
√ √ =√ √ ( √ )+ √ √ ( √ )
(s + 2)(s − 3) 2+ 3 s+ 2 2+ 3 s− 3
Hence,
1 −1 1 1 1
L −1 ( √ √ ) = L −1 ( √ √ ( √ ))+L −1 ( √ √ ( √ ))
(s + 2)(s − 3) 2+ 3 s+ 2 2+ 3 s− 3
√ √
−e− 2t e 3t
=√ √ +√ √
2+ 3 2+ 3
18
23. Solve the IVP by Laplace transform.
y 0 + 3y = 10sin(t), y(0) = 0
h
S= (y0 + y6 + 4(y1 + y3 + y5 ) + 2(y2 + y4 )
3
1 1 1 1 1 1 1
⇒ S = (1 + + 4( + + ) + 2( + ))
3 7 2 4 6 3 5
= 1.95873 (12)
2.4 Section D
25. Solve the IVP
19
Ans: Taking the Laplace transform on both sides,
Which gives
4
s2 L (y) + 1.2sL (y) + 0.36L (y) + 1 =
s + 0.6
4 − (s + 0.6)
⇒ L (y) =
(s + 0.6)3
4 1
⇒ y = L −1 ( 3
) − L −1 ( )
(s + 0.6) (s + 0.6)2
= 2e−0.6x x2 − e−0.6x x (13)
y = 2e−0.6x x2 − e−0.6x x
kn = hf (xn , yn ) = 0.1(x2n + yn )
ln = hf (xn+1 , yn + kn ) = 0.1[x2n + yn + kn ]
k0 = 0.1(02 + 1) = 0.1
l0 = 0.1(x21 + y0 + k0 ) = 0.1(0.12 + 1 + 0.1) = 0.111
1
y1 = 1 + (0.211) = 1.1055
2
Similarly,
21