Assignment 1: Question No 1: Solve The Given Differential Equation by Separation of Variables
Assignment 1: Question No 1: Solve The Given Differential Equation by Separation of Variables
Assignment 1
Question No 1: Solve the given differential equation by Separation of variables.
e y sin 2 x dx cos x e2 y y dy 0
cos x e 2 y y dy e y sin 2 x dx
e2 y y sin 2 x
y dy dx
e cos x
e 2y
y 2sin x cos x
y y dy dx
e e cos x
(e 2 y y ye y ) dy 2sin x dx
(e y ye y ) dy 2sin x dx
e dy ye dy 2 sin x dx
y y
d
e y y e y dy e y dy. ( y ) dy 2cos x c
dy
e y ye y e y dy 2cos x c
e y ye y e y dy 2cos x c
e y ye y (e y ) 2cos x c
e y ye y e y 2cos x c is the required general solution of given D.E.
x
ydx y cos x dy 0
y
x
y cos x dy y dx
y
dy y
(i )
dx x
y cos x
y
2|Page
y
f ( x, y )
x
y cos x
y
ty y
f (tx, ty )
tx x
ty cos tx y cos x
ty y
Let
x
u
y
x
y
u
d d
( x).u x (u )
dy dx dx
2
dx u
du
ux
dy dx
dx u2
du x
u-x
dx u
2
u x
cos u x
u
x
(u 2 )
du u
u-x
dx x
cos u x
u
du xu
u-x
dx x
cos u x
u
du xu
u-x
dx 1
x cos u 1
u
du u
u-x
dx 1
cos u 1
u
3|Page
du u
-x u
dx 1 cos u 1
u
1
u u cos u 1
-x
du
u
dx 1
cos u 1
u
du u cos u u
-x
dx 1
cos u 1
u
du cos u
-x
dx 1 cos u 1
u
du cos u
x
dx 1
cos u 1
u
1
cos u 1
u 1
du dx
cos u x
cos u u 1
du dx
u cos u x
cos u u 1
du dx
u cos u u cos u x
1 1
sec u du dx
u x
ln u ln sec u tan u ln x ln c
u
ln ln cx
sec u tan u
u
cx
sec u tan u
x
Put u
y
x
y
cx is the required solution of given D.E.
x x
sec tan
y y
x 2
y 2 dx 2 xy dy 0
M x2 y 2 N 2 xy
M N
2y 2y
y x
M N
As , so the given D.E. is exact
y x
f
x 2 y 2 (i )
x
f
2 xy (ii )
x
f ( x, y ) ( x 2 y 2 )dx
x3
f ( x, y ) xy 2 h( y )
3
f
2 xy h / ( y )
y
2 xy h / ( y ) 2 xy
h/ ( y) 0
h( y ) c
x3
y xy 2 c
3
2 y x e3 x e 2 x ,
dy
y 0 2
dx
dy
2 y x (e 3 x e 2 x )
dx
P( x) 2
Q( x) x(e e )
3x 2x
I .F . u ( x ) e
P ( x ) dx
=e
2 dx
=e 2 x
y
u ( x)Q( x)dx c
u ( x)
(e
2 x
)( x)(e3 x e 2 x ) dx c
y
e 2 x
( xe
3x2 x
xe 2 x 2 x )dx c
y
e 2 x
( xe
3x2 x
xe 2 x 2 x )dx c
y
e 2 x
( xe x)dx c
x
y
e 2 x
d x2
x e x dx e x dx ( x ) dx c
y dx 2
2 x
e
2
x
xe x e x c
y 2
e 2 x
xe x ex x2 c
y 2 x 2 x 2 x 2 x
e e 2e e
1
y xe3 x e3 x x 2e 2 x ce 2 x
2
6|Page
y (0) 2
1
2 (0)e3(0) e3(0) (0)2 e2(0) ce2(0)
2
2 1 c
c3
So
1
y xe3 x e3 x x 2e2 x 3e2 x
2
7|Page
Assignment 2
Q#1:
dy
Solve x. y y 2 . ln x
dx
Solution
dy
x. y y 2 . ln x
dx
Dividing by x
dy 1 ln x
.y y2.
dx x x
It is bernoulli D.E.
divide by y 2 above eq
dy 1 1 ln x
y 2 y
dx x x
Multiply by (1) above eq.
dy 1 1 ln x
y 2 y (1)
dx x x
put y 1 v
diff w.r.t.x
dy dv
y 2
dx dx
8|Page
dv 1 ln x
v
dx x x
It is linear in v
1
dx 1
I .F e x e ln x e ln x x 1
1
I .F
x
Multiply I .F by eq (1)
1 dv 1 1 1 ln x
. ( v) ( )
x dx x x x x
1 ln x
d (v. ) ( 2 ) dx
x x
Taking int egrate both sides.
1 ln x
d (v. x ) ( x 2 ) dx
1 x 1 x 1 1
v. (ln x. . )
x 1 1 x
y 1 1 x 1
.ln x c
x x 1
1 1 1
.ln x c
xy x x
or
1
ln x 1 xc
y
Q#2:
Solution:
9|Page
x cy 2 (1)
diff w.r.t.x
dy
1 2cy
dx
1 dx
c put in eq (1)
2 y dy
1 dx 2
x( )y
2 y dy
dy y
dx 2 x
is a differential eq. of eq (1)
So differential equation of family of orthogonal trajectories is \
dy 2x
dx y
It can be separable.
y dy 2 x dx
y dy 2 x dx
y2
x2 c/
2
y2 2x2 c , where c 2c /
Q#3:
If the rate of spread of dengue virus is proportional to infected & non infected persons.
Then what will be number of infected persons after 2 weeks provided that a man carrying
this virus, come back to his community of 10000.Further it is provided that after one week,
carriers increase to 98.
Solution:
10 | P a g e
Q#4:
Solution
The functions
12 | P a g e
f 1 x e x , f 2 x xe x , and f 3 x x 2 e x
ex xe x x 2e x
W e x , xe x , x 2e x e x xe x e x x 2e x 2 xe x
ex xe x 2e x x 2e x 4 xe x 2e x
2 e3 x
0
Thus the functions are linearly independent on any interval of the x-axis because for all x R .
13 | P a g e
Assignment 3
Question No 1: Given that y1 x 2 is a solution of x 2 y // 2 xy / 6 y 0
2x 6
x 2 y // 2 y / 2 y 0
x x
2x 6
y // 2 y / 2 y 0
x x
2
Here p( x)
x
e
Pdx
y2 y1 dx
( y1 ) 2
2
dx
x
2 e
y2 x 2 2 dx
(x )
1
2 xdx
e
y2 x 2 dx
x4
e 2 ln x
y2 x 4 dx
2
x
2
eln x
y2 x 4 dx
2
x
2
x
y2 x 2 4 dx
x
14 | P a g e
y2 x 2 x 6 dx
x 6 1
y2 x 2
6 1
x 5
y2 x 2
5
1
y2
5 x3
y c1 y1 c2 y2
1
y c1 ( x 2 ) c2 3
5x
c
y c1 x 2 23
5x
Question No 2: Solve
y // 4 y / 4 y e2 x
y // 4 y / 4 y 0
Put y e mx
y / memx
y // m2emx
So
As emx 0
So auxiliary equation is
15 | P a g e
m 2 4m 4 0
(m 2) 2 0
m 2, 2
g ( x) e2 x
So
y p Ae 2 x
y p / 2 Ae 2 x
y p // 4 Ae 2 x
So
y p // 4 y p / 4 y p e 2 x
4 Ae2 x 4(2 Ae2 x ) 4( Ae2 x ) e2 x
4 Ae2 x 8 Ae2 x 4 Ae2 x e 2 x
0 e2 x
y p / Ae 2 x 2 Axe 2 x
y p // 4 Ae 2 x 4 Axe 2 x
y p / 2 Axe 2 x 2 Ax 2e 2 x
y p // 2 Ae 2 x 8 Axe 2 x 4 Ax 2e 2 x
2 Ae 2 x 8 Axe 2 x 4 Ax 2e 2 x 4 2 Axe 2 x 2 Ax 2e 2 x 4 Ax 2e 2 x e 2 x
2 Ae 2 x 8 Axe 2 x 4 Ax 2e 2 x 8 Axe 2 x 8 Ax 2e 2 x 4 Ax 2e 2 x e 2 x
2 Ae 2 x e 2 x
2A 1
1
A
2
1 2 2x
Therefore our particular solution is y p xe
2
y yc y p
1 2 2x
y c1e2 x c2 xe2 x x e is the required general solution of given DE
2
Auxiliary equation is
m3 m 0
m( m 2 1) 0
m 0, i, i
Therefore
D (3) = 0
Here 1 and n 1
D( D 1)( D3 D) y D( D 1)(3 4e x )
D( D 1)( D3 D) y 0
Auxiliary equation is
m(m 1)(m3 m) 0
m(m 1)(m 2 1)m 0
m 0,0,1, i, i
So y p Ax B Cex
y p / A Ce x
y p // Ce x
y p /// Ce x
Ce x A Ce x 3 4e x
A 2Ce x 3 4e x
A3
2C 4
C 2
y yc y p
y c1 c2 cos x c3 sin x 3x 2e x
y(0) 4
y / (0) 5
y // (0) 1
c1 c2 2
c1 1 2
c1 1
y 1 cos x 3x 2e x
Given information:
y /// y / 0
Put y e mx
y / me mx
y // m 2e mx
y /// m3e mx
Therefore
m3emx memx 0
emx (m3 m) 0
( m 3 m) 0
m( m 2 1) 0
m 0, i, i
So
Particular Solution
u1/ tan x
u1 tan xdx
u1 ln cos x
u2 / sin x
u2 sin xdx
u2 cos x
y p u1 y1 u2 y2 u3 y3
y p ln cos x (1) cos x(cos x) sin x ln sec x tan x sin x
y p ln cos x cos 2 x sin 2 x sin x ln sec x tan x
As cos2 x sin 2 x 1
Therefore
y yc y p
Assignment 4
Question No 1: Solve the initial value problem; also find amplitude and period of oscillation?
d 2x
16 x 0
dt 2
x(0) 10 , x / (0) 0
Put x emt
dx
me mt
dt
d 2x
2
m 2e mt
dt
m2emt 16emt 0
emt m2 16 0
As emt 0
So, the auxiliary equation becomes
m2 16 0
m 4i
x(0) 10
10 c1 cos 4 0 c2 sin 4 0
c1 10
x / (0) 0
22 | P a g e
Amplitude A c12 c2 2
(10) 2 (0) 2
10
2
Period of oscillation
Here 4
Therefore
2
Period of oscillation
4
2
Question No 2: Find the charge q(t) on the capacitor in an LRC series circuit when L=1/4 Henry,
R=10 Ohms, C=0.001 farad , E(t)=0 volts , q(0)=q0 coulombs & I(0)=0 amperes. Also, check
that it is a transient or steady state solution.
d 2q dq q
L 2 R E (t )
dt dt c
1 d 2q dq q
2
10 0
4 dt dt 0.001
1 d 2q dq
2 40 4000q 0
4 dt dt
d 2q dq
2 40 4000q 0
dt dt
m 2e mt 40me mt 4000e mt 0
e mt m 2 40m 4000 0
q / (t ) 20c1e20t cos60t 60c1e20t sin 60t 20c2e20t sin 60t 60c2e20t cos60t
q / (0) 0
0 20c1e 200 cos 60 0 60c1e 200 sin 60 0 20c2e 200 sin 60 0 60c2e 200 cos 60 0
0 20c1 60c2
Put c1 =q 0
0 20q0 60c2
60c2 20q0
q0
c2
3
Therefore
q0 20t
q(t ) q0e 20t cos 60t e sin 60t
3
1
q(t ) q0e 20t cos 60t sin 60t
3
24 | P a g e
Therefore
10
q(t ) q0e 20t sin 60t 1.249
3
1. R 0
2. lim x(t ) 0
t
Here R is 10, so first condition is true, and as there is no steady term in the solution, so
lim x(t ) 0
t
d 4y d 3y
Q#3: Solve x 6 0
dx 4 dx 3
Sol:
25 | P a g e
d4y d3y 4
4 d y
3
3 d y
x 6 0 x 6 x 0
dx 4 dx3 dx 4 dx 3
Put x et t ln x
Its auxiliary equation becomes
( 1)( 2)( 3) 6( 1)( 2) 0
0,1, 2, 3
so we get
y c1 c2 et c3e 2t c4e 3t but t ln x
so y c1 c2 x c3 x 2 c2c3 x 3
( x 1) n
Q#4: Find the radius and the interval of convergence of the given power series
n 0 n 2n
Sol:
( x 1) n
n 0 n 2n
( x 1) n ( x 1) n 1
Here an an 1
n 2n (n 1)2n 1
an 1 ( x 1) n 1 n 2n x 1 x 1
R lim lim
lim
n a n ( n 1)2 n 1
( x 1) n n 1 2
n (1 )2
n
The above power series converges for x 1 2
i.e. 2 x 1 2 3 x 1 or x (3,1)
It is the required int erval of convergence.
26 | P a g e
Assignment 5
Q#1: Solve the differential equation 2 y y 0 by using the power series
// /
solution y cn x
n
n 0
Solution:
Given 2 y // y 0
Let y cn x n Then
n 0
2n(n 1)c x
n2
n
n2
cn x n 0
n 0
put n 2 k we get
k 0
k
ck
ck 2 ; k 0,1, 2,3,...
2(k 2)(k 1)
c c
k 0; c2 0 k 1; c3 1
2 2! 2 3!
c2 c c3 c
k 2; c4 0 k 3; c5 1
2 4 3 2 4! 2 4 5 2 4!
y ( x) c0 c1 x c2 x c3 x c4 x ...
2 3 4
c0 2 c c c
y ( x) c0 c1 x x 1 x 3 0 x 4 1 x 5 ...
2 2! 2 3! 2 4! 2 4!
2 4 3
x x x x5
y ( x) c0 [1 ...] c1[ x ...]
2 2! 2 4! 2 3! 2 4!
Q#2: Solve the Bessel function in terms of sin x and cos x of the J 7 ( x )
2
27 | P a g e
Solution:
J 5 1 x J 5 1 x
2 J
2 5
x
5
2 2 x 2
5
J3 x J7 x J5 x
2 2 x 2
5
J 7 x J 5 x J 3 x (1)
2 x 2 2
w e know
3 si n x 2 2 2
J5 x ( . cos x) si n x
2 x x x x x
si n x 2 2
J 3 / 2 ( x) . cos x
x x x
T hen equat i on (1) becomes
5 2 3 2 3 2 si n x
J7 x [ 2 1 si n x .( cos x)] cos x
2 x x x x x x x
Solution:
28 | P a g e
2
2
0
Pn ( x).Pm ( x)dx ( x 2 3x 3)(2 x 3 x 2 5 x 5)dx
0
2
2
0
Pn ( x).Pm ( x)dx (15 30 x 17 x 2 8x 3 5 x 4 2 x 5 )dx
0
2 17 x3 x6
0
Pn ( x).Pm ( x)dx 15 x 15 x 2
3
2 x 4 x5
3
2
0
Pn ( x).Pm ( x)dx 6 0 6 0
Assignment 6
Q#1:
Find out all the complementary solution (not particular) from the system of differential
dx dy dx dy
2 5x et ; x 5et
dt dt dt dt
equation
Solution:
(2 D 5) x Dy et ; ( D 1) x Dy et
We can write them in the form of
2D 5 D
D2 4D
D 1 D
2D 5 D et D 2D 5 D 2D 5 et
x & y
D 1 D 5et D D 1 D D 1 5et
we get ( D 2 4 D) x 4et ...(1) & ( D 2 4 D) y 15et ...(2)
Now we find the complementary function for the two equations
m 2 4m 0 m 0, 4 xc c1 c2 e 4t & yc c3 c4e 4t
Q#2:
Find the Eigen values and Eigen vector of the given matirx
30 | P a g e
5 1 0
A 0 5 9
5 1 0
Solution:
5 -1 0
| A I | 0 -5- 9 0
5 -1 -
16 3 0
(16 2 ) 0
0, 4, 4
For
=0, we have
5 -1 0 x
0 -5 9 y 0
5 -1 0 z
5x y 0
5 y 9 z 0
Let y=k
Then x=k/5 and z=5k/9
So vector becomes
x k / 5 1/ 5 9
y k k 1 k 45
z 5k / 9 5 / 9 25
So eigen vector is
{9,45,25}
31 | P a g e
=4,-4 are
{1,9,1} , {1,1,1}.
Q#3:
dx dy
2y , 8x
dt dt
Find the general solution of the given system
Solution:
dx dy
2y , 8x
dt dt
dx
dt 0 2 x 0 2 x
where A &X
dy 8 0 y 8 0 y
dt
2
Then det( A I ) 0 0 4, 4
8
32 | P a g e
for 4 , ( A I ) X 0 4 x1 2 x2 0 &8 x1 4 x2 0
x2 k
we get x1 let x2 k x1
2 2
k 1
2 & eigen vector is K 2
1
k 1
for 4 , ( A I ) X 0 4 x1 2 x2 0 &8 x1 4 x2 0
x2 k
we get x1 let x2 k x1
2 2
1
eigen vector is K 2 2
2
1 1
ThereforeX1 2 e4t , X2 2 e4t
1 2
1 4t 1 4t ce 4t
c2e4t
e e 1
Hencegeneralsolutionof thesystemisthe followingX c1X1 c2X2 c1 2 c 2
4t 2 4t 2 4t
2e4t 2c2e
e ce
1
4t
ce c2e4t 4t
So x(t) 1
& y(t) ce
1 2c2e4t
2