Introduction to Differential Equations
Introduction to Differential Equations
Differential equations involve one or more derivatives of an unknown function.
Types of Differential Equations
Ordinary Differential Equations (ODEs)
Definition: An ordinary differential equation is an equation involving an unknown function that depends on a single variable.
Example: Let $y = y(x)$, meaning "y is a function of x."
Example equations:
$y' = ext{cos}(x)$ (1st-order ODE)
$y'' + 4y = 0$ (2nd-order ODE)
$x^2y'' + e^xy' = x^2 + 2$ (3rd-order ODE)
Partial Differential Equations (PDEs)
Definition: A partial differential equation involves an unknown function that depends on two or more variables.
Example: $y = y(x, t)$
Notations and Derivatives
First derivative: $y' = rac{dy}{dx}$
Second derivative: $y'' = rac{d^2y}{dx^2}$
Third derivative: $y''' = rac{d^3y}{dx^3}$
Reactor Example
A continuous stirred reactor (STR) demonstrates the practical application of differential equations.
First-order reaction:
Equation:
This indicates that the concentration $C$ depends on time and reaction rate constant $k$.
The reactor is not homogeneous, leading to concentration depending on both time and position, denoted as $C = C(t, x)$.
For a reaction-diffusion system:
Equation:
Ordinary Differential Equations (ODES)
Properties and Order of ODEs
The order of ODE is defined as the highest derivative present in the equation.
First-order ODE: Contains only the first derivative of $y$; e.g., $y' = f(x, y)$
Explicit Form: $F(x, y, y') = 0$; an example can be seen in the form $y' = f(x, y)$.
Implicit Form: Requires some manipulation to isolate variables.
Solving First-Order ODEs
1. Separable First-Order ODEs
Definition: These can be written in a form where all $y$ terms are on one side and all $x$ terms on the other.
General format:
Integrate both sides:
Example of Separable ODE
Given the equation:
, separate the variables:
Integrate results to find:
Particular solution determined by initial conditions.
Example case: Knowing $y(0) = 2$, yields:
Exact Ordinary Differential Equations (ODES)
A 1st-order ODE in the form $M(x,y)dx + N(x,y)dy = 0$ is exact if there exists a function $u(x,y)$ such that:
(where symbols denote partial derivatives).
Conditions for Exactness
The following conditions must be met for the ODE to be exact:
Write as $M(x,y)dx + N(x,y)dy = 0$.
Check if $ rac{ rac{ ext{d}M}{ ext{d}y}}{My} - $ rac{ rac{ ext{d}N}{ ext{d}x}}{Nx} = 0$.
Finding the General Solution
If the equation is found to be exact, the general solution can be expressed as:
Example of Exact ODE
Consider $y' = -2xy^3 - 2$. Check the exactness:
Rewrite $
ightarrow (3x^2y^2 + e^x)dx + dy = 0$Find $ rac{dM}{dy} = 6xy^2$ and $ rac{dN}{dx} = 6xy^2$. Confirm the exactness.
Integrating Factors (IF)
An integrating factor is a method to convert some inexact ordinary differential equations to an exact form.
General form:
.
If the equation is not exact, we can seek an integrating factor $F(x,y)$ to make it exact.
Steps to Determine IF
Assume $F(x,y)$ depends on one variable (either $x$ or $y$).
Check if the equation can be manipulated into an exact one after multiplying by the integrating factor.
Perform the integration to find the solution of the form $u(x,y) = C$.
Example for Integrating Factor
Given an ODE:
, check for exactness and find:
Not exact; hence find an integrating factor.
Ultimately resulting in the equivalent exact form suitable for solving.
Conclusion
Differential equations, particularly ordinary differential equations, are fundamental in modeling various physical systems, and understanding the exactness and methods of solution are critical in applied mathematics.