2. Calculus II

First Order Odes

Introduce first-order ordinary differential equations, separable and linear types, and basic modeling of growth and decay phenomena.

First Order ODEs

Hey students! šŸ‘‹ Ready to dive into one of the most practical and exciting areas of mathematics? Today we're exploring first-order ordinary differential equations (ODEs) - mathematical tools that help us understand how things change over time. By the end of this lesson, you'll understand what first-order ODEs are, how to solve separable and linear types, and how they model real-world phenomena like population growth, radioactive decay, and cooling processes. Get ready to see math come alive in ways that directly impact our daily lives! šŸš€

What Are First-Order Ordinary Differential Equations?

Imagine you're watching a pot of hot coffee cool down on your kitchen counter. The rate at which it cools depends on how hot it currently is - the hotter it is, the faster it cools. This relationship between a quantity and its rate of change is exactly what a first-order ordinary differential equation describes!

A first-order ODE is an equation that relates a function $y(x)$ to its first derivative $\frac{dy}{dx}$. The general form looks like this:

$$\frac{dy}{dx} = f(x,y)$$

The term "first-order" means we're only dealing with the first derivative (not second, third, or higher derivatives). "Ordinary" distinguishes it from partial differential equations, which involve multiple variables. Think of it as a recipe that tells us how fast something changes based on its current state and position.

For example, if we're tracking the population of bacteria in a petri dish, we might have:

$$\frac{dP}{dt} = kP$$

This says the rate of population change ($\frac{dP}{dt}$) is proportional to the current population ($P$). The constant $k$ represents the growth rate - positive for growth, negative for decline.

Real-world applications are everywhere! Engineers use ODEs to design circuits, biologists model population dynamics, economists track market changes, and meteorologists predict weather patterns. NASA even uses them to calculate spacecraft trajectories! šŸ›°ļø

Separable Differential Equations

Let's start with the most straightforward type: separable equations. These are ODEs where we can separate the variables - getting all the $y$ terms on one side and all the $x$ terms on the other.

A separable equation has the form:

$$\frac{dy}{dx} = g(x)h(y)$$

To solve it, we literally separate the variables:

$$\frac{dy}{h(y)} = g(x)dx$$

Then we integrate both sides:

$$\int \frac{dy}{h(y)} = \int g(x)dx$$

Let's work through a concrete example. Suppose we have:

$$\frac{dy}{dx} = xy$$

Step 1: Separate variables

$$\frac{dy}{y} = x dx$$

Step 2: Integrate both sides

$$\int \frac{dy}{y} = \int x dx$$

$$\ln|y| = \frac{x^2}{2} + C$$

Step 3: Solve for y

$$|y| = e^{\frac{x^2}{2} + C} = e^C \cdot e^{\frac{x^2}{2}}$$

$$y = Ae^{\frac{x^2}{2}}$$

where $A = \pm e^C$ is our arbitrary constant.

This technique works beautifully for modeling natural phenomena. Consider radioactive decay, where the rate of decay is proportional to the amount of radioactive material present. If we have $\frac{dN}{dt} = -kN$ (negative because it's decaying), separating variables gives us:

$$\frac{dN}{N} = -k dt$$

$$\ln|N| = -kt + C$$

$$N(t) = N_0 e^{-kt}$$

This is the famous exponential decay formula! Carbon-14 dating uses exactly this principle - archaeologists can determine the age of ancient artifacts by measuring how much carbon-14 has decayed. šŸŗ

Linear First-Order Differential Equations

Now let's tackle linear first-order ODEs. These have the standard form:

$$\frac{dy}{dx} + P(x)y = Q(x)$$

Notice how $y$ and its derivative appear to the first power only - that's what makes it "linear." These equations pop up constantly in physics and engineering, especially when dealing with circuits, mixing problems, and cooling/heating scenarios.

The secret weapon for solving linear ODEs is the integrating factor method. Here's the step-by-step process:

Step 1: Identify $P(x)$ and $Q(x)$ from the standard form

Step 2: Calculate the integrating factor: $\mu(x) = e^{\int P(x)dx}$

Step 3: Multiply the entire equation by $\mu(x)$

Step 4: Recognize that the left side becomes $\frac{d}{dx}[\mu(x)y]$

Step 5: Integrate both sides and solve for $y$

Let's see this in action with: $\frac{dy}{dx} + 2y = 3e^x$

Here, $P(x) = 2$ and $Q(x) = 3e^x$.

The integrating factor is:

$$\mu(x) = e^{\int 2 dx} = e^{2x}$$

Multiplying our equation by $e^{2x}$:

$$e^{2x}\frac{dy}{dx} + 2e^{2x}y = 3e^{3x}$$

The left side is exactly $\frac{d}{dx}[e^{2x}y]$, so:

$$\frac{d}{dx}[e^{2x}y] = 3e^{3x}$$

Integrating:

$$e^{2x}y = \int 3e^{3x}dx = e^{3x} + C$$

Therefore:

$$y = e^x + Ce^{-2x}$$

This method is incredibly powerful! It's used in electrical engineering to analyze RC circuits, where voltage and current change over time according to linear ODEs. šŸ”Œ

Growth and Decay Models

One of the most fascinating applications of first-order ODEs is modeling growth and decay in the real world. These models help us understand everything from bacterial growth to radioactive decay to population dynamics.

Exponential Growth Model:

When the rate of growth is proportional to the current amount, we get:

$$\frac{dP}{dt} = kP$$

The solution is $P(t) = P_0 e^{kt}$, where $P_0$ is the initial amount and $k > 0$ is the growth constant.

Real example: E. coli bacteria can double every 20 minutes under ideal conditions! If we start with 100 bacteria, after 2 hours (6 doubling periods), we'd have $100 \times 2^6 = 6,400$ bacteria. The exponential model captures this explosive growth perfectly.

Exponential Decay Model:

For decay processes, we have:

$$\frac{dN}{dt} = -kN$$

The solution is $N(t) = N_0 e^{-kt}$, where $k > 0$ is the decay constant.

Real example: Iodine-131, used in medical treatments, has a half-life of about 8 days. This means every 8 days, half of the radioactive iodine decays. The exponential decay model helps doctors calculate precise dosages for patients. šŸ’Š

Logistic Growth Model:

In reality, growth often slows down due to limited resources. The logistic model accounts for this:

$$\frac{dP}{dt} = kP(1 - \frac{P}{M})$$

where $M$ is the carrying capacity (maximum sustainable population).

This model beautifully describes human population growth. While global population grew exponentially for centuries, it's now showing signs of logistic behavior as resources become limited. The UN projects world population will peak around 10.9 billion people by 2100 - a perfect example of logistic growth in action! šŸŒ

Conclusion

First-order ODEs are powerful mathematical tools that help us understand how quantities change over time. We've explored separable equations (where variables can be separated and integrated), linear equations (solved using integrating factors), and their applications to growth and decay models. From bacterial growth to radioactive decay, from cooling coffee to population dynamics, these equations provide the mathematical framework for understanding change in our world. Remember, the key is recognizing the relationship between a quantity and its rate of change - once you see that pattern, you can model almost anything!

Study Notes

• First-Order ODE Definition: An equation relating a function $y(x)$ to its first derivative: $\frac{dy}{dx} = f(x,y)$

• Separable Equations: Form $\frac{dy}{dx} = g(x)h(y)$ → separate variables → $\frac{dy}{h(y)} = g(x)dx$ → integrate both sides

• Linear First-Order ODE: Standard form $\frac{dy}{dx} + P(x)y = Q(x)$

• Integrating Factor Method: $\mu(x) = e^{\int P(x)dx}$ → multiply equation by $\mu(x)$ → integrate

• Exponential Growth: $\frac{dP}{dt} = kP$ → solution: $P(t) = P_0 e^{kt}$ (k > 0)

• Exponential Decay: $\frac{dN}{dt} = -kN$ → solution: $N(t) = N_0 e^{-kt}$ (k > 0)

• Logistic Growth: $\frac{dP}{dt} = kP(1 - \frac{P}{M})$ where M is carrying capacity

• Half-life Formula: $t_{1/2} = \frac{\ln(2)}{k}$ for exponential decay

• Applications: Population dynamics, radioactive decay, cooling/heating, electrical circuits, economics, biology

Practice Quiz

5 questions to test your understanding