μ(t) = e^∫-2 dt = e^(-2t)
Multiply both sides by μ(t):
e^(-2t)y' - 2e^(-2)ty = e^(-2t)e^(2t)
d/dt (e^(-2t)y) = I
e^(-2t)y = t+c(By integrating both sides)
y=(t+c)/(e^(-2t))
y = (t+c)e^2t
Substitue y(0) = 2 into the equation above, then:
2 = (0 + c)e^0 = C*1
The solution to the IVP is y = (t+2)e^(2t)