JustToThePoint English Website Version
JustToThePoint en español
Colaborate with us

Linear First-order Systems of ODEs

Recall

All things are difficult before they are easy, Thomas Fuller.

When you have eliminated the impossible, whatever remains, however improbable, must be the truth,Sherlock Holmes.

Fourier Series

Definition. A differential equation is an equation that involves one or more dependent variables, their derivatives with respect to one or more independent variables, and the independent variables themselves, e.g., $\frac{dy}{dx} = 3x +5y, y’ + y = 4xcos(2x), \frac{dy}{dx} = x^2y+y, etc.$

It involves (e.g., $\frac{dy}{dx} = 3x +5y$):

First-Order Linear Ordinary Differential Equations (ODEs)

Definition. A first-order linear ordinary differential equation is an ordinary differential equation (ODE) involving an unknown function y(x), its first derivative y′, and functions of the independent variable x, which can be written in the general form:: a(x)y' + b(x)y = c(x) where:

These equations are termed “linear” because the unknown function y and its derivative y’ appear to the first power and are not multiplied together or composed in any nonlinear way.

If the function c(x)=0 for all x in the interval of interest, the equation simplifies to: a(x)y’ + b(x)y = 0. Such an equation is called a homogeneous linear differential equation.

The Existence and Uniqueness Theorem provides crucial insight into the behavior of solutions to first-order differential equations ODEs. It states that if:

Then, the differential equation y' = f(x, y) has a unique solution to the initial value problem through the point (x0, y0), meaning that it satisfies the initial condition y(x0) = y0.

This theorem ensures that under these conditions, the solution exists and is unique near x = x0.

General Form of a First-Order System

A first-order system of ordinary differential equations (ODEs) with two dependent variables x(t) and y(t) can be written in the general form:

$\begin{cases} x’ = f(x, y, t) \\ y’ = g(x, y, t) \end{cases}$ where

Linear First-Order Systems

In a linear system, the dependent variables x(t) and y(t) occur linearly, meaning that the equations do not contain any nonlinear terms such as x2, xy, sin(x), etc. The coefficients of x and y can be functions of t, but the variables themselves are not multiplied together or raised to any power other than one.

General Form of a Linear First-Order System

A linear first-order system has the form:

$\begin{cases} x’ = a(t)x + b(t)y + r_1(t) \\ y’ = c(t)x + d(t)y + r_2(t) \end{cases}$ where:

Characteristics of Linear Systems:

When r1(t) = r2(t) = 0, the system simplifies to:

$\begin{cases} x’ = a(t)x + b(t)y \\ y’ = c(t)x + d(t)y \end{cases}$

Homogeneous systems are fundamental because their solutions can often be used to construct solutions to nonhomogeneous systems.

Example: Modeling Temperature Dynamics in an Egg

To illustrate how we can apply a first-order system of ODEs, consider the following physical scenario:

Consider an egg consisting of two regions:

Supposed the egg is placed in a pot of water. Initially, the water is boiling (the egg is cooked), but it cools over time, especially when the egg is transferred to an ice bath (the external environment) with temperature Te(t). Refer to Figure iv for a visual representation and aid in understanding it.

We aim to model the temperature dynamics of the yolk and egg white over time using a first-order system of ODEs.

Homogeneous Linear Systems

The temperature of the water is modeled as: Te(t) = 100·e-kt for some positive constant k, meaning the water cools over time, decays exponentially. For simplicity, we assume Te(t) = 0°C when the egg is transferred to an ice bath.

Initial conditions: T1(0) = 40, T2(0) = 45

To model the temperature dynamics of the egg, we use Newton’s Law of Cooling, which states that the rate of change of temperature is proportional to the temperature difference between its temperature and the temperature of the surrounding environment.

Formulating the System of ODEs

Using Newton’s Law of Cooling, we can model the temperature changes as:

  1. Yolk Temperature Change: The rate of temperature change of the yolk depends on the temperature difference between the egg white and the yolk: $\frac{dt_1}{dt} = a(T_2-T_1)$
  2. Egg White Temperature Change. The rate of temperature change of the egg white depends on:

$\frac{dT_2}{dt} = a(T_1-T_2) + b(T_e-T_2)$ where:

For this example, we assume a = 2 (heat transfer between the yolk and white), b = 3 (heat transfer between the egg white and the external environment). Initial conditions: T1(0) = 40 (yolk) and T2(0) = 45 (egg white). The external temperature Te(t) = 0 when the egg is place into an ice bath.

Rewrite the system. Plugging in the values of a, b, and Te, we get the system:

$\begin{cases} T_1’ = -aT_1 + aT_2 \\ T’_2 = aT_1 -(a+b)T_2 + bT_e \end{cases}$

$\begin{cases} T_1’ = -2T_1 + 2T_2 (i) \\ T’_2 = 2T_1 -5T_2 (ii)\end{cases}$

Solving the System

Eliminate one variable: To reduce this system to a single equation, we can solve for one variable in terms of the other. From the first equation (i), solve for T2: $T_2 = \frac{T_1’+2T_1}{2}$.

Now substitute this into the second equation (ii. $\frac{dT_2}{dt} = 2T_1-5T_2$): $(\frac{T_1’+2T_1}{2})’ = 2T_1 -5(\frac{T_1’+2T_1}{2}) ↭ (\frac{1}{2})(T_1’+2T_1)’ = 2T_1 -5(\frac{T_1’+2T_1}{2})↭[\text{Simplify both sides}] (T_1’+2T_1)’ = 4T_1-5(T_1’+2T_1) ↭ T_1’’ + 2 T_1’ = 4T_1 -5T_1’ -10T_1 ↭ T_1’’ +7 T_1’ + 6T_1 = 0$. This is now a second-order linear differential equation. In general, a system of two first-order differential equations, will produce a second-order differential equation by substitution. A system of three first-order differential equations, will produce a third-order differential equation, and so on.

The equation $T_1’’+7T_1’ + 6T_1 = 0$ is a standard linear homogeneous ODE. The characteristic equation associated with the ODE is: r2 +7r + 6 = 0. Factor this equation: r2 +7r + 6 = (r + 1)(r + 6) = 0. The roots or solutions of this characteristic equation are -1 and -6. Hence, the general solution for T1(t) is: $T_1 = C_1e^{-t} + C_2e^{-6t}$ where C1 and C2 are constants to be determined from initial conditions.

Solve for $T_2 = \frac{T_1’+2T_1}{2} = \frac{1}{2}(T_1’+2T_1)$

So, the solution is $T_2 = \frac{1}{2}(-C_1e^{-t} + -6C_2e^{-6t} + 2C_1e^{-t} + 2C_2e^{-6t}) = \frac{1}{2}(C_1e^{-t} + -4C_2e^{-6t}) = \frac{1}{2}C_1e^{-t} - 2C_2e^{-6t}$

Therefore, the solution for T2(t) is:

$\begin{cases} T_1 = C_1e^{-t} + C_2e^{-6t} \\ T_2 = \frac{1}{2}C_1e^{-t} - 2C_2e^{-6t} \end{cases}$

Apply the Initial conditions T1(0) = 40 and T2(0) = 45:

$\begin{cases} 40 = C_1 + C_2 \\ 45 = \frac{1}{2}C_1 - 2C_2\end{cases}$

Multiply equation (ii) by 2 to eliminate the fraction:

$\begin{cases} 40 = C_1 + C_2 \\ 90 = C_1 - 4C_2\end{cases}$

(ii)-(i): 50 = -5C2 ⇒ C2 = -10, C1 = 40 -C2 = 40 + 10 = 50.

The final solution for the temperatures of the yolk and egg white is:

$\begin{cases} T_1 = 50e^{-t} -10e^{-6t} \\ T_2 = 25e^{-t} +20e^{-6t} \end{cases}$

The Yolk Temperature decreases over time due to heat transfer to the egg white and the external environment. The Egg White Temperature decreases over time. It cools both by transferring heat to the yolk and by losing heat to the surrounding ice bath.

Solving a System of First-Order Linear Ordinary Differential Equations.

Given the system: $\begin{cases} x’ + y’ + 2x = 0 \\ x’ + y’ -x -y = sin(t) \end{cases}$

To apply systematic methods for solving the system, it’s beneficial to rewrite the equations in a standardized manner:

$\begin{cases} x’ + 2x + y’ = 0 \\ x’ -x + y’ -y = sin(t) \end{cases}$

Let’s denote the differential operator by D, where D = $\frac{d}{dt}$. Applying this operator to functions simplifies the notation for derivatives.

Applying the operator to each term in the system: $\begin{cases} (D+ 2)(x) + D(y) = 0 \\ (D -1)x + (D -1)y = sin(t) \end{cases}$

To solve the system, we aim to eliminate one of the variables, allowing us to find an expression for the other. Here’s how we can proceed.

  1. Multiply Equation 1 by (D−1)
  2. 2: Multiply Equation 2 by −D

$\begin{cases} (D-1) ((D+ 2)(x) + D(y)) = 0 \\ -D((D -1)x + (D -1)y = sin(t)) \end{cases}$

$\begin{cases} (D-1)(D+ 2)(x) + (D-1)D(y) = 0 \\ -D(D -1)x -D(D -1)y = -D(sin(t)) \end{cases}$

Combining the Equations to Eliminate y(t): $(D^2+D-2)(x)-(D^2-D)(x) = -D(sin(t))$

x’’ +x’ -2x -x’’ + x’= -cos(t)↭[Simplifying] 2x’-2x = -cos(t).

To simplify, divide both sides by 2: $x’-x = \frac{-1}{2}cos(t)$. It is in Standard Linear First-Order ODE: x’ + P(t) = Q(t)

Solving for x(t) Using an Integrating Factor

  1. Identify the Integrating Factor: $μ(t) = e^{\int P(t)dt}= e^{\int -1dt} = e^{-t}$
  2. Multiply Both Sides by the Integrating Factor: $e^{-t}x’ -e^{-t}x = \frac{-1}{2}e^{-t}cos(t) ↭ \frac{d}{dx}(e^{-t}x) = \frac{-1}{2}e^{-t}cos(t)$
  3. Integrate both sides: $e^{-t}x = \int \frac{-1}{2}e^{-t}cos(t)dt + C_1$

Use the standard integral $\int e^{at}cos(bt)dt = \frac{e^{at}(acos(bt)+bsin(bt))}{a^2+b^2} + C$. Here a = -1, b = 1.

$\int e^{-t}cos(t)dt =\frac{e^{-t}(-1·cos(t)+1·sin(t))}{(-1)^2+1^2} = \frac{e^{-t}(-cos(t) +sin(t))}{2}+ C$

Finally, $e^{-t}x = \frac{-1}{2}(\frac{e^{-t}(-cos(t) +sin(t))}{2}) + C_1 = \frac{1}{4}e^{-t}(cos(t) -sin(t)) + C_1$

Solve for x(t): $x(t) = C_1e^t + \frac{1}{4}cos(t) -\frac{1}{4}sin(t)$

Compute x’(t) = $C_1e^t - \frac{1}{4}sin(t) -\frac{1}{4}cost(t)$.

Having found x(t), we can now find y(t) using one of the original equations. Let’s use Equation 1: x’ + y’ + 2x = 0, we can rewrite it as y’ = -x’ -2x = $-(C_1e^t -\frac{1}{4}cos(t) -\frac{1}{4}sin(t)) -2(C_1e^t - \frac{1}{4}sin(t) +\frac{1}{4}cos(t)) ↭ y’ = -3C_1e^t+\frac{3}{4}sin(t)-\frac{1}{4}cos(t)$

$\int y’dt = \int(-3C_1e^t+\frac{3}{4}sin(t)-\frac{1}{4}cos(t)) ↭ y = -3C_1e^t-\frac{3}{4}cos(t)-\frac{1}{4}sin(t) + C_2$

The general solution to the system of ODEs is:

$\begin{cases} x(t) = C_1e^t + \frac{1}{4}(cos(t) -sin(t)) \\ y(t) = -3C_1e^t-\frac{3}{4}cos(t)-\frac{1}{4}sin(t) + C_2 \end{cases}$ where C1 and C2 are constants determined by the initial conditions of the system.

Autonomous Systems of First-Order ODEs

An autonomous system is a system of differential equations where the independent variable, typically denoted by t (often representing time), does not explicitly appear on the right-hand side of the equations. In other words, the rate of change of the dependent variables depends only on the current state of the system, not directly on time.

General Form

A system of two first-order autonomous ODEs can be written as:

$\begin{cases} x’ = f(x, y) \\ y’ = g(x, y) \end{cases}$ where:

Key Characteristics of Autonomous Systems

  1. Time-Invariant Behavior: Since t does not explicitly appear in f and g, the system’s behavior is the same at any time t, given the same state (x, y).
  2. Dependence on State: The evolution of the system depends solely on the current state (x, y), making the system’s behavior consistent across time.

Solutions as Parametrized Curves in the Plane

The solutions to the autonomous system are functions x(t) and y(t), which together form a parametrized curve in the plane ℝ2, meaning that for each value of t, there is a corresponding point (x(t), y(t)) in the plane. As t varies, the point (x(t), y(t)) traces out a curve.

Each solution to the system corresponds to a different initial condition x(t0) = x0, y(t0) = y0 where t0 is the initial time (often t0 = 0) and (x0, y0) is the initial point in the plane (Refer to Figure v for a visual representation and aid in understanding it)

Homogeneous Linear Systems

Implications

  1. Unique Solutions. The curve depends on the initial conditions, which specify where the curve starts. For example, if x(0) = x0 and y(0) = y0, the solution starts at the point (x0, y0) at t = 0. In other words, for a given set of initial conditions, there is a unique solution curve, provided that f and g satisfy certain conditions (e.g., Lipschitz continuity).
  2. Family of Solutions: Varying the initial conditions generates a family of solution curves, each representing a different trajectory in the plane.

The Velocity Field Interpretation

The system of ODEs: $\begin{cases} x' = f(x, y) \\\ y' = g(x, y) \end{cases}$ defines a velocity field in the plane. At each point (x, y), the system assigns a vector $\vec{v}(x,y)=(f(x,y),g(x,y))$.

Explanation:

Therefore, a system of two first order autonomous ODE is equal to a velocity field, and a solution is a parametrized curve that follows the velocity field, always moving in the direction specified by the field at each point.

Bibliography

This content is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License and is based on MIT OpenCourseWare [18.01 Single Variable Calculus, Fall 2007].
  1. NPTEL-NOC IITM, Introduction to Galois Theory.
  2. Algebra, Second Edition, by Michael Artin.
  3. LibreTexts, Calculus and Calculus 3e (Apex). Abstract and Geometric Algebra, Abstract Algebra: Theory and Applications (Judson).
  4. Field and Galois Theory, by Patrick Morandi. Springer.
  5. Michael Penn, and MathMajor.
  6. Contemporary Abstract Algebra, Joseph, A. Gallian.
  7. YouTube’s Andrew Misseldine: Calculus. College Algebra and Abstract Algebra.
  8. MIT OpenCourseWare [18.03 Differential Equations, Spring 2006], YouTube by MIT OpenCourseWare.
  9. Calculus Early Transcendentals: Differential & Multi-Variable Calculus for Social Sciences.
Bitcoin donation

JustToThePoint Copyright © 2011 - 2025 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.