How do I solve for $x$?
$$\frac{dx}{dt} = 1.4t - 0.5x$$
I know how to do this without the $x$ at the end using integration.
How do I solve for $x$?
$$\frac{dx}{dt} = 1.4t - 0.5x$$
I know how to do this without the $x$ at the end using integration.
You can also solve such an ODE pretty elegantly with a substitution. Set $y(t):=0.5x(t)-1.4t$ i.e. $y'=0.5x'-1.4$. And plugging this into the ODE $x'=1.4t-0.5x$ yields
$$2(y'+1.4)=1.4t-(1.4t+y)=-y$$ and therefore $y'=0.5(-y-2.8)$. Now this is pretty standard. Divide by $(-y-2.8)$ and then integrate. You get
$$\int \frac{dy}{-y-2.8}=0.5\int dt$$
I guess you can do it from here. Otherwise just ask. And don't forget to resubstitute to get $x$.
Hint:
The ODE can be written as: $$\frac{dx}{dt}+0.5x=1.4t$$ Now, an integrating factor is $\mu(t)=\exp\left[\int 0.5~dt\right]=e^{0.5t}$.
in the first step solve the homogeous equation and for the inhomogeous part make the ansatz $$y_p=At+B$$