You are on page 1of 3

3.

(example of lecture 2rev)


''
y + 4 y=0
Function:
y ( x )=C1 sin 2 x+C 2 cos 2 x
Conditions:
y ( 0 )=1 ; y ( π2 )=2
Solution:
y ( 0 )=1
y ( x )=C1 sin 2 x+C 2 cos 2 x
y ( 0 )=1=C1 sin 2(0)+C 2 cos 2(0)
simplify :

1=C 1 ( 0 ) +C2 (1)

C 2=1
Then find C1: we cannot find C1 thus no solution

Another solution:
y ( π2 )=2
y ( )=2=C sin 2 x +C cos 2 x
π
1 2
2
y ( )=2=C sin 2 ( )+C cos 2 ( )
π π π
1 2
2 2 2
2=C 1 sin π +C 2 cos π
simplify :

2=C 1 ( 0 ) +C 2(−1)

C 2=−2
Then find C1: we cannot find C1 thus no solution

Therefore, impossible to solve. No solution

Solution to Assignment:
1. Determine C1 and C2 so that y ( x )=C1 sin 2 x+C 2 cos 2 x +1 that will satisfy the given condition:

y ( )
π
8
=0 y '
π
8 ( )
=√ 2
Solution:

y ( ) π
8
=0
Function:
y ( x )=C1 sin 2 x+C 2 cos 2 x +1
y() π
8
=0=C 1 sin 2 x+ C2 cos 2 x+1
Simplify:

( π8 )+C cos 2( π8 )+1


0=C1 sin 2 2

0=C sin ( )+C cos ( )+1


π π
1 2
4 4
Simplify further:
1 1
0=C1 +C2 +1
√2 √2
1 1
−1=C 1 +C 2 equation 1
√2 √2

y' ( )
π
8
=√ 2
y ( x )=C1 sin 2 x+C 2 cos 2 x +1
Find the 1st derivative
y ( x )=C1 cos 2 x ( 2 ) +C 2 [ −sin 2 x (2) ]
'

y ( x )=C1 cos 2 x ( 2 )−C 2 [ sin2 x (2) ]


'

Substitute the initial value condition:


y' ( π8 )=2 C cos 2( π8 )−2C sin 2( π8 )
1 2

1 1
√ 2=2 C1 −2 C 2
√2 √2
2C 1 2 C2
√ 2= − equation 2
√2 √2
Solving for C1 and C2: elimination method

1 1
−1=C 1 +C 2 multiply this equation by 2
√2 √2
+¿
2C 1 2 C2
√ 2= −
√2 √2

Thus:
2 C1 2 C 2
−2= +
√ 2 √2
+¿

2C 1 2 C2
√ 2= −
√2 √2
4 C1
−2+ √ 2=
√2
Thus:
√ 2 (−2+ √ 2 )=4 C1
simplify further :

C 1=
√2 (−2+ √ 2 ) = −2 √2+2
4 4

Solving for C2, substitute C1 either equation 1 or 2:


Choose equation 1:
1 1
−1=C 1 +C 2
√2 √2
−2 √ 2+ 2 1 1
−1= ( )+C 2
4 √2 √2

2.

You might also like