← MATH 161 MathScape 0 MATH161

Initial Value Problems

5 min read

Jump to a section
Reference: Stewart §3.9

Pinning Down the Constant

When you find the general antiderivative of $f(x)$, you get a family of curves $F(x) + C$. But what if you need ONE specific curve?

An initial value problem gives you extra information (typically the value of the function at a specific point) that lets you determine $C$ and find the unique solution.

This is the bridge between pure calculus and real-world problems. In physics, you know the laws of motion (derivatives), but to predict where a ball will be at time $t$, you need to know where it started (initial condition).

Prerequisite Map

Quick Reference

Property Value
Concept Antiderivatives
Chapter 3.9
Difficulty Intermediate
Time ~20 minutes

Key Concepts

What is an Initial Value Problem?

An initial value problem (IVP) consists of:

  1. A differential equation (an equation involving derivatives)
  2. An initial condition (the value of the function at a specific point)

Standard form: $$f'(x) = g(x), \quad f(a) = b$$

This says: “Find $f$ whose derivative is $g$, and which passes through the point $(a, b)$.”

The Solution Strategy

Step 1: Find the general antiderivative. $$f(x) = G(x) + C$$ where $G$ is any particular antiderivative of $g$.

Step 2: Use the initial condition to find $C$. $$f(a) = b \quad \Rightarrow \quad G(a) + C = b \quad \Rightarrow \quad C = b - G(a)$$

Step 3: Write the particular solution. $$f(x) = G(x) + C \text{ (with the specific value of } C \text{)}$$

Example: First-Order IVP

Problem: Find $f$ if $f'(x) = 3x^2$ and $f(1) = 5$.

Solution:

Step 1: General antiderivative of $3x^2$: $$f(x) = x^3 + C$$

Step 2: Use $f(1) = 5$: $$f(1) = (1)^3 + C = 1 + C = 5$$ $$C = 4$$

Step 3: Particular solution: $$f(x) = x^3 + 4$$

Check: $f'(x) = 3x^2$ ✓ and $f(1) = 1 + 4 = 5$ ✓

Second-Order IVPs

When given $f''(x)$, you need to antidifferentiate twice and use two initial conditions.

Example: Find $f$ if $f''(x) = 6x$, $f(0) = 2$, and $f'(0) = -1$.

Solution:

Step 1: First antidifferentiation (get $f'$): $$f'(x) = 3x^2 + C_1$$

Use $f'(0) = -1$: $$f'(0) = 0 + C_1 = -1 \quad \Rightarrow \quad C_1 = -1$$ $$f'(x) = 3x^2 - 1$$

Step 2: Second antidifferentiation (get $f$): $$f(x) = x^3 - x + C_2$$

Use $f(0) = 2$: $$f(0) = 0 - 0 + C_2 = 2 \quad \Rightarrow \quad C_2 = 2$$

Step 3: Particular solution: $$f(x) = x^3 - x + 2$$

Geometric Interpretation

The general antiderivative $F(x) + C$ represents a family of curves. The initial condition $f(a) = b$ selects the ONE curve that passes through the point $(a, b)$.

y
↑       ╱ Some antiderivative
│     ╱
│   ╱
│ ●───── Point (a, b) picks this curve
│╱
└──────────→ x

Practice Problems

Level 1 Basic First-Order IVP

Find $f(x)$ if $f'(x) = 4x$ and $f(0) = 3$.

Thought Process
  1. Antidifferentiate $4x$ to get $2x^2 + C$
  2. Plug in $x = 0$, set equal to 3, solve for $C$
Show Answer

Step 1: General antiderivative: $$f(x) = 2x^2 + C$$

Step 2: Use $f(0) = 3$: $$f(0) = 2(0)^2 + C = C = 3$$

Step 3: Solution: $$f(x) = 2x^2 + 3$$

Level 2 Non-Zero Initial Point

Find $f(x)$ if $f'(x) = x^2 - 4$ and $f(2) = 1$.

Thought Process

Antidifferentiate, then carefully plug in $x = 2$ (not $x = 0$) to find $C$.

Show Answer

Step 1: General antiderivative: $$f(x) = \frac{x^3}{3} - 4x + C$$

Step 2: Use $f(2) = 1$: $$f(2) = \frac{8}{3} - 8 + C = \frac{8}{3} - \frac{24}{3} + C = -\frac{16}{3} + C = 1$$ $$C = 1 + \frac{16}{3} = \frac{19}{3}$$

Step 3: Solution: $$f(x) = \frac{x^3}{3} - 4x + \frac{19}{3}$$

Level 3 Trig Function

Find $f(x)$ if $f'(x) = \cos x + 2$ and $f(\pi) = 4$.

Thought Process

Recall that $\int \cos x\,dx = \sin x$. Then plug in $x = \pi$ (remember $\sin \pi = 0$).

Show Answer

Step 1: General antiderivative: $$f(x) = \sin x + 2x + C$$

Step 2: Use $f(\pi) = 4$: $$f(\pi) = \sin \pi + 2\pi + C = 0 + 2\pi + C = 4$$ $$C = 4 - 2\pi$$

Step 3: Solution: $$f(x) = \sin x + 2x + 4 - 2\pi$$

Level 4 Second-Order IVP

Find $f(x)$ if $f''(x) = 12x - 6$, $f(0) = 5$, and $f'(0) = -2$.

Thought Process

Antidifferentiate twice. Use $f'(0) = -2$ after the first antidifferentiation, then use $f(0) = 5$ after the second.

Show Answer

Step 1: Antidifferentiate $f'' = 12x - 6$: $$f'(x) = 6x^2 - 6x + C_1$$

Use $f'(0) = -2$: $$f'(0) = 0 - 0 + C_1 = -2 \quad \Rightarrow \quad C_1 = -2$$ $$f'(x) = 6x^2 - 6x - 2$$

Step 2: Antidifferentiate again: $$f(x) = 2x^3 - 3x^2 - 2x + C_2$$

Use $f(0) = 5$: $$f(0) = 0 - 0 - 0 + C_2 = 5 \quad \Rightarrow \quad C_2 = 5$$

Step 3: Solution: $$f(x) = 2x^3 - 3x^2 - 2x + 5$$

Check: $f''(x) = 12x - 6$ ✓, $f'(0) = -2$ ✓, $f(0) = 5$ ✓

Level 5 Second-Order with Non-Zero Initial Points

Find $f(x)$ if $f''(x) = \sin x$, $f(0) = 1$, and $f(\pi) = 0$.

Note: The conditions are at different $x$-values!

Thought Process

This is trickier because the conditions are at different points. Antidifferentiate twice to get two constants $C_1$ and $C_2$. Then set up and solve a system of equations using both conditions.

Show Answer

Step 1: Antidifferentiate $f'' = \sin x$: $$f'(x) = -\cos x + C_1$$

Step 2: Antidifferentiate again: $$f(x) = -\sin x + C_1 x + C_2$$

Step 3: Set up system using both conditions:

$f(0) = 1$: $$-\sin 0 + C_1(0) + C_2 = 1$$ $$0 + 0 + C_2 = 1$$ $$C_2 = 1$$

$f(\pi) = 0$: $$-\sin \pi + C_1 \pi + C_2 = 0$$ $$0 + C_1 \pi + 1 = 0$$ $$C_1 = -\frac{1}{\pi}$$

Step 4: Solution: $$f(x) = -\sin x - \frac{x}{\pi} + 1$$

Check:

  • $f''(x) = \sin x$ ✓
  • $f(0) = 0 - 0 + 1 = 1$ ✓
  • $f(\pi) = 0 - 1 + 1 = 0$ ✓

CCI-Style Conceptual Questions

Conceptual Existence and Uniqueness

Can two different functions both satisfy $f'(x) = 2x$ and $f(0) = 5$? Explain.

Thought Process

From the general antiderivative, what determines the specific solution? Is there any freedom left after applying the initial condition?

Show Answer

No, the solution is unique.

The general antiderivative is $f(x) = x^2 + C$. The condition $f(0) = 5$ forces $C = 5$.

The only function satisfying both conditions is $f(x) = x^2 + 5$.

This illustrates a fundamental principle: for a first-order equation $f'(x) = g(x)$, one initial condition $f(a) = b$ is enough to determine a unique solution.

Conceptual How Many Conditions?

Why does a second-order IVP (given $f''$) require two initial conditions, while a first-order IVP requires only one?

Thought Process

Count the constants introduced by each antidifferentiation step.

Show Answer

Each antidifferentiation introduces ONE arbitrary constant.

  • First-order: One antidifferentiation → one constant $C$ → needs one condition to determine $C$

  • Second-order: Two antidifferentiations → two constants $C_1$ and $C_2$ → needs two conditions to determine both

In general: an $n$th-order equation requires $n$ initial conditions for a unique solution.

Conceptual Graphical Interpretation

You’re told $f'(x) = 1$ for all $x$, and $f(2) = 7$. Describe the graph of $f$ in plain English.

Thought Process

$f'(x) = 1$ means constant slope. What kind of curve has constant slope? The initial condition tells you which specific curve.

Show Answer

Since $f'(x) = 1$ everywhere, the slope is constant at 1.

This means $f$ is a straight line with slope 1.

The condition $f(2) = 7$ tells us the line passes through $(2, 7)$.

Using point-slope form: $y - 7 = 1(x - 2)$, so $f(x) = x + 5$.

In plain English: $f$ is the line with slope 1 passing through $(2, 7)$.


Common Misconceptions

Common misconception

the initial condition is applied by plugging the given $x$-value into the general antiderivative before solving for $C$.

This is the input-output-confusion error. The initial condition $f(a) = b$ is applied by substituting $x = a$ into the general antiderivative, setting the result equal to $b$, and solving the resulting equation for $C$. A common error is to substitute $b$ for $x$ or to confuse which value is the input and which is the output. For $f'(x) = x^2 - 4$ with $f(2) = 1$, the general antiderivative $\frac{x^3}{3} - 4x + C$ must be evaluated at $x = 2$ and set equal to $1$, giving $C = \frac{19}{3}$.

Common misconception

for a second-order IVP, one initial condition on $f$ is enough to determine both constants.

This is the concept-image-conflicts-definition error about how many degrees of freedom a second-order equation has. Each antidifferentiation step introduces one arbitrary constant, so a second-order equation produces two constants $C_1$ and $C_2$ requiring two independent conditions to determine both. Providing only $f(0) = 5$ leaves $C_1$ undetermined and yields infinitely many solutions. The two conditions are typically one on $f$ and one on $f'$, or two conditions on $f$ at different points.


Mastery Checklist

Mental Model

The initial condition is like a GPS coordinate:

The general antiderivative gives you a family of parallel curves (for first-order) or similar curves (for higher-order). They all have the same shape but are shifted.

The initial condition is like giving GPS coordinates: “The curve passes through this exact point.” That pins down exactly which curve you want from the infinite family.

Without the initial condition, you’re lost in a sea of possibilities. With it, you have a unique destination.



Last updated: 2026-01-22