Write the partial fraction decomposition of the rational expression.

4x^2–19x+31/
(x+2)(x^2–4x+5)

5/(x+2) - (x-3)/(x^2-4x+5)

or,

5/(x+2) - [(x-2)-1]/[(x-2)^2 + 1]