Ordinary Differential Equations 6 | Separation of Variables
Based on The Bright Side of Mathematics's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
Separation of variables works for non-autonomous ODEs when ẋ can be written as a product G(t)·h(x).
Briefing
Separation of variables provides a direct route to solving certain non-autonomous ordinary differential equations by rewriting them so the time variable and the state variable appear in separate factors. For an ODE of the form ẋ = W(t, x), the method works when W can be expressed as a product G(t)·h(x). In that case, the differential equation can be rearranged into h(x) in one side and t-terms on the other, enabling integration on both sides and producing an implicit solution that can be inverted to obtain x(t). This matters because many practical models—where the dynamics change with time—still become solvable once the right algebraic structure is recognized.
The procedure begins with an initial value problem: choose a starting time t0 and require the solution satisfy x(t0) = x0. The method assumes h(x0) ≠ 0 so division by h(x) is valid in a neighborhood of x0; otherwise a constant solution can appear immediately. Once the equation is separable, the rearrangement leads to an integral form. Integrating from t0 to an arbitrary time T on the time side and from x0 to the evolving solution value α(t) on the state side yields an equation involving antiderivatives. Because antiderivatives differ by additive constants, the constants from both sides can be merged into a single constant C. The final step is to apply the inverse of the antiderivative relationship to isolate α(t), giving the solution to the initial value problem.
A worked example shows the mechanics. Consider ẋ = T^3·x^2 with an initial condition x(0) = x0. Separating variables turns the equation into (1/x^2) dx = T^3 dT. After integrating, the result involves a logarithm on the left in the simplified form used in the walkthrough and a polynomial-in-T term on the right, plus an integration constant. Exponentiating (the inverse of the natural logarithm) produces an explicit expression for the solution α(T). The constant is then fixed by enforcing the initial condition, leading to a closed-form solution.
A second example demonstrates the same workflow even when the right-hand side is more intricate: ẋ = sin(T)·e^x. Separation gives dx/e^x = sin(T) dT. Integrating produces expressions involving e^{-x} on the left and cos(T) on the right, again with an added constant. Solving for x(T) requires inverting the resulting relationship, which introduces a logarithm. The constant is determined by plugging in T = 0 and using cos(0) = 1, yielding a final solution that satisfies x(0) = x0. Across both examples, the key takeaway is that the method hinges less on memorizing a formula and more on executing the same separation, integration, inversion, and constant-matching steps reliably.
Cornell Notes
Separation of variables solves certain non-autonomous ODEs by rewriting ẋ = W(t, x) in the separable product form ẋ = G(t)·h(x). With an initial value condition x(t0) = x0 and assuming h(x0) ≠ 0 (so division by h(x) is allowed), the equation is rearranged to place all x-dependent terms on one side and all t-dependent terms on the other. Integrating both sides from t0 to T and from x0 to the solution value α(t) yields an equation between antiderivatives, with constants combined into a single integration constant C. Inverting the antiderivative relationship gives α(t), and C is fixed by enforcing the initial condition.
When does separation of variables apply to a non-autonomous ODE?
Why is the condition h(x0) ≠ 0 emphasized?
What role do antiderivatives and integration constants play?
How is the integration constant determined in practice?
How do the examples illustrate the same workflow despite different functions?
Review Questions
- Given ẋ = G(t)·h(x) and x(t0)=x0, what algebraic step is required before integrating?
- In a separable ODE, why can two integration constants be combined into one?
- For ẋ = sin(T)·e^x, what function of T appears after integrating the separated equation on the time side?
Key Points
- 1
Separation of variables works for non-autonomous ODEs when ẋ can be written as a product G(t)·h(x).
- 2
An initial value problem x(t0)=x0 is used to select the correct solution branch after integration.
- 3
Division by h(x) requires h(x0) ≠ 0; otherwise a constant solution may occur and the method’s rearrangement fails at the initial state.
- 4
After separating, integrating both sides from t0 to T yields an equation between antiderivatives with a single combined integration constant C.
- 5
Solving the resulting antiderivative equation requires inverting the relationship (often using exponential/logarithmic inverses).
- 6
The integration constant C is fixed by substituting the initial condition, typically by evaluating at T=0 and using identities like cos(0)=1.