TOPIC 7.2 · STUDY

Verifying Solutions for Differential Equations

A proposed function solves a differential equation only when differentiation makes both sides identical on an interval. Matching at a single input is not enough.

FUN-7.B

Verifying Solutions for Differential Equations

To verify a solution, differentiate the proposed function and substitute it into the differential equation. The two sides must be the same expression for every $x$ in the interval you care about. The check is an identity. One favorable input does not verify a solution, and one unfavorable input is enough to reject one.

Example. Proposed solution $y=x^2$ for $\frac{dy}{dx}=2x$. The left side is $\frac{d}{dx}(x^2)=2x$. The right side is already $2x$. They match for every real $x$, so $y=x^2$ is a solution on the whole real line. At the sample point $x=1$, the curve has slope $2$, and $2x$ at $x=1$ is also $2$. The figure shows that tangent. The proof is the differentiation, not the picture.

Parabola y = x squared with a short tangent of slope 2 at the point (1, 1).

The curve is $y=x^2$. The short segment at $(1,1)$ has slope $2$, matching $2x$ at $x=1$.

Example. Proposed solution $y=e^{2x}$ for $\frac{dy}{dx}=2y$. Differentiate the left side with the chain rule: $\frac{d}{dx}(e^{2x})=2e^{2x}$. The right side is $2y=2e^{2x}$. The two sides agree for every real $x$, so $y=e^{2x}$ is a solution. At $x=0$, $y=1$ and the slope is $2e^{0}=2$, which equals $2y$ there. The figure draws this curve with base $7.389056$, a decimal stand-in for $e^2$, because $e^{2x}=(e^2)^x$. Read the identity above as the check. Do not measure the rounded graph and call that a proof.

Rising exponential curve y = e to the 2x, marked at (0, 1), drawn with base 7.389056.

The curve is $y=e^{2x}$, drawn with base $7.389056$ in place of $e^2$. It passes through $(0,1)$. Confirm the solution by differentiating, not by reading the approximate graph.

Counterexample. The function $y=2x$ does not solve $\frac{dy}{dx}=2x$. Its derivative is $2$, and $2$ equals $2x$ only when $x=1$. Agreement at a single point is not an identity, so $y=2x$ is not a solution. A second counterexample: $y=e^{x}$ does not solve $\frac{dy}{dx}=2y$. The derivative is $e^{x}$, while $2y=2e^{x}$. Those expressions differ for every $x$.

A function can be a solution even when it is not the curve drawn above. For $\frac{dy}{dx}=2x$, try $y=x^2+5$. The derivative is still $2x$, because the derivative of a constant is zero, so $y=x^2+5$ is also a solution. Rejecting it because it misses the origin would be a mistake. The origin is an initial condition, which is a later topic. Verification only asks whether the derivative matches the equation.

Key points

  • Differentiate the proposed $y$ and compare both sides for every $x$ in the interval.
  • $y=x^2$ solves $\frac{dy}{dx}=2x$ because both sides equal $2x$. At $x=1$ the slope is $2$.
  • $y=e^{2x}$ solves $\frac{dy}{dx}=2y$ because both sides equal $2e^{2x}$.
  • The exponential figure uses base $7.389056$ only as a drawing of $e^2$. The check is the derivative.
  • $y=2x$ matches $\frac{dy}{dx}=2x$ only at $x=1$, so it is not a solution. $y=e^{x}$ is not a solution of $\frac{dy}{dx}=2y$.
  • $y=x^2+5$ still solves $\frac{dy}{dx}=2x$. A constant term does not change that derivative.

A common mistake is to plug in one $x$-value, or to substitute $y$ into the equation without differentiating. The derivative of the proposed function has to be computed first. Matching at one point, as $y=2x$ does at $x=1$, leaves the function unverified.

Practice this topic