shaun ault

ap calculus review: differential equations

a differential equation is a relation that involves an unknown function and its derivative. there are many kinds of differential equations and tons of specialized techniques we may use to solve them. fortunately, on the ap calculus exams you will only encounter a handful of the most basic kinds.

basic differential equations: integration

you have probably worked out hundreds of differential equations without even realizing it!

meme of a baby with a querry face

it’s true! let me give you an example.

integral of 2x

what makes this a differential equation?

well think about what the notation means. you know that integration is the opposite of differentiation. so what we’re looking for here is a function f(x) whose derivative is equal to 2x. in other words, we have to solve:

f ‘(x) = 2x

that’s a relation involving an unknown function f and its derivative.

but this differential equation is trivial to solve! just use the power rule for integrals (or guess-and-check).

f(x) = x2 + c

(for a full review of integration, check out: ap calculus exam review: antidifferentiation or ap calculus exam review: integrals.)

initial value problems

now suppose you have more information about an unknown function, such as its value at a certain point. then you may be able to solve for the function explicitly, rather than getting stuck with an unknown constant of integration at the end.

an initial value problem typically gives a derivative expression along with a function value. the goal is to produce the original function.

example 1: initial value problem

if f ‘(x) = 1/x2 for x > 0, and f(1) = 5, find the expression for f(x) for x > 0.

solution

because the derivative expression is given, we integrate to find the original function. don’t forget about your constant of integration!

integral of 1/x^2

next, plug in the known info and solve for the unknown constant of integration.

continuation of initial value problem solution

this implies that the original function must be:    f(x) = -1/x + 6.

separation of variables

of course not every differential equation (or de) problem can be handled by simple integration. often more advanced techniques must be used, especially if both x and y show up in the equation.

for example, the following de cannot be cracked by integration (…not in its current form, that is).

dy/dx = 8xy

the key is to somehow break up the dy and dx.

the derivative notation dy/dx looks like a fraction. however, it’s not really a fraction, because the two quantities dy and dx (called differentials) are supposed to represent the idea of taking Δx to zero in the limit. in other words, if you had to identify the numerical “value” of a differential, it would make sense to say dx = dy = 0. and we all know that 0/0 is undefined.

but those differential gadgets are more subtle than that. they really don’t carry a numerical value. instead, they stand for a limiting process. and if we’re very careful, we can work with dx and dy individually.

the method of separation of variables works by manipulating dy/dx as if it were a fraction, and then using integration to get rid of the differentials.

now let’s take another look at our example above.

example 2: separation of variables

if   dy/dx = 8xy , and y(0) = -3, find an equation for y in terms of x.

solution

first multiply dx to both sides. then multiply or divide as necessary so that only expressions of y are on the left, and only those with x are on the right.

de solution part a

next, we use the magic of calculus! all you have to do is to apply the integral symbol to each side of the equation. now you have two separate integrals to work out.

separation of variables solution, part b

now even though both sides generated a constant of integration, those can be combined into a single constant on the right hand side. the next few steps are just for isolating y.

separation of variables solution, part c

notice that the quantity ec is replaced by another constant k. this is because c is still arbitrary (and unknown). so just think of k as a related, but still arbitrary constant.

finally we solve for k using the known information, y(0) = -3.

(by the way, we will drop the “±” notation at this point because k itself can take care of that choice.)

separation of variables example, part d

therefore, replacing k by its computed value -3, we obtain the final form of the function.

de separation of variables solution

setting up differential equations

fortunately you won’t encounter any de problems on the ap calculus exam that can’t be handled by either integration or separation of variables.

however, you may be asked to set up and/or analyze a de (without solving it).

example 3: setting up a de

a certain bacteria culture has p cells at time t and grows in proportion to the square root of the amount present. set up a differential equation that models a(t).

solution

because the culture grows at a certain rate with respect to time, we know we’ll be working with the derivative da/dt.

let k be the constant of proportionality. then translate the given information into mathematics:

da/dt = k × √(a)

remember, we don’t have to solve for a(t); just set up the de that could be used to solve for it. so we’re done at this step!

example 4: analyzing a de

the number y of people infected with the flu in a certain town at time t can be modeled by the differential equation, dy/dt = 0.00002y(21500-y), where y(0) = 1. determine the limit of y as t → ∞.

solution

it would be difficult to solve this de for y explicitly. instead, look closely at the equation. it has the form of a logistics equation.

logistics equation

that means we can answer this question with no work at all! you just have to remember that logistics equations always have solutions that tend toward the carrying capacity m as t → ∞. here, m = 21500. that’s all you need to answer the question!

the limit will be 21500.

(for more details about the logistics equation, i recommend: ap calculus bc review: logistics growth model.)

conclusion

differential equations show up only sparingly on an ap calculus exam. but it’s important to be aware of the techniques for solving them, setting them up, and analyzing them.

  • remember the basic methods of integration and separation of variables.
  • know how to set up a differential equation.
  • look for situations in which you may avoid solving the de.

author

  • shaun ault

    shaun earned his ph. d. in mathematics from the ohio state university in 2008 (go bucks!!). he received his ba in mathematics with a minor in computer science from oberlin college in 2002. in addition, shaun earned a b. mus. from the oberlin conservatory in the same year, with a major in music composition. shaun still loves music — almost as much as math! — and he (thinks he) can play piano, guitar, and bass. shaun has taught and tutored students in mathematics for about a decade, and hopes his experience can help you to succeed!

more from magoosh