Differential Equations and Their Solutions

A differential equation states how a quantity changes and leaves the quantity itself as the unknown. Many laws of science take this form, because a rate is often easier to describe than an amount.

Differential equations

Here are three differential equations:
dydx=cos⁡x−x,dQdt=Q2t2+1,y′′+x2y=0.\begin{gathered} \frac{dy}{dx} = \cos x - x, \\[6pt] \frac{dQ}{dt} = \frac{Q^2}{t^2 + 1}, \\[6pt] y'' + x^2 y = 0. \end{gathered}
The first two are first order and the third is second order. In the first, the right side depends on xx alone, so its solutions are the antiderivatives of cos⁡x−x\cos x - x. In the other two, the unknown function itself appears in the equation, so an antiderivative alone won't find it.

Writing a differential equation from words

A statement about a rate becomes a differential equation phrase by phrase. These phrases come up again and again.
WordsMathematics
the rate of change of QQ with respect to ttdQdt\dfrac{dQ}{dt}
proportional to XXkXkX
inversely proportional to XXkX\dfrac{k}{X}
proportional to the product of XX and YYkXYkXY
proportional to the difference between XX and YYk(X−Y)k(X - Y)
the acceleration of an object at position ssd2sdt2\dfrac{d^2 s}{dt^2}
Here kk is a constant, the constant of proportionality. The context fixes its sign. An increasing quantity has a positive rate, and a decreasing one has a negative rate. Writing −k-k with k>0k > 0 makes a decrease visible in the equation.

Solutions

To show that a function is a solution, differentiate it. Then evaluate each side of the equation separately and show that they agree. An initial condition y(x0)=y0y(x_0) = y_0 gives one value of the solution, and checking it is a separate step. A free-response answer shows each of these steps.

General and particular solutions

For dydx=cos⁡x−x\frac{dy}{dx} = \cos x - x, the general solution is y=sin⁡x−x22+Cy = \sin x - \frac{x^2}{2} + C. The condition y(0)=4y(0) = 4 gives C=4C = 4, so the particular solution is y=sin⁡x−x22+4y = \sin x - \frac{x^2}{2} + 4.

Equations of higher order

Checking a solution of a second-order equation takes two derivatives. Being a solution is a property of the whole function, so a small change to a solution can break it.