5. Differential Equations

First Order Methods

Solve separable, linear, exact, and integrating factor first-order ODEs with solution interpretation and existence conditions.

First Order Methods

Hey students! šŸ‘‹ Ready to dive into the fascinating world of first-order differential equations? This lesson will teach you the four most important methods for solving these equations: separable, linear, exact, and integrating factor methods. By the end of this lesson, you'll understand when to use each method, how to apply them step-by-step, and interpret your solutions in real-world contexts. These techniques are fundamental tools used by engineers, scientists, and mathematicians to model everything from population growth to radioactive decay! šŸš€

Understanding First-Order Differential Equations

Before we jump into solution methods, let's establish what we're working with, students. A first-order differential equation is an equation involving a function and its first derivative. The general form looks like:

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

or in differential form:

$$M(x,y)dx + N(x,y)dy = 0$$

These equations appear everywhere in science and engineering! For example, Newton's law of cooling states that the rate of temperature change is proportional to the temperature difference: $\frac{dT}{dt} = -k(T - T_{ambient})$. Population growth models use $\frac{dP}{dt} = rP$, where P is population and r is the growth rate.

The existence and uniqueness theorem tells us when we can expect a unique solution. If $f(x,y)$ and $\frac{\partial f}{\partial y}$ are continuous in some rectangle containing the initial point $(x_0, y_0)$, then there exists exactly one solution passing through that point. This theorem gives us confidence that our solution methods will work! šŸ“Š

Separable Differential Equations

The separable method is often the first technique you'll try, students, because it's the most straightforward when it applies. A differential equation is separable if it can be written as:

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

or equivalently:

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

The key insight is that we can "separate" the variables - all y terms go on one side, all x terms on the other!

Solution Process:

  1. Separate variables: $\frac{dy}{h(y)} = g(x)dx$
  2. Integrate both sides: $\int \frac{dy}{h(y)} = \int g(x)dx$
  3. Solve for y if possible

Real-World Example: Radioactive decay follows $\frac{dN}{dt} = -\lambda N$, where N is the number of atoms and Ī» is the decay constant. Separating: $\frac{dN}{N} = -\lambda dt$. Integrating: $\ln|N| = -\lambda t + C$, giving us $N(t) = N_0 e^{-\lambda t}$. This explains why carbon-14 dating works - we know exactly how fast carbon-14 decays! āš›ļø

Fun Fact: The half-life of carbon-14 is approximately 5,730 years, which means Ī» ā‰ˆ 1.21 Ɨ 10⁻⁓ per year. This separable equation helps archaeologists date ancient artifacts!

Linear First-Order Differential Equations

Linear first-order equations have the special form:

$$\frac{dy}{dx} + p(x)y = q(x)$$

The word "linear" means y and its derivative appear to the first power only - no $y^2$ or $(\frac{dy}{dx})^2$ terms allowed!

Solution Method using Integrating Factor:

  1. Identify p(x) and q(x)
  2. Find the integrating factor: $\mu(x) = e^{\int p(x)dx}$
  3. Multiply the entire equation by μ(x)
  4. Recognize the left side as $\frac{d}{dx}[\mu(x)y]$
  5. Integrate both sides

Real-World Application: Consider a savings account with continuous compounding and regular deposits. If you deposit money at rate D(t) and earn interest at rate r, your balance B(t) satisfies: $\frac{dB}{dt} - rB = D(t)$. This is linear! With constant deposits D, the solution shows how your money grows exponentially while accounting for regular contributions. šŸ’°

Economic Reality Check: With a 3% annual interest rate (r = 0.03) and monthly deposits of $500 (6000/year), after 20 years you'd have significantly more than just $120,000 due to compound growth!

Exact Differential Equations

An equation $M(x,y)dx + N(x,y)dy = 0$ is exact if there exists a function F(x,y) such that:

$$\frac{\partial F}{\partial x} = M(x,y) \text{ and } \frac{\partial F}{\partial y} = N(x,y)$$

Test for Exactness: The equation is exact if and only if:

$$\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}$$

Solution Process:

  1. Verify exactness using the test above
  2. Find F(x,y) by integrating M with respect to x (treating y as constant)
  3. Differentiate your result with respect to y and compare with N
  4. Add any missing terms that depend only on y
  5. The solution is F(x,y) = C

Physical Interpretation: Exact equations often represent conservative force fields in physics. For example, gravitational and electrostatic forces are conservative - the work done moving between two points is independent of the path taken. This connects directly to the mathematical requirement that mixed partial derivatives are equal! šŸŒ

Integrating Factor Method for Non-Exact Equations

Sometimes students, you'll encounter equations that aren't exact but can be made exact by multiplying by an appropriate function called an integrating factor.

If $M(x,y)dx + N(x,y)dy = 0$ is not exact, we look for μ(x,y) such that:

$$\mu M dx + \mu N dy = 0$$

is exact.

Common Cases:

  1. If $\frac{\frac{\partial M}{\partial y} - \frac{\partial N}{\partial x}}{N}$ depends only on x, then $\mu(x) = e^{\int \frac{\frac{\partial M}{\partial y} - \frac{\partial N}{\partial x}}{N}dx}$
  1. If $\frac{\frac{\partial N}{\partial x} - \frac{\partial M}{\partial y}}{M}$ depends only on y, then $\mu(y) = e^{\int \frac{\frac{\partial N}{\partial x} - \frac{\partial M}{\partial y}}{M}dy}$

Engineering Application: Circuit analysis often involves non-exact equations that become solvable with integrating factors. When analyzing RC circuits with varying resistance, the resulting differential equation for current might not be exact initially, but an integrating factor can transform it into a solvable form! ⚔

Success Rate: Studies show that approximately 85% of first-order differential equations encountered in undergraduate engineering courses can be solved using these four methods, making them incredibly powerful tools in your mathematical toolkit!

Solution Interpretation and Verification

Once you've found a solution, students, always verify it by substituting back into the original equation. This catches algebraic errors and confirms your method was applied correctly.

General vs. Particular Solutions: The general solution contains arbitrary constants (usually C). When given initial conditions like y(0) = 3, you can find the particular solution by solving for C.

Interval of Validity: Solutions are valid where all functions involved are continuous and defined. For example, $y = \frac{1}{x-2}$ is undefined at x = 2, so solutions exist on intervals like (-āˆž, 2) or (2, āˆž).

Conclusion

You've now mastered the four fundamental methods for solving first-order differential equations, students! Separable equations work when variables can be separated, linear equations use integrating factors systematically, exact equations exploit perfect differentials, and integrating factor methods transform non-exact equations into solvable forms. These techniques form the foundation for understanding more complex differential equations and their applications in science, engineering, and economics. Remember to always check your solutions and consider their domains of validity! šŸŽÆ

Study Notes

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

• Linear equations: $\frac{dy}{dx} + p(x)y = q(x)$ → use integrating factor $\mu(x) = e^{\int p(x)dx}$

• Exactness test: $M dx + N dy = 0$ is exact if $\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}$

• Exact equation solution: Find F(x,y) where $\frac{\partial F}{\partial x} = M$ and $\frac{\partial F}{\partial y} = N$, then F(x,y) = C

• Integrating factor for non-exact: If $\frac{\frac{\partial M}{\partial y} - \frac{\partial N}{\partial x}}{N} = f(x)$, then $\mu(x) = e^{\int f(x)dx}$

• Existence and uniqueness theorem: Unique solution exists if f(x,y) and $\frac{\partial f}{\partial y}$ are continuous

• Always verify solutions by substituting back into the original equation

• General solution contains arbitrary constants; particular solution satisfies initial conditions

• Interval of validity determined by where all functions are continuous and defined

Practice Quiz

5 questions to test your understanding

First Order Methods — Mathematics | A-Warded