An ordinary differential equation is a differential equation that depends on only one variable. It can be represented with a phase space. The implicit differential equation takes the form:
is the -th derivative of wrt
Example:
- Gravitational acceleration
- Speed:
It requires only one initial condition to find
Strategy
Solve a Separable Differential Equation
- Separate variables by rewriting the differential equation in the format, where
only depends on , and only depends on
- Move terms with the same variables on one side:
- Integrate both sides and solve for
- (optional) Use initial conditions to find
- Plug
and back into the differential equation (pick any value for integration constant if there’s none) - (optional) Plot slope field and the solution to see if they match
# Sage
y = function('y')(x)
de = diff(y,x) + y-2
h = desolve(de, y)
h2 = desolve(de, y, ics=[0, 3]) # with initial conditions
solve(h2, y)
Geographical
If the ordinary differential equation is not separable, use
slope field
a graphical representation of the solutions to a ordinary differential equation
Plug different set of values for
into , and sketch the slope Link to original # Sage var('x,y') plot_slope_field(x+y, (x, -4, 4), (y, -4, 4))