Recall that variation of parameters is used to solve second-order ODEs of the form
y''(t) + p(t) y'(t) + q(t) y(t) = f(t)
so the first thing you need to do is divide both sides of your equation by t :
y'' + (2t - 1)/t y' - 2/t y = 7t
You're looking for a solution of the form
where
and W denotes the Wronskian determinant.
Compute the Wronskian:
Then
The general solution to the ODE is
which simplifies somewhat to