Get AI summaries of any video or article — Sign up free
Ordinary Differential Equations 6 | Separation of Variables thumbnail

Ordinary Differential Equations 6 | Separation of Variables

4 min read

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.

TL;DR

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?

It applies when the ODE can be written as ẋ = G(t)·h(x), meaning the right-hand side factors into a function of time times a function of the state. For instance, ẋ = T^3·x^2 is separable because one factor depends only on T and the other only on x. If the equation cannot be rearranged into that product structure, the method may not work.

Why is the condition h(x0) ≠ 0 emphasized?

Because the method requires dividing by h(x) after rearranging the equation. If h(x0) = 0, division would be invalid at the initial state, and a constant solution can arise immediately. The walkthrough focuses on the nontrivial case where h(x0) ≠ 0 so the solution can be determined by integration.

What role do antiderivatives and integration constants play?

After separating, both sides are integrated. The antiderivatives on each side can differ by additive constants, so the constants can be merged into a single constant C. This is why the final implicit equation includes one integration constant rather than two independent ones.

How is the integration constant determined in practice?

By using the initial value condition x(t0) = x0. After integrating and inverting to express the solution α(t) in terms of C, substituting t = t0 and α(t0) = x0 produces an equation for C. In the examples, evaluating at T = 0 uses facts like cos(0) = 1 to simplify the algebra.

How do the examples illustrate the same workflow despite different functions?

For ẋ = T^3·x^2, separation leads to an integral involving powers of x and T, then inversion via the natural logarithm/exponential relationship. For ẋ = sin(T)·e^x, separation leads to integrals producing e^{-x} and cos(T}, then inversion via a logarithm. Both follow: separate → integrate → add constant → invert → apply the initial condition.

Review Questions

  1. Given ẋ = G(t)·h(x) and x(t0)=x0, what algebraic step is required before integrating?
  2. In a separable ODE, why can two integration constants be combined into one?
  3. For ẋ = sin(T)·e^x, what function of T appears after integrating the separated equation on the time side?

Key Points

  1. 1

    Separation of variables works for non-autonomous ODEs when ẋ can be written as a product G(t)·h(x).

  2. 2

    An initial value problem x(t0)=x0 is used to select the correct solution branch after integration.

  3. 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. 4

    After separating, integrating both sides from t0 to T yields an equation between antiderivatives with a single combined integration constant C.

  5. 5

    Solving the resulting antiderivative equation requires inverting the relationship (often using exponential/logarithmic inverses).

  6. 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.

Highlights

Separable non-autonomous ODEs reduce to an integral equation once the right-hand side factors as G(t)·h(x).
The integration constants from both sides collapse into one additive constant C after integrating antiderivatives.
Even with different nonlinearities—x^2 or e^x—the same steps (separate, integrate, invert, apply initial condition) produce the solution.
Initial conditions determine the constant by plugging in t=t0, turning the implicit solution into a specific explicit form.

Topics