Analytic vs. Numeric
Solutions
Understand when a differential equation can be solved exactly with a formula and when you need numerical approximation: two powerful, complementary approaches.
What Is a Differential Equation?
A differential equation (DE) is an equation that relates a function to its derivatives. It describes how a quantity changes over time or space.
Solving a DE means finding the function \( y(x) \) (or \( y(t) \)) that satisfies the equation. There are two fundamentally different ways to do this.
Two Ways to Solve
Why This Matters
In engineering, physics, biology, and economics, differential equations model everything from population growth to circuit dynamics. Choosing the right solution method determines whether your answer is exact, approximate, fast, or even possible.
The Analytic Solution
Common techniques that yield analytic solutions:
The Numeric Solution
The most famous numeric method is Euler's method:
Exact Curve vs. Euler Steps
Analytic vs. Numeric: Key Differences
| Analytic | Numeric | |
|---|---|---|
| Output | Closed-form formula | Table of approximate values |
| Accuracy | Exact | Approximate (depends on step size) |
| Applicability | Limited to "nice" DEs | Works on almost any DE |
| Speed of evaluation | Instant (plug in \(x\)) | Must step through all prior points |
| Insight | Shows parameter dependence | Hard to see general trends |
When to Use Which
How to Choose and Apply
Example 1: Analytic Solution
Example 2: Euler's Method
| Step | \( x_n \) | \( y_n \) (Euler) | \( y \) (Exact) |
|---|---|---|---|
| 0 | 0 | 3.000 | 3.000 |
| 1 | 0.5 | 0.000 | 1.104 |
| 2 | 1.0 | 0.000 | 0.406 |
Smaller Step: \( h = 0.1 \)
Let us redo the same problem \( y' = -2y \), \( y(0) = 3 \) with a much smaller step: \( h = 0.1 \).
| \( x_n \) | Euler (\( h = 0.1 \)) | Exact | Error |
|---|---|---|---|
| 0.0 | 3.000 | 3.000 | 0.000 |
| 0.1 | 2.400 | 2.456 | 0.056 |
| 0.5 | 0.983 | 1.104 | 0.121 |
| 1.0 | 0.322 | 0.406 | 0.084 |
Example 3: When Algebra Fails
What can we do? Apply a numeric method. Here are Euler's steps with \( h = 0.25 \):
| \( x_n \) | \( y_n \) | \( f(x_n, y_n) = x_n^2 + y_n^2 \) |
|---|---|---|
| 0.00 | 0.0000 | 0.0000 |
| 0.25 | 0.0000 | 0.0625 |
| 0.50 | 0.0156 | 0.2503 |
| 0.75 | 0.0782 | 0.5686 |
| 1.00 | 0.2203 | 1.0485 |
Visualizing \( y' = x^2 + y^2 \)
Common Mistakes
Summary Comparison
| Feature | Analytic | Numeric |
|---|---|---|
| Result type | Formula: \( y = f(x) \) | Data points: \( \{(x_i, y_i)\} \) |
| Accuracy | Exact | Approximate |
| Existence | Only for special DEs | Always computable |
| Speed (per point) | \( O(1) \): plug in value | \( O(n) \): step through all prior |
| Error control | None needed | Reduce \( h \), use higher-order methods |
| Best for | Understanding, proofs | Complex/real-world models |
Question 1 of 5
What does an analytic solution to a differential equation provide?
Question 2 of 5
Given \( y' = -2y \), \( y(0) = 3 \), and Euler's method with \( h = 0.5 \), what is \( y_1 \)?
Question 3 of 5
The DE \( y' = x^2 + y^2 \) has no known closed-form solution. Which statement is true?
Question 4 of 5
What happens to the error in Euler's method as the step size \( h \) is decreased?
Question 5 of 5
Which is a key advantage of an analytic solution over a numeric one?