y^{''}-2y^'+5y=5x+3
1) Let's solve the differential equation y'' -2y' + 5y = 5x + 3, where y is a function of x
For the homogeneous equation, we look for exp(r*x): the characteristic equation is r2 -2r + 5 = 0
2) Let's solve in ℂ: r2 -2r + 5 = 0
Given the quadratic form ax2 + bx + c, let's compute the discriminant: Δ = b2 -4ac
Δ = (-2)2 -4·1·5
Δ = 4 -4·5
Δ = 4 -20
Δ = -16
As Δ < 0, the equation has two solutions:
Solution first: -b -Δ2a
r1 = 2 --162
r1 = 2 -i·42
r1 = 1 -2i
For the second solution, we obtain: -b + Δ2a
r2 = 2 + -162
r2 = 2 + i·42
r2 = 1 + 2i
Solution found: r = 1 -2i
Solution found: r = 1 + 2i
The homogeneous solution is exp(x)·C1·cos(2x) + exp(x)·C2·sin(2x)
We look for a particular solution A*x + B. Its derivatives are A and 0, so 5A = 5 and -2A + 5B = 3
We obtain A = 1 and B = 1, so the particular solution is x + 1
The general solution is the sum of the homogeneous and particular solutions; C1 and C2 are arbitrary real constants
▶Solution:   y = exp(x)·C1·cos(2x) + exp(x)·C2·sin(2x) + x + 1