Solution of a Differential Equation:
1.
Given,
y ' 2 y 1
y 0 1
To find the solution of the above differential equation.
By the variable separable method,
dy
1 2 y
dt
dy
dt
1 2 y
Now integrate on both sides,
dy
1 2 y dt
Solve the above integral equation as
dy
1 2 y dt
d 1
dy log 1 2 y dy dt
2
1
log 1 2 y t log c
2
1
log 1 2 y
2 log c t
1
log t
c 1 2y
1
et
c 1 2y
1
1 2 y et
c
e 2t
1 2 y 2
c
1 e 2t
y 1 2
2 c
(1)
Since,
y 0 1
Therefore,
1 e 0
y 0 1 2
2 c
1 1
1 1 2
2 c
1
1 2 2
c
c2 1 2
c 2 1
c2
Substitute the value of in (1),
1
y
2
1 e 2t
Hence, the required solution is given as:
1
y
2
1 e 2t
2.
Given,
y ' 2 y cos 2t 2 cos 2t
y 0
2
To find the solution of the above differential equation.
By the variable separable method,
dy
2 cos 2t 2 y cos 2t
dt
dy
2 cos 2t 1 y
dt
dy
2 cos 2tdt
1 y
Now integrate on both sides,
dy
1 y 2 cos 2tdt
Solve the above integral equation as
dy
1 y 2 cos 2tdt
d d
dy
log 1 y dy sin 2t dt
dt
log 1 y sin 2t log c
1
log log c sin 2t
1 y
1
log sin 2t
c 1 y
1
esin 2 t
c 1 y
1
1 y e sin 2t
c
1
y 1 e sin 2t
c
(1)
Since,
y 0
2
Therefore,
1 sin 2 2
y 1 e
2 c
1
0 1
c
1
1
c
c 1
c
Substitute the value of in (1),
y 1 e sin 2t
Hence, the required solution is given as:
y 1 e sin 2t