Initial Value Problems
Problem
Solve dy/dx = 2x with y(0) = 3. Show the unique solution y = x^2 + 3 and explain how the initial condition picks it out of the family y = x^2 + C.
Explanation
What is an initial value problem?
An initial value problem (IVP) is an ODE plus an initial condition that picks one specific solution out of the general family:
The ODE alone has infinitely many solutions (a "family" parametrized by constants of integration). The initial condition — a single point the solution must pass through — pins down a unique member of that family.
For -th order ODEs you need initial conditions (typically ).
The given IVP
Step-by-step solution
Step 1 — Solve the ODE (general solution).
Integrate both sides with respect to :
The is the one-parameter family — every vertical shift of the parabola is a valid solution of the ODE.
Step 2 — Apply the initial condition.
Plug and into the general solution:
Step 3 — Write the unique solution.
Verification
Check both requirements:
- ODE: ✓
- Initial condition: ✓
Two conditions, both satisfied. Done.
Why an IVP has a unique solution (Picard–Lindelöf)
The existence and uniqueness theorem (Picard–Lindelöf, sometimes called the Picard theorem) says:
If and are continuous in a rectangle containing , then the IVP , has a unique solution on some interval around .
For our ODE, is continuous everywhere (and doesn't depend on at all), so the theorem applies globally — the solution is the only function satisfying both conditions, anywhere on .
When uniqueness can fail
Classic counter-example:
Here is continuous but blows up at . The theorem's hypotheses fail. And sure enough there are two solutions:
More generally, one can "peel off" the zero solution at any time and then grow as — actually infinitely many solutions. This is an important physics-level cautionary tale: discontinuous "control laws" can produce uniqueness failure.
Geometric picture — the phase portrait
Think of the -plane with all solution curves drawn at once (see #179 direction fields). The initial condition is a pin in the plane at . Uniqueness says exactly one solution curve passes through that pin. The IVP amounts to "pin the solution, then follow the slope field forward and backward."
For our problem, the family is a stack of vertical translates of the parabola; the pin at picks the one that hits at .
How this scales to higher order
For a second-order ODE you need two initial conditions, typically and :
Geometrically, you pin both the value and the slope at the initial point. For the harmonic oscillator (see #184), and fully determines .
IVP vs. BVP — different beast
A boundary value problem (BVP, see #198) specifies values at different points — e.g. , — rather than an initial value and a derivative at the same point. BVPs have very different behaviour: they can have no solution, a unique solution, or infinitely many solutions (eigenvalue problem).
Common mistakes
- Forgetting . Without it you don't have the family, and the initial condition can't single anything out.
- Applying the initial condition before integrating. The order is: integrate → general solution with → plug in IC → solve for → write particular solution.
- Only one condition for a higher-order ODE. A second-order ODE needs two conditions; one leaves a whole one-parameter sub-family.
- Assuming uniqueness without checking. Most textbook ODEs satisfy Picard–Lindelöf, but problems with , , or non-smooth right-hand sides deserve a closer look.
Try it in the visualization
Drag the initial condition vertically and watch the selected solution curve slide through the family. Hold fixed — the unique pinned-through solution tracks your pin smoothly. Switch in a few different ODEs to see the family shape change.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.