How to solve an initial value problem by integrating

A derivative tells us how a function changes, but it leaves out any constant. If we also know one value of the function, we can use it to pick out the antiderivative that fits.

Integrate to get the family of solutions

Suppose f′(x)=2. Integrating gives f(x)=2x+C. Every choice of C gives a line with slope 2, so we need another piece of information to find the line we want.

Use the initial condition to find C

If f(0)=-3, the graph has to pass through (0,-3). Substitute that input and output into f(x)=2x+C.

-3=2(0)+CC=-3f(x)=2x-3
Parallel lines with slope twoAll three lines have slope two. The solid line is the one that passes through zero, negative three.(0, −3)f(x) = 2x − 3xy
The initial condition picks the solid line from the family of parallel lines.

The derivative of 2x-3 is 2, and the value at zero is -3. Both parts of the initial value problem are satisfied.

Use the same idea when the derivative has several terms

If f′(x)=5ex+2x2-6 and f(0)=7, integrate each term. At x=0, the exponential contributes 5, and the two terms with powers of x are zero.

f(x)=5ex+2x33-6x+C7=5+Cf(x)=5ex+2x33-6x+2

Read dy/dx as the derivative of y

If dydx=2x and y(0)=3, the derivative is already given as a function of x. Integrate 2x to get y=x2+C. At x=0, the condition gives 3=C.

y=x2+3

Differentiate to check dy/dx=2x, and substitute zero to check y(0)=3.