EXAM2
EXAM2
2
d y
2
− y =0 ,
dx
'
y ( 1 )=e , y ( 1 )=e .
2 rx rx
r e −e =0 .
(since e rx ≠ 0):
2
r −1=0 .
C2 C2
1=C 1 + 2
. C 1+ 2
=1 . ¿ (1)
e e
C2 C2
1=C 1− 2
. C 1− 2
=1 . ¿ (2)
e e
Q2
Differential Equation:
2
d y
2
+ y=sec x
dx
Homogeneous Solution
2
d y
Solve 2 + y=0 :
dx
y h=C 1 cos x+ C2 sin x
Solve:
' '
u1 ( x )=−tan x , u1 ( x )=ln∣ cos x ∣ u2 ( x )=1 ,u 2 ( x )=x y p= ( ln ∣cos x ∣) cos x + x sin x
General Solution
y ( x )=C1 cos x +C 2 sin x + ( ln ∣cos x ∣ ) cos x + x sin x
Q3
Solve for 0 ≤ x<1 (Non-homogeneous Equation)
For 0 ≤ x<1
2
d y
2
− y =1.
dx
Conditions
4. Condition 1: y ( 0 )=0
5. y ( 0 )=C 1 e0 +C 2 e0 −1=0 .
Condition 2: y ' ( 0 )=1:
' x −x
y ( x )=C1 e −C 2 e .
At x=0 :
y ( 0 )=C 1 e −C 2 e =1. C 1−C2 =1. ¿ (2)
' 0 0
Continuity at x=1
At x=1, both y ( x ) and y ' ( x ) must be continuous.
1. Continuity of y ( x ): From 0 ≤ x<1 :
y ( 1 )=e 1−1 .
From x ≥ 1:
1 −1
y ( 1 )=D1 e + D2 e .
−1
e−1=D1 e + D2 e .
Divide through by e :
1 D2
1− =D1 + 2 . ¿ (5)
e e
From ( 4 ):
−1
e=D1 e−D2 e .
Divide through by e :
D2
1=D1 − 2
. ¿ (6)
e
Add ( 5 ) and ( 6 ):
Simplify:
1 1
2− =2 D1 . D1=1− .
e 2e
1
Substitute D1=1− 2 e into ( 6 ):
( )
1 D2
1= 1− − 2.
2e e
Simplify:
D2 1 e
= . D 2= .
e
2
2e 2
Final Solution:
For 0 ≤ x<1 : y ( x )=e x −1 .
( )
1 x e −x
For x ≥ 1: y ( x )= 1− 2 e e + 2 e .
Q4
x
y ( x )=e +∫ sin ( z−x ) y ( z ) dz .
−x
0
Differentiate both sides w.r.t x :
x
∂
'
y ( x )=−e +
−x
∫ sin ( z −x ) y ( z ) dz .
∂x 0
∂
Substitute sin ( 0 )=0 and ∂ x sin ( z −x )=−cos ( z−x ) :
x
y ( x )=−e −∫ cos ( z−x ) y ( z ) dz .
' −x
∂
Substitute cos ( 0 )=1 and ∂ x [−sin ( z−x ) ]=−cos ( z−x ) :
x
y ( x )=e − y ( x ) −∫ cos ( z−x ) y ( z ) dz .
'' −x