Ordinary Differential Equations
Ordinary Differential Equations
1. Meaning of a Differential Equation
A differential equation is an equation involving:
An unknown function, such as f(x)
One or more derivatives of that function, such as f′(x), f′′(x), and higher derivatives
Other known functions of the independent variable, such as p(x), q(x), or sinx
A differential equation must be satisfied for all applicable values of the independent variable, except possibly values where the equation is undefined.
For example,
is a differential equation because it contains the first derivative of the unknown function f(x).
Another example is
This is also a differential equation because it contains both the function and its first derivative.
2. Order of a Differential Equation
The order of a differential equation is determined by the highest derivative appearing in the equation.
First-order differential equation
A differential equation is first order if the highest derivative is the first derivative.
Examples:
and
The derivative f′(x) is the highest derivative in each equation, so both are first-order differential equations.
Second-order differential equation
A differential equation is second order if the highest derivative is the second derivative.
For example,
is a second-order differential equation because f′′(x) is the highest derivative present.
The order is not determined by the arrangement or sequence of terms. It is determined only by the highest derivative.
The order of a differential equation is the order of its highest derivative.
3. Ordinary Differential Equations
An ordinary differential equation, or ODE, is a differential equation involving derivatives with respect to only one independent variable.
For example:
f′(x) and f′′(x) involve derivatives with respect to x
v′(t) and v′′(t) involve derivatives with respect to time t
The course focuses mainly on:
First-order linear ordinary differential equations
Second-order homogeneous linear ordinary differential equations with constant coefficients
Higher-order differential equations are also important, but they are studied in later courses.
Applications of Differential Equations
Differential equations are used to model relationships between physical quantities and their rates of change. They appear in mechanics, electrical circuits, control systems, and many other areas of engineering.
4. Falling Object with Air Resistance
Consider an object falling downward under the influence of gravity and air resistance.
Let:
x(t) be the position of the object at time t
v(t)) be its velocity at time t
m be its mass
g be the acceleration due to gravity
k be the air-resistance constant
The relationships between position, velocity, and acceleration are
and
The air resistance is assumed to be proportional to velocity. Its magnitude is therefore
4.1 Object moving downward
When the object moves downward:
The gravitational force mg acts downward
The air-resistance force kv(t) acts upward, opposite to the direction of motion
Taking downward as the positive direction, Newton’s second law gives
Dividing through by m and rearranging:
This is a first-order linear ordinary differential equation for the velocity v(t).
If the object is initially at rest, then the initial condition is
An initial condition describes the value of the unknown function before the process begins.
4.2 Object moving upward
If the object is thrown upward, both gravity and air resistance act downward. Since both forces oppose the upward motion, the equation changes according to the chosen sign convention.
The important modeling principle is:
A force acting in the direction chosen as positive is given a positive sign
A force acting opposite to the positive direction is given a negative sign
The differential equation must therefore be constructed by carefully considering the directions of all forces.
5. RC Circuit with a Constant Voltage Source
Consider a series circuit containing:
A resistor with resistance R
A capacitor with capacitance C
A constant voltage source of 5 volts
A current i(t) flowing through the circuit
Kirchhoff’s voltage law states that the total applied voltage equals the sum of the voltage drops across the resistor and capacitor:
The voltage across the resistor is
For the capacitor, the current-voltage relationship is
so
Differentiate Kirchhoff’s voltage equation with respect to time:
Using the component relationships:
Dividing by R gives
This is a first-order linear ordinary differential equation for the circuit current.
Initial current
Immediately after the circuit is switched on, the capacitor initially behaves as though it has zero voltage across it. Therefore, the initial current flows through the resistor, giving
The solution of the differential equation gives the current as a function of time.
First-Order Linear Ordinary Differential Equations
6. General Form
The standard form of a first-order linear ODE is
where:
f(x) is the unknown function
p(x) is a known function
q(x) is a known function
f′(x) is the first derivative of the unknown function
The equation is linear because:
f(x) appears only to the first power
f′(x) appears only to the first power
The unknown function and its derivative are not multiplied together
For example,
has
Similarly,
has
7. Linear and Nonlinear Differential Equations
A first-order equation is linear when the unknown function and its derivatives occur with power 1 only.
Linear examples
Nonlinear examples
The following equations are nonlinear:
They are nonlinear because the unknown function or its derivative is squared, raised to another power, or multiplied by another occurrence of the unknown function.
A first-order ODE is linear only when the unknown function and its derivatives appear to the first power and are not multiplied by one another.
Solving First-Order Linear ODEs
8. Case 1: The Coefficient p(x) Is Zero
If p(x)=0, the general equation becomes
The solution is obtained by integrating both sides:
where C is an arbitrary constant.
The constant appears because differentiation removes constant terms.
Example
Suppose
Integrating:
Therefore,
An initial condition is used to determine C and obtain a unique solution.
For example, if f(0) is known, substituting t=0 into the general solution gives an equation for C.
9. Case 2: p(x) Is a Constant
Suppose p(x)=p, where p is a constant. The equation becomes
The goal is to convert the left-hand side into the derivative of a product.
9.1 Multiplication by an exponential factor
Multiply the entire equation by
This gives
The left side is the derivative of the product epxf(x) because of the product rule:
Thus,
Integrating both sides:
Finally, divide by epx:
Equivalently,
The exponential factor epx is called the integrating factor for this constant-coefficient case.
General integrating factor
For the more general equation
the integrating factor is
The constant-coefficient formula is obtained when p(x)=p is constant.
Example: Falling Object with Air Resistance
10. Solving the Velocity Equation
The equation for a falling object is
with initial condition
Compare this equation with
Here,
The integrating factor is
Multiplying the equation by this factor:
The left side becomes
Therefore,
Integrating:
Multiplying by e−mkt:
Use the initial condition v(0)=0:
Thus,
The velocity is therefore
11. Interpretation of the Falling-Object Solution
The solution
describes the following behavior:
At t=0, the object is initially at rest:
v(0)=0.As time increases, the velocity increases.
The velocity does not increase without limit.
Since
e−mkt→0ast→∞,the velocity approaches
limt→∞v(t)=kmg.
The limiting velocity
is called the terminal velocity.
At terminal velocity, the gravitational force and air resistance balance:
Time constant
The quantity
is the time constant of the system.
At one time constant, t=km:
Thus, after one time constant, the velocity reaches approximately 63% of its terminal value.
Additional approximations are:
After 2τ, the velocity reaches approximately 86% of its final value
After 3τ, the velocity reaches approximately 95% of its final value
The velocity rises rapidly at first and then gradually approaches terminal velocity.
Example: RC Circuit Response
12. Solving the RC Current Equation
The RC circuit equation is
The initial condition is
Here,
Using the general solution for a first-order linear equation:
Because the integral of zero is zero:
Apply the initial condition:
Therefore,
13. Interpretation of the RC Solution
The current is initially
As time increases, the exponential factor decreases, so the current decays toward zero:
The quantity
is the RC time constant.
At one time constant:
Thus, after one time constant, the current has dropped to approximately 37% of its initial value, meaning it has decreased by approximately 63%.
After three time constants, the current is approximately 5% of its initial value.
The current response is an exponential decay:
Initially, the current decreases quickly
Later, the rate of decrease becomes smaller
Eventually, the current approaches zero
Second-Order Linear ODEs with Constant Coefficients
14. RLC Circuit Model
Consider a series circuit containing:
A resistor with resistance R
An inductor with inductance L
A capacitor with capacitance C
A voltage source vs(t)
A current i(t)
Kirchhoff’s voltage law gives
The component relationships are:
Resistor
Inductor
Capacitor
The capacitor relationship is
so
Differentiate Kirchhoff’s voltage equation:
Using the component relationships:
and
Substitution gives
This is a second-order linear ODE with constant coefficients.
The coefficients L, R, and C1 are constants. The right-hand side may be zero, a constant, or another function of time.
15. General Second-Order Linear Equation
The general second-order linear ODE with constant coefficients has the form
where:
A, B, and C are constants
f(x) is the unknown function
q(x) is a known function
For the RLC circuit:
The notation uses different symbols for the circuit capacitance and the coefficient in the general differential equation; the meaning is determined by context.
Homogeneous Second-Order Equations
16. Homogeneous Case
The equation is homogeneous when the right-hand side is zero:
For the RLC circuit, the homogeneous equation is
Homogeneous equations describe the natural response of a system without an external driving input on the right-hand side.
17. Exponential Trial Solution
To solve the homogeneous equation, assume an exponential form:
where s is an unknown constant.
The derivatives are
and
Substitute these into
This gives
Factor out esx:
Since an exponential function is never zero,
the expression in parentheses must equal zero:
This equation is called the auxiliary equation, or characteristic equation.
The auxiliary equation converts the second-order differential equation into a quadratic equation in s.
Distinct Real Roots
18. General Solution for Distinct Roots
Suppose the auxiliary equation has two distinct real roots:
Then the two independent solutions are
Any linear combination of these solutions is also a solution. Therefore, the general solution is
where C1 and C2 are arbitrary constants.
The two constants are determined using two initial conditions, typically values involving:
f(0)
f′(0)
A second-order differential equation generally requires two independent initial conditions to determine a unique solution.
19. Example with Distinct Real Roots
Consider
with initial conditions
Step 1: Form the auxiliary equation
Replace:
f′′(x) with s2
f′(x) with s
f(x) with 1
This gives
Factor:
Therefore, the roots are
They are distinct real roots.
Step 2: Write the general solution
Step 3: Apply the first initial condition
Substitute x=0:
Since f(0)=1:
Step 4: Differentiate the general solution
Substitute x=0:
Since f′(0)=1:
The constants satisfy the system
Solving gives
Final solution
Substitute these constants:
20. Verifying a Solution
A solution can be checked by substitution.
For the example,
The derivatives are
and
Substituting into the differential equation:
gives
Thus, the differential equation is satisfied.
Verification is useful because errors can occur when:
Solving the auxiliary equation
Applying initial conditions
Solving the resulting system of equations
Differentiating the general solution
Other Root Cases
The quadratic auxiliary equation
can produce three types of root behavior:
Two distinct real roots
One repeated real root
Two complex conjugate roots
The distinct-real-root case has the solution
For repeated real roots and complex roots, the form of the general solution changes and requires separate treatment. Nonhomogeneous second-order equations also require additional methods; the main focus in this material is the homogeneous case.
Key Study Summary
A differential equation contains an unknown function and one or more of its derivatives.
The order is the highest derivative appearing in the equation.
A first-order linear ODE has the form
f′(x)+p(x)f(x)=q(x).If p(x)=0, integration directly gives the solution.
If p(x) is constant, multiplication by epx converts the left side into a product derivative.
The falling-object model produces a terminal velocity of
kmg.The RC circuit current decays according to
i(t)=R5e−RCt.A second-order homogeneous linear ODE with constant coefficients has the form
Af′′(x)+Bf′(x)+Cf(x)=0.Assuming f(x)=esx produces the auxiliary equation
As2+Bs+C=0.For distinct real roots s1 and s2, the general solution is
f(x)=C1es1x+C2es2x.Two initial conditions are required to determine the two arbitrary constants in a second-order problem.

Ask anything
We've read this whole study set, so questions about it get the best answers.