Differential Equations Introduction
Differential Equations Introduction
EQUATIONS
Engr. Jhomel G. Zaragoza
WHAT IS A DIFFERENTIAL
EQUATION?
• A differential equation is an equation that relates a
function to its derivatives.
• It describes how a quantity changes over time or
space.
TYPES OF DIFFERENTIAL
EQUATIONS
• Ordinary Differential Equations (ODEs): Involves
derivatives with respect to a single variable.
Ans: y = x ln|x| + x - 1
APPLICATIONS OF
DIFFERENTIAL EQUATIONS
• Physics: Newton’s Laws, Thermodynamics
• Engineering: Circuit Analysis, Control Systems
• Biology: Population Dynamics, Disease Spread
• Economics: Modeling Growth, Supply-Demand
Curves
FIRST-ORDER DIFFERENTIAL
EQUATIONS
• Form: dy/dx = f(x, y)
Steps:
1. Rewrite as dy/y = dx
2. Integrate both sides: ∫(1/y)dy = ∫dx
3. Solution: ln|y| = x + C → y = Ce^x
EXAMPLE 2 - POPULATION
GROWTH WITH LIMITED
RESOURCES
• dy/dx = y(1 - y)
Steps:
1. Rewrite as dy/(y(1 - y)) = dx
2. Use partial fractions to solve: ∫(1/y + 1/(1-y))dy =
∫dx
3. Solution: ln|y/(1-y)| = x + C → y = 1/(1 + Ce^(-x))
4. Get rid of the ln function by raising both side of
the equations with e
EXAMPLE 3 - COOLING OF AN
OBJECT
• Newton’s Law of Cooling: dy/dt = -k(y - T₀)
Steps:
1. Rewrite as dy/(y - T₀) = -k dt
2. Integrate both sides: ∫(1/(y - T₀))dy = ∫(-k)dt
3. Solution: ln|y - T₀| = -kt + C → y = T₀ + Ce^(-kt)
SUMMARY
Method:
1. Substitute y = vx (so dy/dx = v + x dv/dx)
2. Solve for v and integrate both sides.
3. Solution: y = Cx
EXAMPLE 2 - HOMOGENEOUS
DE WITH HIGHER POWERS
• dy/dx = (2x² + 3xy)/(x² + y²)
Method:
1. Substitute y = vx and dy/dx = v + x dv/dx
2. Simplify and separate variables.
3. Integrate to find the general solution.
EXAMPLE 3 - COMPLEX
HOMOGENEOUS DE
• dy/dx = (x³ + y³)/(x² - xy)
Method:
1. Use substitution y = vx and dy/dx = v + x dv/dx
2. Simplify the resulting equation.
3. Solve by integrating.
EXAMPLE 4 - HOMOGENEOUS
DE IN POLAR COORDINATES
• dy/dx = (x + y)/(x - y)
Method:
1. Substitute y = vx and change the equation to
polar coordinates.
2. Separate variables and solve.
3. General solution in terms of polar coordinates.
EXAMPLE 5 - HOMOGENEOUS
DE WITH LOGARITHMIC
SOLUTION
• dy/dx = (x - y)/(x + y)
Method:
1. Substitute y = vx.
2. Solve using separation of variables and
logarithmic integration.
3. Final solution: ln|y| = ln|x| + C
EXERCISES ON HDE
EXERCISE
EXERCISE
EXERCISE
EXACT DIFFERENTIAL
EQUATIONS
Section 1: 3
Theory
1. Theory
We consider here the following standard form of ordinary
differential equation (o.d.e.):
EXERCISE 1.
1 y
dy − dx
=0
x x2
EXERCISE 2.
d
2xy + y2 − x =
yx
d
2 0
EXERCISE 3.
2(y + 1)exdx + 2(ex − 2y)dy
=0
Solutions to exercises 1
2
Full worked solutions
Exercise 1.
Standard form: P (x, y)dx + Q(x, y)dy
=0
i.e. P (x, y) = y2 and Q(x, y) =x
x
− 1
Equation is ∂P
∂y = ∂∂x
Q
exact if
∂P ∂Q
Check ∂y = − 12 ∂x ∴ o.d.e. is
x
: = exact.
Since equation exact, u(x, y) exists
such that
∂u ∂u
du = dx +
∂x ∂y
dy
= P dx + Q dy = 0
and equation has u = C, C =
solution constant.
EXERCISE:
Solve the DE
FIRST ORDER LINEAR D.E
NON-HOMOGENOUS LDE
CONT.
APPLICATIONS
CONT
CONT.
CONT.
CONT.
MIXING TANK PROBLEMS
MIXING TANKS
APPLICATIONS: DECAY
DECAY
DECAY
EXERCISE