Differential Equations: First- and Second-Order Equations

Differential Equations: First- and Second-Order Equations
QR code for this page

Course notes on first- and second-order ordinary differential equations, initial/boundary-value problems, vibration and resonance together with systems of ODEs, eigenvalues, phase planes, and local linearization.

Differential equations treat derivatives not only as quantities to compute but as components of equations that define system behaviour. The material covers first- and second-order equations, initial conditions and solution methods together with the conditions under which each method applies.

Solving a differential equation is more than obtaining a symbolic function. Existence, uniqueness, initial or boundary conditions, and numerical stability can change the engineering result directly. I therefore organize the methods primarily by problem class rather than by a sequence of formulas.

Unit 1: Fundamental Concepts and Definitions

1.1. Definition of a Differential Equation

A differential equation relates an unknown function to one or more of its derivatives. In an ordinary differential equation, the unknown function depends on a single independent variable. A basic first-order example is

dy/dx = f(x,y)

while a second-order equation may contain y'', y', and y together.

1.2. Classification

Differential equations are commonly classified by the number of independent variables, order, degree when defined, linearity, and whether the equation is homogeneous. The scope here concentrates on ordinary differential equations.

A linear equation has the unknown function and its derivatives only to the first power and does not multiply them together. Nonlinear equations do not satisfy that structure.

1.3. Order and Degree

The order is the order of the highest derivative occurring in the equation. The degree is the algebraic degree of the highest-order derivative after the equation has been written as a polynomial in the derivatives; it is not defined for every differential equation.

1.4. Forms of Representation

A first-order equation can be written in forms such as

y' = f(x,y)

or

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

The form often determines which solution method is convenient.

1.5. Types of Solutions

A general solution contains the number of arbitrary constants expected from the order of the equation. A particular solution results after those constants are fixed by additional conditions. A singular solution, when it exists, may not be obtained from the general family by choosing constant values.

1.6. Initial-value Problem

An initial-value problem specifies the value of the unknown function and, for higher-order equations, enough derivatives at one point. For example,

y' = f(x,y),   y(x0) = y0

combines a differential equation with one initial condition.

1.7. Boundary-value Problem

A boundary-value problem gives conditions at different points. A second-order equation may, for example, specify y(a) and y(b). Unlike a standard initial-value problem, a boundary-value problem may have no solution, one solution, or multiple solutions.

1.8. Existence and Uniqueness

The fact that an equation is written down does not by itself guarantee a unique solution. For a first-order initial-value problem, continuity of f helps establish local existence, while suitable regularity with respect to y provides a standard route to uniqueness. The exact hypotheses matter.

1.9. Modeling Physical Phenomena

Differential equations model change. Population growth, radioactive decay, heat transfer, mechanical vibration, electrical circuits, and control systems can all be described by relations between state variables and their rates of change. The mathematical equation is a model, so the assumptions behind it remain part of the engineering problem.

1.10. Existence, Uniqueness, and the Role of the Initial Condition

A differential equation can have no solution, one solution, or many solutions depending on the equation and imposed conditions. For an initial-value problem

y' = f(t,y), y(t0)=y0,

continuity of f supports local existence, while an appropriate Lipschitz condition in y supports local uniqueness.

These conditions explain why solving symbolically is only part of the problem. A formula that satisfies the differential equation may still fail the required initial or boundary condition.

1.11. Initial-value and boundary-value Problems

An initial-value problem specifies the state at one point and propagates from it. A boundary-value problem constrains the solution at different points. The numerical and analytical methods can therefore differ even when the differential equation is the same.

Unit 2: Classification of First-Order Equations

Start a first-order differential equation by rearranging it and testing for separable, linear, exact, or homogeneous structure. Superficially similar equations may need different substitutions; verify the method from algebraic form. Examine cases in which a divided factor is zero, or constant solutions may be lost. Differentiate the candidate solution and check it against the original equation and initial condition.

2.1. Forms of Representation

Before applying a method, the equation should be rewritten into a form that exposes its structure. Typical patterns are separable, exact, homogeneous, linear, and Bernoulli equations.

2.2. Classification

A first-order equation may satisfy more than one recognizable pattern. Classification is therefore not only a naming exercise; it is a way of selecting an efficient transformation or integration method.

Unit 3: Separable Equations

Solution curves of the logistic equation approaching the carrying capacity 100 from every positive start with the steepest growth at K over 2 and the phase line with unstable 0 and stable 100
Logistic growth solution curves

When integrating a separated differential equation, respect the domains of both sides. An implicit solution need not always be converted into an explicit one; if an explicit expression is available, use the initial condition to determine its constant. Where multiple branches arise, choose the branch containing the initial value and identify the interval of validity. Finally check for solutions introduced or lost through division or squaring.

3.1. General Solution

An equation of the form

dy/dx = g(x) h(y)

is separable when it can be rearranged as

dy / h(y) = g(x) dx.

Integrating both sides gives the implicit or explicit general solution.

3.2. Points to Check in Practice

Division by a function of y can discard solutions at points where that function is zero. Constant solutions should therefore be checked before division. Domains and integration constants must also be handled consistently.

3.3. Application Areas

Separable models arise in elementary growth and decay, simple cooling models, some motion equations, and other systems where the state and independent variable factors can be isolated.

Unit 4: Exact Differential Equations

4.1. Exact Differential

For a differentiable function F(x,y),

dF = Fx dx + Fy dy.

This gives the basis for identifying an equation as the differential of a potential function.

4.2. Exact Differential Equation

An equation

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

is exact on a suitable domain if there is a function F such that

Fx = M,   Fy = N.

Its solution is then

F(x,y) = C.

4.3. Exactness Criterion

Exact differential equation and potential contours with computed steps and state transitions
Exact differential equation and potential contours

Under the usual differentiability assumptions, exactness is tested locally by

∂M/∂y = ∂N/∂x.

Domain conditions should not be ignored when a global conclusion is required.

4.4. Finding the General Solution

Integrate M with respect to x or N with respect to y, retain the unknown function of the other variable, and determine that function by differentiating and comparing with the remaining coefficient.

4.5. Integrating Factor

A non-exact equation can sometimes be multiplied by a function μ so that

μM dx + μN dy = 0

becomes exact. An integrating factor is not arbitrary; its useful form depends on the structure of the equation.

Unit 5: Homogeneous Differential Equations

5.1. Homogeneous Function

A function is homogeneous of degree k if

f(tx,ty) = t^k f(x,y).

5.2. Homogeneous Differential Equation

For a first-order homogeneous equation, the right-hand side can often be expressed as a function of the ratio y/x or x/y.

5.3. Solution Method

With the substitution

y = vx

we have

dy/dx = v + x dv/dx.

The resulting equation is commonly separable in v and x. After integration, substitute v = y/x back into the result.

5.4. Equations Reducible to Homogeneous Form

Translations of the variables can sometimes eliminate constant terms and convert an equation into homogeneous form. The transformation should be chosen from the algebraic structure rather than applied mechanically.

Unit 6: First-Order Linear Equations

The solution of the mixing tank equation V dc over dt equals F times c in minus c with the concentration reaching 63.2 percent of the inflow value after one time constant V over F and 95 percent after three
Mixing tank concentration

6.1. Definition

The standard form is

y' + P(x)y = Q(x).

When A(x) and B(x) in an equivalent representation satisfy suitable regularity conditions, the integrating-factor method gives a systematic general solution.

6.2. Method 1: Variation of the Constant

First solve the homogeneous equation

y' + P(x)y = 0.

Instead of treating the integration constant as fixed, replace it by a function and determine that function from the nonhomogeneous equation.

6.3. Method 2: General Solution Formula

Using the integrating factor

μ(x) = exp(∫P(x) dx),

the equation becomes

(μy)' = μQ.

Therefore

y = [∫ μ(x)Q(x) dx + C] / μ(x).

6.4. Method 3: Integrating Factor

Direction field and solution curves of a first-order linear equation converging to the particular solution
First-order linear ODE

The integrating-factor derivation is often the most direct because it turns the left-hand side into a product derivative. The formula is meaningful on intervals where the coefficient functions satisfy the required conditions.

6.5. Bernoulli Equation

A Bernoulli equation has the form

y' + P(x)y = Q(x)y^n.

For n ≠ 0,1, the substitution

z = y^(1-n)

reduces it to a first-order linear equation.

6.6. Mechanical Application

First-order linear equations occur when a force or response is proportional to a state variable or its first derivative. The differential equation describes the dynamic law, while initial conditions select the physical trajectory.

Verifying a first-order solution by substitution. For the initial-value problem y' + 2y = 6, y(0) = 1, the homogeneous solution is Ce^(−2t) and a constant particular solution is 3. The initial condition gives C = −2, so y(t) = 3 − 2e^(−2t). Differentiate to obtain y'(t) = 4e^(−2t) and substitute: y' + 2y = 4e^(−2t) + 6 − 4e^(−2t) = 6. The initial condition y(0) = 1 is also satisfied. Finally, inspect the dynamics: for t ≥ 0, the solution increases monotonically from 1 toward the stable equilibrium 3 without exceeding it. This separates verification of the algebra, the initial condition, the differential equation, and the expected system behavior.

Unit 7: Second-Order Linear Homogeneous Equations with Constant Coefficients

7.1. Definition

The standard equation is

ay'' + by' + cy = 0,   a ≠ 0.

7.2. Structure of the Solutions

Because the equation is linear and homogeneous, linear combinations of independent solutions are again solutions. A second-order equation requires two linearly independent solutions for its general solution.

7.3. Characteristic Equation

Assuming y = e^(rx) gives

ar^2 + br + c = 0.

The roots determine the solution form:

  • two distinct real roots: C1 e^(r1 x) + C2 e^(r2 x),
  • one repeated real root: (C1 + C2 x)e^(rx),
  • complex roots α ± iβ: e^(αx)[C1 cos(βx) + C2 sin(βx)].

7.4. Mechanical Vibrations

The mass-spring-damper model leads to

m x'' + c x' + kx = 0.

The characteristic roots distinguish underdamped, critically damped, and overdamped behavior.

7.5. Simple Harmonic Motion

When damping is absent,

m x'' + kx = 0

has sinusoidal solutions. The natural angular frequency is

ωn = sqrt(k/m).

7.6. Damped Vibration

Underdamped second-order system spiraling toward equilibrium in the phase plane with its decaying time response
Damped oscillator phase portrait

Damping modifies the amplitude envelope and may also modify the observed oscillation frequency. The discriminant of the characteristic equation gives the basic classification.

Unit 8: Second-Order Linear Nonhomogeneous Equations with Constant Coefficients

8.1. Structure of the General Solution

For

ay'' + by' + cy = f(x),

the solution is

y = yh + yp,

where yh solves the homogeneous equation and yp is any particular solution.

8.2. Variation of Parameters

Variation of parameters constructs a particular solution from two independent homogeneous solutions. It is general but usually requires integration.

8.3. Method of Undetermined Coefficients

When f(x) belongs to a suitable family such as polynomials, exponentials, sines, cosines, or finite combinations of them, a trial function with unknown coefficients can be substituted into the equation.

8.4. Resonance

Forced second-order frequency response for several damping ratios showing the resonance peak
Forced resonance response

If the trial form overlaps with a homogeneous solution, it must be multiplied by a sufficient power of x. In vibration models, forcing near a natural frequency can produce resonance behavior; damping changes the physical response.

8.5. Comparing the Methods

Undetermined coefficients is efficient for restricted forcing functions. Variation of parameters is more general. Method selection should follow the form of the forcing term and the desired representation of the solution.

8.6. Variation of Parameters, Forcing Frequency, and Resonance

For a linear nonhomogeneous equation, variation of parameters constructs a particular solution from the homogeneous fundamental solutions without assuming a special polynomial or exponential trial form. It is therefore more general than undetermined coefficients, although usually more algebraically expensive.

In forced oscillation, resonance occurs when the forcing interacts strongly with a natural mode. In the ideal undamped model the response can grow without bound; damping changes the amplitude and phase response and prevents the textbook singular behavior.

The engineering interpretation should distinguish the mathematical idealization from the physical system and its dissipation.

Unit 9: Operator Method

9.1. Differential Operator

Let

D = d/dx.

Then a constant-coefficient equation can be written as

P(D)y = f(x).

This notation exposes the polynomial structure of the differential operator.

9.2. Finding a Particular Solution with Operators

Formally,

yp = 1/P(D) f(x).

The expression is interpreted through algebraic operator rules that depend on the forcing function; it is not ordinary scalar division.

9.3. Polynomial Forcing

For a polynomial f(x), expansions of the inverse operator can terminate after finitely many differentiations because higher derivatives vanish.

9.4. Exponential Forcing

For

f(x) = e^(ax),

the shift property leads to evaluation involving P(a) when P(a) ≠ 0. If P(a) = 0, the overlapping homogeneous factor must be handled separately.

9.5. Sine or Cosine Forcing

Trigonometric forcing can be handled by using the relation between repeated derivatives and the operator polynomial, or by representing sine and cosine through complex exponentials.

9.6. Exponential Times Another Function

For e^(ax)v(x), the shift rule effectively replaces D by D+a in the operator acting on v.

9.7. Sum of Different Forcing Types

Linearity allows the particular solution for a sum of forcing terms to be formed by adding particular solutions for the individual terms.

9.8. Place of the Method

Operator notation is compact for constant-coefficient linear equations, but it does not replace the conceptual distinction between homogeneous and particular solutions or the conditions behind each algebraic shortcut.

Unit 10: Systems of Differential Equations and the Phase Plane

A higher-order differential equation can be rewritten as a system of first-order equations by introducing state variables. This representation is particularly useful in control, robotics, and physical-system modeling.

10.1. First-order State System

For:

x'' + a x' + b x = u(t)

define:

x1 = x
x2 = x'

Then:

x1' = x2
x2' = -b x1 - a x2 + u(t)

or, in matrix form:

x' = A x + B u

This transformation does not introduce new physics; it expresses the same dynamics through explicit state variables.

10.2. Eigenvalues and Natural Behavior

For the linear homogeneous system:

x' = A x

the eigenvalues of A describe the growth, decay, and oscillatory structure of the natural response.

In two dimensions, a useful first interpretation is:

  • negative real parts: trajectories tend toward equilibrium,
  • a positive real part: at least one direction is unstable,
  • a complex-conjugate pair: oscillatory behavior may appear,
  • real parts near zero: slow or marginal behavior may occur.

These rules should not be extended blindly to arbitrary nonlinear systems.

10.3. The Phase Plane

Node, saddle, spiral and centre phase portraits of a linear system by eigenvalue with the trace-determinant plane
Phase plane classification

For a two-state system, every point (x1, x2) represents one instantaneous system state. As time progresses, the solution traces a curve in the phase plane.

x2
^
|      -> ->
|   ->      |  * eq.     |
|   <-      /
|      <- <-
+-------------> x1

A phase portrait exposes direction in state space rather than only separate time plots. Equilibria, trajectories, limit cycles, and stability become easier to relate geometrically.

10.4. Local Linearization of Nonlinear Systems

A nonlinear system:

x' = f(x)

can be approximated near an equilibrium by its Jacobian:

A = ∂f/∂x |_(x*)

This is a local model. Strong nonlinearities, saturation, or initial conditions far from the equilibrium may require a separate global analysis.

The connection between differential equations and state-space representation provides the mathematical bridge to state feedback and estimation in Automatic Control.

10.5. Autonomous Systems, Equilibria, and Local Stability

Flow toward stable equilibria and away from an unstable equilibrium on an autonomous phase line
Equilibria and stability

A first-order autonomous equation has the form

y' = f(y).

Values y* satisfying f(y*)=0 are equilibria. An equilibrium is locally stable when sufficiently small perturbations do not drive the solution away, and attractive when nearby solutions return toward it.

In one dimension, a sign diagram is often enough. The sign of f(y) on each side of an equilibrium shows the local flow direction. Under suitable differentiability conditions, f'(y*)<0 indicates locally attractive behavior and f'(y*)>0 indicates repelling behavior.

A logistic-type model,

y' = r y (1-y/K),

adds a capacity effect to unrestricted exponential growth. The point is not the application itself, but the fact that nonlinear feedback can create saturation and additional equilibria.

10.6. Matrix Form, Matrix Exponential, and the Phase Plane

Transport of initial states through the matrix exponential in a linear phase plane
Matrix exponential and phase flow

A linear first-order system can be written as

x'(t) = A x(t),

with solution organized by the matrix exponential:

x(t) = exp(A t) x(0).

When A is diagonalizable, eigenvalues and eigenvectors separate natural system modes. Eigenvalues with negative real parts produce decaying modes; positive real parts produce growing modes. Complex-conjugate pairs can generate oscillatory behavior.

In a two-dimensional phase plane, these structures lead to nodes, saddles, spirals, and centers. Eigenvalue analysis is therefore not merely algebraic; it describes directions in which a continuous-time system grows or decays.

10.7. Nonlinear Dynamics, Bifurcation, and Sensitivity to Initial Conditions

The small-angle approximation underestimating the pendulum period at large amplitude, with the exact period 1.373 times the small-angle value at 120 degrees so that two pendulums released together drift apart
Pendulum period and amplitude
Bifurcation diagram showing equilibrium branches splitting as a control parameter varies
Bifurcation diagram

A nonlinear system can be locally linearized near an equilibrium using its Jacobian. Under suitable hyperbolicity conditions, the linearized system provides strong information about local stability, but it does not automatically determine global behavior.

As a parameter changes, the number or stability type of equilibria can change. Such a qualitative transition is a bifurcation. In more complex nonlinear dynamics, initially close trajectories can separate rapidly, limiting long-horizon predictability.

For computational simulation this creates two distinct concerns: numerical solver error must not be confused with genuine sensitivity of the mathematical model, and long-horizon pointwise trajectory agreement should not be treated as the only validation criterion.

10.8. Continuous-Time Dynamics and Network Propagation

Performance and network models provide direct systems applications for classical mathematics. Differential equations model latency, propagation, or equilibrium as relationships among states that evolve over time rather than as isolated scalar values; eigenvalues describe stability modes of linear systems, while stochastic processes represent random variation that a deterministic model does not capture. The goal is not to memorize another application area, but to state clearly which system behavior each mathematical assumption represents.

  • Model time evolution of state variables with differential equations.
  • Distinguish fixed-topology assumptions from time-varying connectivity.
  • Evaluate equilibrium stability separately from short-lived transient behavior.

Unit 11: Laplace Transforms, Initial-Value Problems, and Convolution

11.1. Role of the Laplace Transform

The Laplace transform converts derivatives into algebraic expressions while carrying initial conditions into the transformed equation:

L{f(t)} = integral_0^infinity exp(-s t) f(t) dt.

Under suitable conditions,

L{f'} = s F(s) - f(0)
L{f''} = s^2 F(s) - s f(0) - f'(0).

An initial-value differential equation can therefore become an algebraic problem in the s domain, followed by an inverse transform back to time.

11.2. Step, Impulse, and Piecewise Inputs

Mapping step and impulse inputs from the time domain to simple Laplace-domain expressions
Step and impulse Laplace transform

Engineering systems often receive inputs that start, stop, or act over a short interval. The unit-step function gives a compact language for delayed and piecewise inputs. The Dirac impulse is interpreted through its action under integration rather than as an ordinary finite-valued function.

These tools provide a common language across differential equations, circuits, control, and signal systems. An ideal impulse is a mathematical limiting model, not a physically realizable infinite-amplitude signal.

11.3. Convolution and System Response

The convolution of two functions is

(f*g)(t) = integral_0^t f(tau) g(t-tau) d tau.

The Laplace transform turns convolution into multiplication:

L{f*g} = F(s) G(s).

This explains why the response of a linear time-invariant system can be expressed as the convolution of its input with an impulse response. The emphasis here is the solution structure of the differential equation; frequency response and implementation details belong naturally to Signals and Systems.

11.4. Reading a Differential Equation Through Its Class, Solution, and Dynamics

The course can be read as a sequence of structural questions:

What type of equation is this?
        ↓
Can it be separated, made exact, or reduced by substitution?
        ↓
If it is linear, what does its homogeneous part imply?
        ↓
Which initial or boundary conditions select the required solution?
        ↓
What assumptions make existence and uniqueness valid?

First-order equations emphasize classification and transformations. Second-order constant-coefficient equations connect algebraic roots with dynamic behavior. Initial conditions determine a trajectory; boundary conditions impose constraints at different points. A solution method is valid because the equation has a certain structure, not because a formula is memorized.

11.5. Separating Equation Type, Initial Conditions, and Solution Behavior

Order ≠ degree. Order is determined by the highest derivative; degree is an algebraic property that is defined only when the equation is polynomial in its derivatives.

General solution ≠ particular solution. A general solution contains arbitrary constants; a particular solution satisfies specified conditions or corresponds to fixed constants.

Initial-value problem ≠ boundary-value problem. Initial conditions are imposed at one point, whereas boundary conditions can be imposed at different points.

Existence ≠ uniqueness. A solution may exist without being unique. Standard theorems require explicit hypotheses.

Exact equation ≠ arbitrary differential form. Exactness means that the coefficients are partial derivatives of a common potential function on the relevant domain.

Homogeneous first-order equation ≠ homogeneous linear equation. The word homogeneous refers to different structural properties in these two contexts.

Complementary solution ≠ particular solution. For a linear nonhomogeneous equation, the complete solution is the sum of a homogeneous solution and one particular solution.

Characteristic roots ≠ initial conditions. Characteristic roots determine the form of the homogeneous solution; initial conditions determine the constants.

Undetermined coefficients ≠ variation of parameters. The first is efficient for restricted forcing families; the second is more general.

For first- and second-order equations, method selection follows from the structure of the equation. Separability, linearity, homogeneity, and characteristic-root structure determine the route; if that classification is wrong, correct algebra can still be applied to the wrong problem.

11.6. Stiff Systems and Solver Choice

Not every numerical integrator behaves well on every differential equation. Stiff systems with widely separated time scales can force explicit methods to use extremely small steps for stability, while implicit methods may be more efficient.

Step size should be chosen through error control and stability considerations rather than the assumption that smaller is always better.

Physical invariants such as mass, energy, or positivity should also be monitored because small local error can accumulate into unrealistic long-term drift.

11.7. Checking That a Solution Actually Satisfies the Equation

After deriving a closed-form solution, substitute it back into the differential equation and the initial/boundary conditions. Many sign, coefficient, and initial-value errors become visible immediately.

For numerical solvers, report step size, error tolerances, and method family. On stiff systems, an explicit method may require very small steps because its stability region is a poor match for the problem.

Long-time simulations can also monitor physical invariants such as energy, mass, or positivity. Persistent drift may indicate a physically unsuitable numerical solution even when pointwise error appears small.

11.8. From Dynamical Systems to Learning Models

Differential equations describe systems that evolve over continuous time. Their strongest connection to AI appears when dynamics are known, partially known, or estimated from observations.

A general state equation is:

dx/dt = f(x, u, t)

In classical modeling, f comes from physics or system identification. A hybrid model may learn only the unknown residual:

dx/dt = f_phys(x, u) + f_learned(x, u; θ)

This keeps explicit physics and empirical approximation distinguishable.

Neural ODEs define hidden-state evolution through a learned differential equation:

dh/dt = f(h, t, θ)

The output is obtained by numerically integrating from an initial state. The differential equation does not replace learning; it provides a continuous-time structure for the learned dynamics.

Physics-informed neural networks create another bridge by adding differential-equation residuals to the training objective:

L = L_data + λ L_equation

A small residual alone does not prove physical correctness. Boundary conditions, initial conditions, scaling, collocation points, and uniqueness remain important.

System identification connects learning to control engineering: parameters or dynamics can be inferred from observed input-output data. The objective is not only prediction but a usable dynamical model. Automatic Control places that model in stability and controller-design context.

Numerical solver choice also matters. Stiff learned dynamics may require appropriate solvers and tolerances. Changing integration tolerance can change model output even when learned parameters are identical.

Differential equations are not a universal prerequisite for AI; many tasks have no explicit continuous-time model. They provide a strong common foundation for physical dynamical systems, scientific machine learning, continuous-depth models, and data-driven dynamics.

11.9. Classifying the Equation Before Choosing a Solution Method

The step that saves the most time in a differential-equation problem is often not integration but correct classification. A first-order equation may be separable, linear, exact, or reducible to one of these forms by a suitable substitution. For second-order linear equations with constant coefficients, the characteristic equation is directly useful; variable coefficients or nonlinear terms generally require a different line of reasoning.

The distinction between homogeneous and particular solutions is also more than algebraic organization. In a linear system, the homogeneous part represents the system's natural behaviour, while a particular solution represents the response to external forcing. Initial conditions determine the coefficients of the combined solution. When forcing approaches a natural frequency, resonance may become important, so interpreting growth or decay in time matters as much as obtaining a closed form.

An initial-value problem and a boundary-value problem impose different structures. Initial-value data are specified at an initial point and the solution is propagated from there. Boundary conditions may be specified at different points. The same differential equation can therefore require different numerical methods depending on how its conditions are given.

A candidate solution can be checked directly by differentiating it and substituting it back into the original equation and conditions. This inexpensive step detects many sign and integration-constant errors. For a physical model, dimensional consistency and limiting behaviour provide additional checks.

A useful workflow is therefore classify the equation -> choose a valid method -> obtain the general solution -> apply conditions -> verify -> interpret physically. Recognizing the mathematical structure behind a method is more durable than memorizing method names.

Unit 12: Series Solutions, Singular Points, and Boundary-Value Problems

The characteristic polynomial is extremely effective for constant-coefficient equations, but it does not directly solve a general variable-coefficient linear equation. Local series solutions and singular-point analysis provide a systematic way to study such problems.

12.1. Local Solutions by Power Series

If the solution is analytic around x0, one may seek

y(x) = Σ a_n (x - x0)^n

Differentiate the series, substitute it into the differential equation, and equate coefficients of equal powers. The result is a recurrence relation for the coefficients.

This process is more than symbolic coefficient manipulation. A complete argument distinguishes:

  • constructing a formal series,
  • determining where it converges,
  • applying initial or boundary conditions,
  • controlling truncation error when the series is evaluated numerically.

The convergence radius is related to singularities of the coefficient functions, so the local analytic structure matters.

12.2. Ordinary, Singular, and Regular Singular Points

Consider a second-order linear equation in normalized form:

y'' + P(x)y' + Q(x)y = 0

If P and Q are analytic around x0, that point is an ordinary point. If they become singular, x0 can be a singular point. For the important regular singular class used by the Frobenius method, the behavior of (x-x0)P(x) and (x-x0)^2 Q(x) remains sufficiently regular near x0.

This classification determines which local ansatz is mathematically justified. There is no single universal "series method."

12.3. Frobenius Method

Near a regular singular point, an ordinary power series can be too restrictive. Frobenius seeks

y(x) = (x - x0)^r Σ a_n (x - x0)^n

The lowest power generates an indicial equation, whose roots determine the structure of the solution family.

Whether the roots are distinct, repeated, or separated by an integer can affect the construction of a second linearly independent solution. The main idea is therefore not to memorize coefficient formulas, but to classify the local solution space around a singular point.

12.4. Euler-Cauchy Equations

An important variable-coefficient class has the form

a x^2 y'' + b x y' + c y = g(x)

For the homogeneous equation, trying y = x^m produces an algebraic equation analogous to a characteristic equation. Another route is the transformation x = e^t, which can turn the variable-coefficient problem into a constant-coefficient equation.

This is a useful counterexample to the claim that every variable-coefficient ODE must be solved numerically: the right change of variables can expose a simpler structure.

12.5. Boundary-value Problems and Eigenvalue Structure

An initial-value problem specifies conditions at an initial point. A boundary-value problem (BVP) may impose conditions at different points:

y'' + λ y = 0

y(0) = 0
y(L) = 0

Not every value of λ permits a nonzero solution. Particular values become eigenvalues, and the associated nonzero solutions are eigenfunctions.

Sturm-Liouville problems generalize this structure. Under suitable conditions, eigenfunctions are orthogonal with respect to a weight function. This is the mathematical bridge to basis expansions used later in Fourier series and PDE solution methods.

12.6. Bridge to Partial Differential Equations

An ODE differentiates with respect to one independent variable, whereas a PDE contains derivatives with respect to multiple independent variables. A second-order PDE in two variables has a principal part that can be represented conceptually as

A u_xx + 2B u_xy + C u_yy + ... = 0

Under the usual conditions, the sign of B^2 - AC leads to elliptic, parabolic, or hyperbolic classification.

Canonical physical examples include:

  • Laplace equation -> elliptic,
  • heat/diffusion equation -> parabolic,
  • wave equation -> hyperbolic.

This classification influences the kind of boundary/initial data that is natural, expected regularity, and the numerical method chosen.

12.7. Separation of Variables and Eigenfunction Expansions

For simple geometries and compatible boundary conditions, an ansatz such as u(x,t) = X(x)T(t) can split a PDE into two ODEs. In the heat equation, for example, the separation constant becomes part of a spatial eigenvalue problem.

PDE
 ↓ separation assumption
spatial BVP + temporal ODE
 ↓
eigenvalues / eigenfunctions
 ↓
series expansion satisfying initial data

The purpose here is not to repeat Fourier theory but to show why boundary-value problems naturally lead to function expansions. Detailed frequency-domain interpretation belongs in Signals and Systems.

12.8. Boundary Between Analytical and Numerical Methods

Even when a series or eigenfunction representation exists, finite precision, truncation, irregular geometry, or nonlinearities can make numerical solution necessary. Analytical structure still provides a valuable verification reference.

A robust workflow is:

classify the equation
→ identify ordinary/singular structure
→ distinguish IVP from BVP
→ look for transformations or series structure
→ use a numerical method when needed
→ verify with residuals, conditions, and physical invariants

This workflow is more durable than method memorization because the choice of technique follows from the mathematical structure of the equation.

References

  • Ahmet Yesevi Üniversitesi Bilgisayar Mühendisliği Bölümü. Diferansiyel Denklemler (TBIL204) ders materyalleri.
  • Albert-László Barabási. Network Science.
  • Dennis G. Zill. A First Course in Differential Equations with Modeling Applications, 11th Edition. Cengage, 2018.
  • Ernst Hairer, Syvert P. Nørsett, Gerhard Wanner. Solving Ordinary Differential Equations I: Nonstiff Problems, 2nd Revised Edition. Springer, 1993.
  • George F. Simmons. Differential Equations with Applications and Historical Notes, 3rd Edition. CRC Press, 2016.
  • Maziar Raissi, Paris Perdikaris, George E. Karniadakis. “Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations.” Journal of Computational Physics, 378, 2019. https://doi.org/10.1016/j.jcp.2018.10.045
  • Mor Harchol-Balter. Performance Modeling and Design of Computer Systems: Queueing Theory in Action. Cambridge University Press, 2013.
  • Morris Tenenbaum, H. P. Ordinary Differential Equations. Dover, 1985.
  • Petter Holme; Jari Saramäki (eds.). Temporal Network Theory. 2nd ed. Springer Nature Switzerland, 2023.
  • Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, David Duvenaud. “Neural Ordinary Differential Equations.” Advances in Neural Information Processing Systems, 31, 2018.
  • William E. Boyce, Richard C. DiPrima, Douglas B. Meade. Elementary Differential Equations and Boundary Value Problems, 11th Edition. Wiley, 2017.
  • Haberman, R. Applied Partial Differential Equations with Fourier Series and Boundary Value Problems. 5th ed., Pearson, 2013.
  • Strauss, W. A. Partial Differential Equations: An Introduction. 2nd ed., Wiley, 2008.
Contents