Achievable logoAchievable logo
FE Mechanical
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
1. Mathematics
1.1 Analytic geometry
1.2 Calculus
1.3 Ordinary differential equations
1.4 Numerical methods
2. Probability & statistics
3. Ethics & professional practice
4. Engineering economics
5. Electricity & magnetism
6. Statics
7. sandbox
Example
Achievable logoAchievable logo
1.3 Ordinary differential equations
FE Mechanical
1. Mathematics
Our FE Mechanical course is currently in development and is a work-in-progress.

Ordinary differential equations

8 min read
Font
Discuss
Share
Feedback

Ordinary differential equations (ODEs) represent one of the most powerful and widely applicable areas of mathematics, providing the fundamental language for describing dynamic systems across science and engineering. Within the field of differential equations, linear constant coefficient differential equations (LCCDEs) in particular occupy a special position due to their mathematical tractability and widespread practical importance. These equations, while representing a specific subset of all possible differential equations, appear with remarkable frequency in real-world applications and serve as the foundation for understanding more complex systems.

Definition and classification of differential equations

A differential equation is a mathematical equation that relates a function to its derivatives. In the context of ordinary differential equations, we deal with functions of a single independent variable (typically time t or position x) and their derivatives.

The general form of an n-th order ODE can be written as:

F(x,y,y′,y′′,…,y(n))=0

where y=y(x) is the unknown function, and y′,y′′,…,y(n) represent its first, second, through n-th derivatives.

Definitions
Order
The highest derivative that appears in the equation.
Degree
The highest power of the highest-order derivative (when the equation is polynomial in derivatives).

Linear vs. nonlinear equations

A differential equation is linear if it can be written in the form:

an​(x)y(n)+an−1​(x)y(n−1)+⋯+a1​(x)y′+a0​(x)y=f(x)

Key characteristics of linear equations include:

  • The dependent variable y and all its derivatives appear to the first power only.
  • No products of y and its derivatives appear.
  • No transcendental functions of y or its derivatives appear.

Linear constant coefficient differential equations (LCCDEs)

A linear constant coefficient differential equation (LCCDE) is a linear ODE where all coefficients are constants (independent of the variable). The general form of an n-th order LCCDE is:

an​y(n)+an−1​y(n−1)+⋯+a1​y′+a0​y=f(x)

where an​,an−1​,…,a1​,a0​ are constants with an​=0.

Definitions
Homogeneous LCCDE
An LCCDE where f(x)=0: an​y(n)+an−1​y(n−1)+⋯+a1​y′+a0​y=0.
Non-homogeneous LCCDE
An LCCDE where f(x)=0: an​y(n)+an−1​y(n−1)+⋯+a1​y′+a0​y=f(x).

First-order linear constant coefficient equations

Homogeneous case

The simplest LCCDE is the first-order homogeneous equation:

dxdy​+ay=0

or equivalently:

y′+ay=0

The solution is:

y=Ce−ax

where C is an arbitrary constant determined by initial conditions.

Non-homogeneous case

The first-order non-homogeneous LCCDE has the form:

y′+ay=f(x),

which has the following solution:

y=e−ax[∫eaxf(x)dx+C]

Second-order linear constant coefficient equations

Second-order LCCDEs are particularly important because they model many fundamental physical phenomena, including oscillatory motion, electrical circuits, and vibrating systems.

General second-order LCCDE

ay′′+by′+cy=f(x)

where a, b, and c are constants with a=0.

The complete solution consists of two parts:

y=yh​+yp​

where:

  • yh​ is the homogeneous solution (solution to ay′′+by′+cy=0)
  • yp​ is a particular solution to the non-homogeneous equation

The characteristic equation method provides a systematic approach to finding the homogeneous solution of LCCDEs.

Derivation of the characteristic equation

For the homogeneous equation ay′′+by′+cy=0, we assume a solution of the form:

y=erx

where r is a constant to be determined.

Computing the derivatives:

  • y′=rerx
  • y′′=r2erx

Substituting into the differential equation:

a(r2erx)+b(rerx)+c(erx)=0

Factoring out erx:

erx(ar2+br+c)=0

Since erx=0 for any finite r and x, we must have:

Characteristic equation

ar2+br+c=0

Also called the auxiliary equation.

Solving the characteristic equation

The characteristic equation is a quadratic equation with solutions:

r=2a−b±b2−4ac​​

The discriminant Δ=b2−4ac determines the nature of the solutions and the behavior of the system.

The behavior of second-order systems is classified based on the discriminant of the characteristic equation. This classification has profound physical significance and appears across many disciplines.

Case 1: overdamping (Δ>0, b2>4ac)

Characteristic roots: two distinct real roots r1​ and r2​

r1​=2a−b+b2−4ac​​,r2​=2a−b−b2−4ac​​

General solution:

yh​=C1​er1​x+C2​er2​x

Physical characteristics:

  • No oscillations: the solution approaches equilibrium monotonically.
  • Slow return to equilibrium: high damping prevents oscillations but slows response.
  • Two time constants: the system has two characteristic time scales.

Case 2: critical damping (Δ=0, b2=4ac)

Characteristic roots: one repeated real root r=−2ab​

General solution:

yh​​=(C1​+C2​x)erx=(C1​+C2​x)e−2ab​x​

Physical characteristics:

  • Fastest return to equilibrium without oscillation.
  • Optimal damping: represents the boundary between oscillatory and non-oscillatory behavior.
  • Engineering significance: often the desired response in control systems.

Case 3: underdamping (Δ<0, b2<4ac)

Characteristic roots: complex conjugate pair r=α±βi

α=−2ab​,β=2a4ac−b2​​

General solution:

yh​=eαx(C1​cos(βx)+C2​sin(βx))

Physical characteristics:

  • Oscillatory motion: the solution exhibits sinusoidal behavior.
  • Exponential envelope: the amplitude of oscillations changes exponentially.
  • Two frequencies: natural frequency and damped frequency.

The solution can also be written as:

yh​=Aeαxcos(βx−ϕ)

where A=C12​+C22​​ and ϕ=arctan(C2​/C1​).

Physical interpretation:

  • α determines the decay rate of the oscillations.
  • β determines the frequency of oscillation.
  • If α<0, oscillations decay (stable system).
  • If α>0, oscillations grow (unstable system).
  • If α=0, oscillations maintain constant amplitude.

Laplace transforms

Traditional methods of solving nonhomogeneous differential equations by hand are usually difficult and/or time consuming. Laplace transforms can be used to reduce many solution procedures to simple algebra.

Laplace transform

F(s)=∫0∞​f(t)e−stdt

Every mathematical function, f(t), has a Laplace transform, written as F(s) or L(s). The transform is written in the s-domain, regardless of the independent variable in the original function. The variable s is equivalent to a derivative operator, although it may be handled in the equations as a simple variable. This equation converts a function into its Laplace transform.

Sidenote
Using transform tables

It is generally unnecessary to actually compute a function’s Laplace transform. Tables of transform pairs are readily available for common functions — see the reference table below.

The following table lists common Laplace transform pairs, used as a quick reference when transforming functions to and from the s-domain.

f(t) F(s)
δ(t), impulse at t=0 1
u(t), step at t=0 1/s
t[u(t)], ramp at t=0 1/s2
e−αt 1/(s+α)
te−αt 1/(s+α)2
e−αtsinβt β/[(s+α)2+β2]
e−αtcosβt (s+α)/[(s+α)2+β2]
dtndnf(t)​ snF(s)−∑m=0n−1​sn−m−1dtmdmf(0)​
∫0t​f(τ)dτ (1/s)F(s)
∫0t​x(t−τ)h(t)dτ H(s)X(s)
f(t−τ)u(t−τ) e−τsF(s)
:::

Inverse Laplace transform

f(t)=2πj1​∫σ−j∞σ+j∞​F(s)estdt

Extracting a function from its transform is the inverse Laplace transform operation. Although the equation above could be used and other methods exist, this operation is almost always done using a table.

Initial value theorem (IVT):

s→∞lim​sF(s)

Final value theorem (FVT):

s→0lim​sF(s)

Definition and classification of differential equations

  • ODE relates a function of one variable to its derivatives
  • General n-th order form: F(x,y,y′,y′′,…,y(n))=0
  • Order: highest derivative present; Degree: highest power of highest-order derivative

Linear vs. nonlinear equations

  • Linear form: an​(x)y(n)+⋯+a1​(x)y′+a0​(x)y=f(x)
  • y and derivatives appear only to first power, no products, no transcendental functions of y

Linear constant coefficient differential equations (LCCDEs)

  • All coefficients an​,…,a0​ are constants, an​=0
  • Homogeneous: f(x)=0; Non-homogeneous: f(x)=0

First-order linear constant coefficient equations

  • Homogeneous: y′+ay=0 → solution y=Ce−ax
  • Non-homogeneous: y′+ay=f(x) → solution y=e−ax[∫eaxf(x)dx+C]

Second-order linear constant coefficient equations

  • General form: ay′′+by′+cy=f(x)
  • Full solution: y=yh​+yp​ (homogeneous + particular)
  • Assume y=erx → yields characteristic equation: ar2+br+c=0
  • Roots: r=2a−b±b2−4ac​​; discriminant Δ=b2−4ac determines system behavior

Case 1: Overdamping (Δ>0)

  • Two distinct real roots r1​,r2​
  • Solution: yh​=C1​er1​x+C2​er2​x
  • No oscillation, slow monotonic return to equilibrium, two time constants

Case 2: Critical damping (Δ=0)

  • Repeated real root r=−b/(2a)
  • Solution: yh​=(C1​+C2​x)e−2ab​x
  • Fastest non-oscillatory return; optimal/boundary damping; key in control systems

Case 3: Underdamping (Δ<0)

  • Complex conjugate roots r=α±βi, with α=−b/(2a), β=4ac−b2​/(2a)
  • Solution: yh​=eαx(C1​cos(βx)+C2​sin(βx)), or Aeαxcos(βx−ϕ)
  • Oscillatory with exponential envelope
    • α<0: decaying (stable); α>0: growing (unstable); α=0: constant amplitude

Laplace transforms

  • Converts differential equations into algebra problems
  • Definition: F(s)=∫0∞​f(t)e−stdt
  • Common pairs (via table): impulse→1, step→1/s, ramp→1/s2, e−αt→1/(s+α), etc.
  • Derivative property: dtndnf​→snF(s)−∑sn−m−1f(m)(0)
  • Convolution property: ∫0t​x(t−τ)h(τ)dτ→H(s)X(s)
  • Time shift: f(t−τ)u(t−τ)→e−τsF(s)

Inverse Laplace transform

  • Formula: f(t)=2πj1​∫σ−j∞σ+j∞​F(s)estdt
  • In practice, computed using transform tables rather than direct integration

Initial and Final Value Theorems

  • IVT: lims→∞​sF(s) gives f(0+)
  • FVT: lims→0​sF(s) gives steady-state value of f(t)
Previous
Next  | 1.4 Numerical methods
All rights reserved ©2016 - 2026 Achievable, Inc.

Ordinary differential equations

Ordinary differential equations (ODEs) represent one of the most powerful and widely applicable areas of mathematics, providing the fundamental language for describing dynamic systems across science and engineering. Within the field of differential equations, linear constant coefficient differential equations (LCCDEs) in particular occupy a special position due to their mathematical tractability and widespread practical importance. These equations, while representing a specific subset of all possible differential equations, appear with remarkable frequency in real-world applications and serve as the foundation for understanding more complex systems.

Definition and classification of differential equations

A differential equation is a mathematical equation that relates a function to its derivatives. In the context of ordinary differential equations, we deal with functions of a single independent variable (typically time t or position x) and their derivatives.

The general form of an n-th order ODE can be written as:

F(x,y,y′,y′′,…,y(n))=0

where y=y(x) is the unknown function, and y′,y′′,…,y(n) represent its first, second, through n-th derivatives.

Definitions
Order
The highest derivative that appears in the equation.
Degree
The highest power of the highest-order derivative (when the equation is polynomial in derivatives).

Linear vs. nonlinear equations

A differential equation is linear if it can be written in the form:

an​(x)y(n)+an−1​(x)y(n−1)+⋯+a1​(x)y′+a0​(x)y=f(x)

Key characteristics of linear equations include:

  • The dependent variable y and all its derivatives appear to the first power only.
  • No products of y and its derivatives appear.
  • No transcendental functions of y or its derivatives appear.

Linear constant coefficient differential equations (LCCDEs)

A linear constant coefficient differential equation (LCCDE) is a linear ODE where all coefficients are constants (independent of the variable). The general form of an n-th order LCCDE is:

an​y(n)+an−1​y(n−1)+⋯+a1​y′+a0​y=f(x)

where an​,an−1​,…,a1​,a0​ are constants with an​=0.

Definitions
Homogeneous LCCDE
An LCCDE where f(x)=0: an​y(n)+an−1​y(n−1)+⋯+a1​y′+a0​y=0.
Non-homogeneous LCCDE
An LCCDE where f(x)=0: an​y(n)+an−1​y(n−1)+⋯+a1​y′+a0​y=f(x).

First-order linear constant coefficient equations

Homogeneous case

The simplest LCCDE is the first-order homogeneous equation:

dxdy​+ay=0

or equivalently:

y′+ay=0

The solution is:

y=Ce−ax

where C is an arbitrary constant determined by initial conditions.

Non-homogeneous case

The first-order non-homogeneous LCCDE has the form:

y′+ay=f(x),

which has the following solution:

y=e−ax[∫eaxf(x)dx+C]

Second-order linear constant coefficient equations

Second-order LCCDEs are particularly important because they model many fundamental physical phenomena, including oscillatory motion, electrical circuits, and vibrating systems.

General second-order LCCDE

ay′′+by′+cy=f(x)

where a, b, and c are constants with a=0.

The complete solution consists of two parts:

y=yh​+yp​

where:

  • yh​ is the homogeneous solution (solution to ay′′+by′+cy=0)
  • yp​ is a particular solution to the non-homogeneous equation

The characteristic equation method provides a systematic approach to finding the homogeneous solution of LCCDEs.

Derivation of the characteristic equation

For the homogeneous equation ay′′+by′+cy=0, we assume a solution of the form:

y=erx

where r is a constant to be determined.

Computing the derivatives:

  • y′=rerx
  • y′′=r2erx

Substituting into the differential equation:

a(r2erx)+b(rerx)+c(erx)=0

Factoring out erx:

erx(ar2+br+c)=0

Since erx=0 for any finite r and x, we must have:

Characteristic equation

ar2+br+c=0

Also called the auxiliary equation.

Solving the characteristic equation

The characteristic equation is a quadratic equation with solutions:

r=2a−b±b2−4ac​​

The discriminant Δ=b2−4ac determines the nature of the solutions and the behavior of the system.

The behavior of second-order systems is classified based on the discriminant of the characteristic equation. This classification has profound physical significance and appears across many disciplines.

Case 1: overdamping (Δ>0, b2>4ac)

Characteristic roots: two distinct real roots r1​ and r2​

r1​=2a−b+b2−4ac​​,r2​=2a−b−b2−4ac​​

General solution:

yh​=C1​er1​x+C2​er2​x

Physical characteristics:

  • No oscillations: the solution approaches equilibrium monotonically.
  • Slow return to equilibrium: high damping prevents oscillations but slows response.
  • Two time constants: the system has two characteristic time scales.

Case 2: critical damping (Δ=0, b2=4ac)

Characteristic roots: one repeated real root r=−2ab​

General solution:

yh​​=(C1​+C2​x)erx=(C1​+C2​x)e−2ab​x​

Physical characteristics:

  • Fastest return to equilibrium without oscillation.
  • Optimal damping: represents the boundary between oscillatory and non-oscillatory behavior.
  • Engineering significance: often the desired response in control systems.

Case 3: underdamping (Δ<0, b2<4ac)

Characteristic roots: complex conjugate pair r=α±βi

α=−2ab​,β=2a4ac−b2​​

General solution:

yh​=eαx(C1​cos(βx)+C2​sin(βx))

Physical characteristics:

  • Oscillatory motion: the solution exhibits sinusoidal behavior.
  • Exponential envelope: the amplitude of oscillations changes exponentially.
  • Two frequencies: natural frequency and damped frequency.

The solution can also be written as:

yh​=Aeαxcos(βx−ϕ)

where A=C12​+C22​​ and ϕ=arctan(C2​/C1​).

Physical interpretation:

  • α determines the decay rate of the oscillations.
  • β determines the frequency of oscillation.
  • If α<0, oscillations decay (stable system).
  • If α>0, oscillations grow (unstable system).
  • If α=0, oscillations maintain constant amplitude.

Laplace transforms

Traditional methods of solving nonhomogeneous differential equations by hand are usually difficult and/or time consuming. Laplace transforms can be used to reduce many solution procedures to simple algebra.

Laplace transform

F(s)=∫0∞​f(t)e−stdt

Every mathematical function, f(t), has a Laplace transform, written as F(s) or L(s). The transform is written in the s-domain, regardless of the independent variable in the original function. The variable s is equivalent to a derivative operator, although it may be handled in the equations as a simple variable. This equation converts a function into its Laplace transform.

Sidenote
Using transform tables

It is generally unnecessary to actually compute a function’s Laplace transform. Tables of transform pairs are readily available for common functions — see the reference table below.

The following table lists common Laplace transform pairs, used as a quick reference when transforming functions to and from the s-domain.

f(t) F(s)
δ(t), impulse at t=0 1
u(t), step at t=0 1/s
t[u(t)], ramp at t=0 1/s2
e−αt 1/(s+α)
te−αt 1/(s+α)2
e−αtsinβt β/[(s+α)2+β2]
e−αtcosβt (s+α)/[(s+α)2+β2]
dtndnf(t)​ snF(s)−∑m=0n−1​sn−m−1dtmdmf(0)​
∫0t​f(τ)dτ (1/s)F(s)
∫0t​x(t−τ)h(t)dτ H(s)X(s)
f(t−τ)u(t−τ) e−τsF(s)
:::

Inverse Laplace transform

f(t)=2πj1​∫σ−j∞σ+j∞​F(s)estdt

Extracting a function from its transform is the inverse Laplace transform operation. Although the equation above could be used and other methods exist, this operation is almost always done using a table.

Initial value theorem (IVT):

s→∞lim​sF(s)

Final value theorem (FVT):

s→0lim​sF(s)

Key points

Definition and classification of differential equations

  • ODE relates a function of one variable to its derivatives
  • General n-th order form: F(x,y,y′,y′′,…,y(n))=0
  • Order: highest derivative present; Degree: highest power of highest-order derivative

Linear vs. nonlinear equations

  • Linear form: an​(x)y(n)+⋯+a1​(x)y′+a0​(x)y=f(x)
  • y and derivatives appear only to first power, no products, no transcendental functions of y

Linear constant coefficient differential equations (LCCDEs)

  • All coefficients an​,…,a0​ are constants, an​=0
  • Homogeneous: f(x)=0; Non-homogeneous: f(x)=0

First-order linear constant coefficient equations

  • Homogeneous: y′+ay=0 → solution y=Ce−ax
  • Non-homogeneous: y′+ay=f(x) → solution y=e−ax[∫eaxf(x)dx+C]

Second-order linear constant coefficient equations

  • General form: ay′′+by′+cy=f(x)
  • Full solution: y=yh​+yp​ (homogeneous + particular)
  • Assume y=erx → yields characteristic equation: ar2+br+c=0
  • Roots: r=2a−b±b2−4ac​​; discriminant Δ=b2−4ac determines system behavior

Case 1: Overdamping (Δ>0)

  • Two distinct real roots r1​,r2​
  • Solution: yh​=C1​er1​x+C2​er2​x
  • No oscillation, slow monotonic return to equilibrium, two time constants

Case 2: Critical damping (Δ=0)

  • Repeated real root r=−b/(2a)
  • Solution: yh​=(C1​+C2​x)e−2ab​x
  • Fastest non-oscillatory return; optimal/boundary damping; key in control systems

Case 3: Underdamping (Δ<0)

  • Complex conjugate roots r=α±βi, with α=−b/(2a), β=4ac−b2​/(2a)
  • Solution: yh​=eαx(C1​cos(βx)+C2​sin(βx)), or Aeαxcos(βx−ϕ)
  • Oscillatory with exponential envelope
    • α<0: decaying (stable); α>0: growing (unstable); α=0: constant amplitude

Laplace transforms

  • Converts differential equations into algebra problems
  • Definition: F(s)=∫0∞​f(t)e−stdt
  • Common pairs (via table): impulse→1, step→1/s, ramp→1/s2, e−αt→1/(s+α), etc.
  • Derivative property: dtndnf​→snF(s)−∑sn−m−1f(m)(0)
  • Convolution property: ∫0t​x(t−τ)h(τ)dτ→H(s)X(s)
  • Time shift: f(t−τ)u(t−τ)→e−τsF(s)

Inverse Laplace transform

  • Formula: f(t)=2πj1​∫σ−j∞σ+j∞​F(s)estdt
  • In practice, computed using transform tables rather than direct integration

Initial and Final Value Theorems

  • IVT: lims→∞​sF(s) gives f(0+)
  • FVT: lims→0​sF(s) gives steady-state value of f(t)

More from Mathematics

  • Numerical methods