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

Basic linear ODE

The excitement of learning separates youth from old age. As long as you’re learning, you’re not old, Rosalyn S.Yalow

People are not who they say but rather who their actions reveal them to be… Be smart about it. Don’t fall for the bullshit, Ziad K. Abdelnour

Recall

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.

Basic linear ODE

Basic linear ODE

In mathematics, a linear ordinary differential equation (ODE) is an equation involving an unknown function and its derivatives, where both the function and its derivatives appear linearly. This means that the unknown function and its derivatives are raised only to the first power and are not multiplied together or composed within nonlinear functions.

This property of linearity makes linear ODEs fundamental in modeling various physical systems due to their simplicity and the powerful mathematical tools available for solving them. They often arise in fields such as:

The linearity of these equations allows for more tractable analytical solutions, often serving as approximations to more complex nonlinear systems. This makes them essential tools in both theoretical and applied mathematics.

In this article, we will explore different forms of linear ODEs, their applications, and their solutions, with a focus on understanding their behavior in real-world contexts.

Understanding Linearity in ODEs

An ODE is linear if it can be expressed in the form: $a_n(t)\frac{d^ny}{dt^n} +a_{n-1}(t)\frac{d^{n-1}y}{dt^{n-1}} + ··· + a_1(t)\frac{dy}{dt} + a_0(t)y = q(t)$ where

The function y and its derivatives appear to the first power and are not multiplied together.

Common Forms of First-Order Linear ODEs

First-order linear ODEs involve only the first derivative of the unknown function. They are foundational in understanding more complex differential equations. They can be expressed in several forms:

Each of these forms arises in different real-world scenarios, which we will break down further.

Flow Rate of Salt in a Tank

Understanding how substances mix and change their concentrations over time in a tank is a classic problem in differential equations. This scenario is commonly used to model real-world systems in chemistry, engineering, and environmental science.

Consider a tank that contains a well-mixed solution of salt and water. Saltwater flows into and out of the tank at a constant rate. Our goal is to model how the concentration of salt in the tank changes over time. Let’s define the variables involved:

Basic Linear ODE

The tank is well-mixed, so the concentration of salt throughout the tank is uniform at all times, meaning the concentration of salt is uniform throughout the tank.

Flow Rate of Salt

Deriving the Differential Equation

The fundamental principle governing the change in the amount of salt in the tank is that the rate of change of the amount of salt in the tank is determined by the difference between the rate of salt inflow and the rate of salt outflow. This gives us the following differential equation:

$\frac{dx}{dt} = \text{Rate of Salt Inflow − Rate of Salt Outflow} = r·C_e(t) - r·\frac{x}{V}$

This equation states that the rate of change of salt in the tank $\frac{dx}{dt}$ is equal to the rate of salt inflow (the product of the inflow rate r and the concentration of the incoming solution Ce(t)) r·Ce(t) minus the rate of salt outflow (the product of the outflow rate r and the concentration of the solution in the tank C(t):) $r·\frac{x}{V}$, where C(t) = xV is the concentration of salt in the tank at time t (since the tank is well-mixed).

$\frac{dx}{dt} = r·C_e(t) - r·\frac{x}{V}⇒[\text{Rearranging terms gives:}] \frac{dx}{dt} + \frac{r·x}{V} = r·C_e(t)$.

Expressing the Equation in Terms of Concentration

It’s often more convenient and useful to work with concentration C(t) instead of the total amount x(t). Recall that C(t) = xV, leading to: $\frac{dx}{dt} + rC = r·C_e(t)$. Besides, x = V·C(t) and differentiating both sides with respect to time gives: $V\frac{dC}{dt} + rC = r·C_e(t)$

This equation can be rewritten in standard form: $\frac{dC}{dt} + \frac{r}{V}C = \frac{r}{V}C_e(t)$. Let k = rV where k represents the fractional flow rate (flow rate relative to the volume), indicating how quickly the tank’s contents are replaced.

The differential equation becomes: $\frac{dC}{dt} + kC = kC_e(t)$. This is a first-order linear ordinary differential equationODE in terms of C(t), the concentration of salt in the tank.

Intuitive Understanding of the Model

Solving the Differential Equation

$\frac{dC}{dt} + kC = kC_e(t)$

  1. Compute the Integrating Factor μ(t): $μ(t) = e^{\int kdt} = e^{kt}$
  2. Multiply both sides by μ(t): $e^{kt}\frac{dC}{dt} + ke^{kt}C = ke^{kt}C_e(t)$. The left-hand side of the equation simplifies to: $\frac{d}{dt}(e^{kt}C)$
  3. Integrate Both Sides: $\int \frac{d}{dt}(e^{kt}C)dt = \int ke^{kt}C_e(t)dt ↭ e^{kt}C = k\int e^{kt}C_e(t)dt + C_1$ where C1 is the constant of integration.
  4. Solve for C(t): $C(t) = e^{-kt}[k\int e^{kt}C_e(t)dt + C_1]$

Special Case: Constant Input Concentration

Assume Ce(t) = C0, a constant concentration.

  1. Integrate the Right-Hand side: $\int e^{kt}C_e(t)dt = C_0\int e^{kt}dt = \frac{C_0e^{kt}}{k} + C_2$
  2. Substitute back into the solution: $C(t) = e^{-kt}[k\int e^{kt}C_e(t)dt + C_1] = e^{-kt}[k(\frac{C_0e^{kt}}{k}) + kC_2 + C_1] = C_0 + kC_2e^{-kt} + C_1e^{-kt} = C_0 + (kC_2+C_1)e^{-kt} = C_0 + C’e^{-kt}$. $C(t) = C_0 + C’e^{-kt}$ where $C’ = kC_2+C_1$
  3. Suppose we have an initial condition C(0) = Cinitial: $C_{initial} = C_0 + C’e^{-0·t} = C_0 + C’⇒ C’ = C_{initial} -C_0$. The general solution to the differential equation with a constant input concentration is: $C(t) = C_0 + (C_{initial} -C_0)e^{-kt}$

Interpretation

Example Problem

Scenario:

A vat contains 500 gallons of beer with an alcohol concentration of 4% (by volume). Beer with an alcohol concentration of 7% is pumped into the vat at a rate of 5 gallons per minute. The mixture is simultaneously pumped out at the same rate. Questions: (a) What is the amount of alcohol in the vat after an hour? (b) What is the percentage of alcohol after an hour?

Step 1: Define Variables and Initial Conditions: The vat contains V = 500 gallons of beer with Cinitial = 4% = 0.04 alcohol, so initially, the amount of alcohol is: A(0) = V·Cinitial = 500 × 0.04 = 20 gallons of alcohol. Inflow and Outflow Rate: r = 5 gal/min. Incoming Alcohol Concentration: Ce(t) = 7% = 0.07.

Step 2: Set Up the Differential Equation

Let A(t) be the amount of alcohol in the vat at time t (measured in gallons). The concentration of alcohol in the vat at time t is: $C(t) = \frac{A(t)}{V} = \frac{A(t)}{500}$ because concentration = amount of alcoholvolume.

The rate of alcohol inflow and outflow can be written as: $\frac{dA}{dt} = \text{Rate of Alcohol Inflow - Rate of Alcohol Outflow} = rC_e(t) -r\frac{A(t)}{V} = 5\text{gal/min}·0.07 -5\text{gal/min}·\frac{A}{500}$

Thus, the differential equation becomes: $\frac{dA}{dt}=0.35 -0.01A, A(0) = 20, A(60)?$

Step 3: Solve the Differential Equation. This is a separable differential equation. Let’s separate the variables: $\frac{1}{0.35 -0.01A}dA = dt$.

Integrate both sides: $\int \frac{1}{0.35 -0.01A}dA = \int dt ⇒ \frac{1}{-0.01}ln|0.35 -0.01A| = t + C_1 ⇒[\text{Simplifying:}] ln|0.35 -0.01A| = -0.01(t + C_1) ↭ ln|0.35 -0.01A| = -0.01t + C_2$ where C2 = -0.01·C1 is a new constant of integration.

On the left-hand side, the integral requires a substitution u = 0.35 - 0.01A, so du = -0.01dA.

$ln|0.35 -0.01A| = -0.01t + C_2 ↭[\text{Take exponentials of both sides to solve for A:}] |0.35 -0.01A| = e^{-0.01t + C_2}↭ |0.35 -0.01A| = C_3e^{-0.01t}$ where C3 = eC2

$0.35 -0.01A = ± C_3e^{-0.01t} ↭ -0.01A = -0.35 + C_4e^{-0.01t}$ where C4 = ± C3.

Solving for A, $A = \frac{-0.35}{-0.01}+\frac{C_4}{-0.01}e^{-0.01t} ↭ A = 35 + C_5e^{-0.01t}$ where $C_5 = \frac{C_4}{-0.01}⇒[\text{Let C = C₅. Applying the initial conditions}] A(0) = 20 = 35 + Ce^{-0.01·0} ↭ C = 20 -35 = -15 ⇒[\text{Thus, the general solution is:}] A = 35 + Ce^{-0.01t} = 35 -15e^{-0.01t}$

Step 4: Calculate Amount of Alcohol After One Hour (60 minutes). $A(60) = 35 -15e^{-0.01·60} = 35 -15e^{-0.6}≈ 26.77$ gallons of alcohol. So, after an hour (60 minutes), the vat contains approximately 26.7 gallons of alcohol.

Step 5: Calculate the Percentage of Alcohol After One Hour. Alcohol Concentration = $\frac{A(60)}{500} x 100$% $= \frac{26.77}{500} x 100 = 0.0535 x 100 = 5.35$% is the percentage of alcohol after an hour.

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.