Michael K. answered 04/26/19
PhD professional for Math, Physics, and CS Tutoring and Martial Arts
This second order differential linear equations has constant coefficients so you can reduce using the ansatz of y(x) = erx
2y'' - y' = 1
We see we have a homogeneous and particular solution set. Let's solve the homogeneous part first...
This would give you the following quadratic equation in r...
2r2 - r = 0 --> r(2r - 1) = 0 --> r = 0 or r = 1/2
Therefore your homogeneous solution must represent the family of ...
yH(x) = Ae(x/2) + B
The particular solution must satisfy the solution of the first and second derivatives adding up to 1. Let's use a second ansatz of yP(x) = Cx + D. This choice gives us zero from the second derivative and a constant from the first derivative...
2*(0) - C = 1 --> C = 1
y(x) = yH(x) + yP(x) = Ae(x/2) + B + Cx + D
We can set D = 0 for simplicity...
y(0) = 0 --> 0 = A + B
y'(0) = 0 --> 0 = A/2 - C
A = -B
-B/2 - C = 0
Let C = 1 for simplicity...
B = -2, A = 2
y(x) = yH(x) + yP(x) = 2e(x/2) -2 + x