You're missing a term in your variation of parameters formula. Given an nth order linear ODE
with independent solutionsthe variation of parameters formula is
.
With what you have you setwhere it should be
. With this assignment things work out giving you the desired
.