I want to solve a simple ODE
$\dfrac{dx}{dt} = x + 1, x(0) = x_o$
I currently know of three ways to solve this from the top of my head:
- Method of integrating factors, multiple entire expression by $e^{-t}$
- Laplace transform
- Separation of variables, divide both sides by $x+1$ then integrate both sides
I think there is a method just by guessing. However, I have forgotten the rule for guessing the solution of non-homogeneous equations such as this one.
Have I missed anything else?
Differentiate twice and obtain $\frac{d^2x}{dt^2}=\frac{dx}{dt}$. So we know that $\frac{dx}{dt}=c\cdot exp(t)$. Hence $x=c\cdot \exp(t) + d$. Now solve for $c$ and $d$.