Beruflich Dokumente
Kultur Dokumente
Problem 1
Solve the differential equation:
y 00 − 2y 0 + y = ex ln x, x>0
Problem 2
Find a second solution of the following differential equation:
y 00 + 4y = −x sin 2x
BONUS
Solve
x2 y 00 + 4xy 0 + 2y = ln x, y(1) = 2, y 0 (1) = 0
SOLUTIONS
Problem 1
i) Solve first the homogeneous equation
y 00 − 2y 0 + y = 0,
1
Solving for u01 , u02 , we get
Z
1 1
u1 = − x ln xdx = x2 − x2 ln x
4 2
Z
u2 = ln xdx = x ln x − x
With these, the particular solution becomes
1 2 1 2 1 3
yp (x) = x − x ln x ex + (x ln x − x) xex = x2 ex ln x − x2 ex
4 2 2 4
and the general solution is
1 3
y(x) = yh (x) + yp (x) = c1 ex + c2 xex + x2 ex ln x − x2 ex .
2 4
Problem 2
Using reduction of order, we set y2 (x) = u(x)x−1 . Plug back into the
equation y20 = u0 x−1 − ux−2 , y200 = u00 x−1 − 2u0 x−2 + 2ux−3 , we get
2xu00 − u0 = 0
1 3 1
with solutionln u0 = 1
2
ln x, giving u0 = x 2 , u = 23 x 2 and thus y2 = x 2 , and
thus √
y(x) = c1 x−1 + c2 x
Problem 3
i) Solve the homogeneous equation first
y 00 + 4y = 0
2
and
and plugging into the equation y 00 + 4y = −x sin 2x, we identify the coeffi-
cients:
x2 cos 2x : − 4A + 4A = 0
x2 sin 2x : − 4C + 4C = 0
x cos 2x : 4(2C − B) + 4B = 0 → C = 0
1
x sin 2x : − 4(D + 2A) + 4D = −1 → A =
8
1
cos 2x : 4D + 2A = 0 → D = −
16
sin 2x : − 4B + 2C = 0 → B = 0
Thus yp = 18 x2 cos 2x − 1 2
16
x sin 2x, and
1 1
y(x) = (c1 + x2 ) cos 2x + (c2 − x2 ) sin 2x
8 16
BONUS
i) Find a solution to the homogeneous equation
x2 y 00 + 4xy 0 + 2y = 0
d2 y dy
2
+ (4 − 1) + 2y = 0
dz dz
with auxiliary equation λ2 + 3λ + 2 = 0 ↔ (λ + 1)(λ + 2) = 0. Thus
yh = c1 e−z + c2 e−2z = c1 x−1 + c2 x−2 .
ii) We can now use either undetermined coefficients for
d2 y dy
2
+ (4 − 1) + 2y = z,
dz dz
or variation of parameters for the original equation in standard form
4 2 ln x
y 00 + y 0 + 2 y = 2 .
x x x
3
dy d2 y
Choosing the first (for simplicity), yp = Az + B, = A, =0
dz dz 2
3A + 2Az + 2B = z,
1 3
y(x) = c1 e−z + c2 e−2z = c1 x−1 + c2 x−2 + ln x −
2 4
Applying the initial conditions, y(1) = c1 +c2 − 34 = 2 and y 0 = −c1 −2c2 + 21 =
0 gives c1 = 5 and c2 = − 49 , so the solution to the IVP is
9 1 3
y(x) = 5x−1 − x−2 + ln x −
4 2 4