27-01 — Introduction to Differential Equations

Phase: Ordinary Differential Equations | Subject: 27-01 Prerequisites: 05-01-antiderivatives.md, 04-04-differentiation-rules.md Next subject: 27-02-first-order-odes.md


Learning Objectives

By the end of this subject, you will be able to:

  1. Define ordinary and partial differential equations
  2. Classify DEs by order, linearity, homogeneity, and autonomous vs nonautonomous
  3. Interpret DEs geometrically via slope fields
  4. Distinguish general, particular, and singular solutions
  5. Verify that a given function satisfies a differential equation

Core Content

What Is a Differential Equation?

A differential equation (DE) is an equation involving an unknown function and its derivatives.

Ordinary Differential Equation (ODE): unknown function depends on ONE independent variable.

$$\frac{dy}{dx} = ky \quad \text{or} \quad y'' + \omega^2 y = 0$$

Partial Differential Equation (PDE): unknown function depends on MULTIPLE variables.

$$\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} \quad \text{(heat equation)}$$

Classification

1. Order: the highest derivative appearing. - $\frac{dy}{dx} = 3y$ → 1st order - $y'' + 2y' + y = 0$ → 2nd order - $y''' = \sin x$ → 3rd order

2. Linearity: - Linear: $a_n(x) y^{(n)} + a_{n-1}(x) y^{(n-1)} + \cdots + a_0(x) y = g(x)$ - The dependent variable $y$ and its derivatives appear to the first power only - No products like $y y'$, no functions of $y$ like $\sin y$ - Nonlinear: anything else. Examples: $y' = y^2$, $y'' + \sin y = 0$ (pendulum)

3. Homogeneous vs Nonhomogeneous: - Homogeneous: $g(x) = 0$ in the linear form above - Nonhomogeneous: $g(x) \neq 0$

4. Autonomous vs Nonautonomous: - Autonomous: independent variable does not appear explicitly: $y' = f(y)$ - Nonautonomous: $y' = f(x, y)$

Solutions

Example: $y' = y$. General solution: $y = Ce^x$. Particular: $y = 2e^x$ (with $y(0) = 2$).

Initial Value Problem (IVP)

An $n$-th order ODE with $n$ initial conditions:

$$y^{(n)} = f(x, y, y', \ldots, y^{(n-1)}), \quad y(x_0) = y_0, y'(x_0) = y_1, \ldots, y^{(n-1)}(x_0) = y_{n-1}$$

Existence and Uniqueness: Under mild conditions (continuity of $f$ and Lipschitz condition), an IVP has exactly one solution.

Direction Fields (Slope Fields)

For $y' = f(x, y)$, draw a short line segment with slope $f(x, y)$ at each point $(x, y)$. Solution curves follow these slopes.

This provides geometric intuition for qualitative behavior even when analytical solutions are hard.


Key Terms

Worked Examples

Example 1: Classification

Classify $x^2 y'' + xy' + (x^2 - 1)y = 0$ (Bessel's equation).

Solution: - Order: 2 (highest derivative is $y''$) - Linear: Yes (no products of $y$ terms, $y$ and derivatives appear to power 1) - Homogeneous: Yes (right-hand side is 0) - Coefficients: Variable ($x^2, x, x^2-1$ depend on $x$)

Click for answer Second-order linear homogeneous ODE with variable coefficients.

Example 2: Verify a Solution

Verify that $y = e^{-x} + 2e^{3x}$ satisfies $y'' - 2y' - 3y = 0$.

Solution: $y = e^{-x} + 2e^{3x}$ $y' = -e^{-x} + 6e^{3x}$ $y'' = e^{-x} + 18e^{3x}$

Plug in: $y'' - 2y' - 3y = (e^{-x} + 18e^{3x}) - 2(-e^{-x} + 6e^{3x}) - 3(e^{-x} + 2e^{3x})$ $= e^{-x} + 18e^{3x} + 2e^{-x} - 12e^{3x} - 3e^{-x} - 6e^{3x} = 0$. ✓

Click for answer Yes, it's a solution. Any linear combination of $e^{-x}$ and $e^{3x}$ solves this ODE.

Example 3: Slope Field Interpretation

For $y' = x - y$, sketch the isocline where $y' = 0$ and determine the qualitative behavior.

Solution: $y' = 0$ when $y = x$. Above this line, $y' < 0$ (decreasing). Below this line, $y' > 0$ (increasing). Solutions approach the line $y = x - 1$ as $x \to \infty$. One particular solution is exactly $y = x - 1$.

Click for answer The nullcline is $y = x$. Solutions converge to $y = x - 1$.


Quiz

Q1: What does the concept of Ordinary Differential Equation (ODE) primarily refer to in this subject?

A) A historical anecdote about Ordinary Differential Equation (ODE) B) A computational error related to Ordinary Differential Equation (ODE) C) A visual representation of Ordinary Differential Equation (ODE) D) The definition and application of Ordinary Differential Equation (ODE)

Correct: D)

Q2: Which of the following is the key formula discussed in this subject?

A) A simplified version of \frac{dy}{dx} = ky \quad \t... B) \frac{dy}{dx} = ky \quad \text{or} \quad y'' + \omega^2 y = 0 C) The inverse operation of the formula in question D) An unrelated formula from a different topic

Correct: B)

Q3: What is the primary purpose of Partial Differential Equation (PDE)?

A) It is used to partial differential equation (pde) in mathematical analysis B) It is used only in advanced research contexts C) It replaces all other methods in this domain D) It is primarily a historical notation system

Correct: A)

Q4: Which statement about Initial Value Problem (IVP) is TRUE?

A) Initial Value Problem (IVP) is an advanced topic beyond this subject's scope B) Initial Value Problem (IVP) is not related to this subject C) Initial Value Problem (IVP) is mentioned only as a historical footnote D) Initial Value Problem (IVP) is a fundamental concept covered in this subject

Correct: D)

Q5: Based on the worked examples in this subject, what is the correct result?

A) A different result from a common mistake B) An unrelated numerical value C) The inverse of the correct answer D) Verify a Solution

Correct: D)

Q6: How are Initial Value Problem (IVP) and What Is A Differential Equation? related?

A) Initial Value Problem (IVP) and What Is A Differential Equation? are completely unrelated topics B) Initial Value Problem (IVP) is a special case of What Is A Differential Equation? C) Initial Value Problem (IVP) and What Is A Differential Equation? are closely related concepts D) Initial Value Problem (IVP) is the inverse of What Is A Differential Equation?

Correct: C)

Q7: What is a common pitfall when working with Classification?

A) A common mistake is confusing Classification with a similar concept B) Classification is always computed the same way in all contexts C) The main error with Classification is using it when it is not needed D) Classification has no common misconceptions

Correct: A)

Q8: When should you apply Solutions?

A) Apply Solutions to solve problems in this subject's domain B) Solutions is not practically useful C) Use Solutions only in pure mathematics contexts D) Avoid Solutions unless explicitly instructed

Correct: A)

Practice Problems

  1. Determine the order of $y^{(4)} - 3y'' + 2y = \sin x$.

    Click for answer Order 4 (highest derivative is $y^{(4)}$, the 4th derivative).

  2. Is $yy' + y = x$ linear? Why or why not?

    Click for answer No — the term $yy'$ is a product of $y$ and its derivative. In a linear ODE, $y$ and its derivatives cannot be multiplied together.

  3. Verify $y = x^2$ satisfies $xy' = 2y$.

    Click for answer $y = x^2$, $y' = 2x$. LHS: $x(2x) = 2x^2$. RHS: $2(x^2) = 2x^2$. ✓. In fact $y = Cx^2$ is the general solution.

  4. How many arbitrary constants appear in the general solution of a 3rd-order ODE?

    Click for answer 3 constants. An $n$-th order ODE has $n$ constants in its general solution.

  5. Classify $y'' = \sin(y)$ (pendulum equation).

    Click for answer Second-order, nonlinear (because of $\sin y$), homogeneous, autonomous.


Summary

Key takeaways:


Pitfalls



Next Steps

Next up: 27-02-first-order-odes.md — separable equations, integrating factors, and exact equations.