Lecture 2: First-Order ODEs
Separable ODEs
Definition (Separable ODE)
A first-order ODE is separable if we can rewrite it as
Then all -terms live on one side and all -terms on the other.
Here depends on both variables, but factoring it as lets us integrate each side independently.
Warm-up: direct integration
For ,
Exponential example
For we separate variables:
Example with an initial value
Consider .
With we get , so and .
Warning (Picking the right branch)
Because , the solution is defined only when . The initial value forces us to stay on the interval and to take the negative branch.
Tip (Recipe for separable ODEs)
Rewrite as , integrate both sides, and (if possible) solve for . Initial conditions pick the constant and the correct sign/interval.
Which equations are separable?
- is separable: .
- is not separable directly, but with we get , which is separable: , so .
- looks “almost” separated, but it is not separable. It is linear, so we use integrating factors.
First-Order Linear ODEs
A first-order ODE is linear if it has the form
These need not be separable, but they all yield to the integrating factor method.
Definition (Integrating factor)
Pick . Then
collapses to , so
Example —
, , so .
Quick summaries
Definition (Separable ODE takeaway)
If , rewrite as and integrate: .
Definition (Linear ODE takeaway)
For , and
Two integrals and one constant finish the job.