Tutorials › Calculus I › Checking Solutions by Differentiation

Slope Fields and Separable Equations · Tutorial 1366 of 1495

Checking Solutions by Differentiation

Verify a proposed solution by checking its derivative, the differential equation, the relevant domain, and any initial condition.

Intermediate 9 min read

What You'll Learn

  • Define what it means for an explicit function to solve a differential equation on an interval
  • Check a proposed function by differentiating and substituting into the original equation
  • Verify an initial condition separately from the differential equation
  • Differentiate an implicit relation using the chain rule
  • Identify the regularity and nonzero-derivative conditions needed to use an implicit relation
  • Recognize why satisfying the equation alone does not establish that an initial-value problem is solved

Why Check a Proposed Solution?

A formula obtained while solving a differential equation is a candidate, not yet a verified answer. Differentiation and substitution provide a direct test: does the function have the derivative required by the equation at every point of its stated interval? If an initial condition is part of the problem, does the same function also take the required value at the specified point?

This check is useful even when the formula looks plausible. A sign error, a missing constant, or a branch of an implicit relation can change whether the formula actually satisfies the equation. Verification is a matter of checking the original equation and data, not just checking that the algebra used to obtain the formula appears reasonable.

What It Means to Be a Solution

Consider a first-order differential equation written in the form \(y'=f(x,y)\), where \(f\) is defined on a set \(D\) of points \((x,y)\). A proposed explicit solution is a function \(y:I\to\mathbb{R}\) on an interval \(I\).

Definition: The function \(y\) solves \(y'=f(x,y)\) on \(I\) if \(y\) is differentiable on \(I\), its graph \(\{(x,y(x)):x\in I\}\) lies in \(D\), and \(y'(x)=f(x,y(x))\) for every \(x\in I\).

An initial-value problem adds a condition such as \(y(x_0)=y_0\), where \(x_0\in I\). To solve that initial-value problem, the candidate must satisfy both the differential equation throughout \(I\) and the initial condition at \(x_0\). These are separate requirements. Checking only one is not enough.

For an explicit candidate, the basic procedure is direct:

1
Check the domain.
Identify an interval on which the candidate is defined and differentiable, and make sure its graph lies where the right-hand side of the equation is defined.
2
Differentiate.
Compute the candidate's derivative on that interval.
3
Substitute.
Evaluate the right-hand side of the original differential equation using the candidate, and compare it with the derivative.
4
Check the initial condition.
If one is given, substitute the specified input into the candidate and verify the required value.

Worked Example: Verifying an Explicit Solution

Worked Example: Verifying an Explicit Solution

Check whether \(y=3e^{2x}\) solves the initial-value problem \(y'=2y,\;y(0)=3\).

Step 1: Check the candidate's domain. The exponential function is defined and differentiable for every real \(x\), and the right-hand side \(2y\) is defined for every real \(y\). We can test the equation on \(I=\mathbb{R}\).

Step 2: Differentiate.

$$ y=3e^{2x} \qquad\Longrightarrow\qquad y'=3\cdot 2e^{2x}=6e^{2x}. $$

Step 3: Substitute into the equation. The right-hand side evaluated at the candidate is

$$ 2y=2(3e^{2x})=6e^{2x}. $$

Thus \(y'=2y\) for every real \(x\).

Step 4: Check the initial condition.

$$ y(0)=3e^{2\cdot 0}=3e^0=3\cdot 1=3. $$

Both the differential equation and the initial condition hold, so \(y=3e^{2x}\) is a solution of the stated initial-value problem on \(\mathbb{R}\).

Implicit Relations and the Chain Rule

A solution may be presented by a relation \(F(x,y)=C\) rather than by an explicit formula for \(y\). If a differentiable function \(y(x)\) satisfies this relation, then the composite function \(x\mapsto F(x,y(x))\) is constant. When \(F\) has continuous first partial derivatives near the graph of \(y\), the chain rule gives a way to test the differential equation.

Theorem: Let \(I\) be an interval, let \(D\) be an open subset of \(\mathbb{R}^2\), and let \(y:I\to\mathbb{R}\) be differentiable with \((x,y(x))\in D\) for every \(x\in I\). Suppose \(F:D\to\mathbb{R}\) has continuous first partial derivatives and \(F(x,y(x))=C\) on \(I\). Then \(F_x(x,y(x))+F_y(x,y(x))y'(x)=0\) for every \(x\in I\). In particular, wherever \(F_y(x,y(x))\ne 0\), it follows that \(y'(x)=-F_x(x,y(x))/F_y(x,y(x))\).

Here \(F_x\) and \(F_y\) denote the partial derivatives of \(F\) with respect to its first and second variables. The regularity condition on \(F\) ensures the chain rule applies to the composite. The relation alone does not automatically verify an arbitrary differential equation: the derivative obtained from the relation must still agree with the right-hand side of the equation.

Why Implicit Differentiation Gives the Derivative

The key step is to differentiate the constant composite \(F(x,y(x))\). Since its value is \(C\) for every \(x\in I\), its derivative is zero. The multivariable chain rule gives

$$ \frac{d}{dx}F(x,y(x)) = F_x(x,y(x))\frac{d}{dx}x + F_y(x,y(x))\frac{d}{dx}y(x) = F_x(x,y(x))+F_y(x,y(x))y'(x). $$

Equating this derivative to zero yields \(F_x+F_y y'=0\), evaluated along the graph. If \(F_y\ne 0\), ordinary algebra permits division by \(F_y\), giving \(y'=-F_x/F_y\). To verify that the implicit relation describes a solution of \(y'=f(x,y)\), it is therefore sufficient, under these hypotheses and wherever \(F_y\ne0\), to check that \(-F_x/F_y=f(x,y)\) along the relation. If \(F_y=0\), this division is not valid; instead, check the derivative of the actual function or use the undivided chain-rule equation together with the original differential equation.

Worked Example: Checking an Implicit Solution

Worked Example: Checking an Implicit Solution

Consider the upper branch of \(x^2+y^2=25\), given by \(y(x)=\sqrt{25-x^2}\) for \(-5<x<5\). Check whether it solves \(y'=-x/y\), with the initial condition \(y(3)=4\).

Step 1: Check the branch and domain. For \(-5<x<5\), \(25-x^2>0\), so the square root is defined and positive. Thus \(y>0\), and the right-hand side \(-x/y\) is defined. The candidate is differentiable throughout this interval.

Step 2: Differentiate the candidate.

$$ y'=\frac{1}{2}(25-x^2)^{-1/2}(-2x) =-\frac{x}{\sqrt{25-x^2}}. $$

Since \(y=\sqrt{25-x^2}\), this is \(y'=-x/y\).

Step 3: Check directly using the implicit relation. Set \(F(x,y)=x^2+y^2\). Its partial derivatives are \(F_x=2x\) and \(F_y=2y\), and they are continuous everywhere. Along the candidate, \(F(x,y(x))=25\). The chain rule gives

$$ 0=F_x+F_y y'=2x+2y y', \qquad y'=-\frac{2x}{2y}=-\frac{x}{y}, $$

where division is valid because this branch has \(y>0\).

Step 4: Check the initial condition.

$$ y(3)=\sqrt{25-3^2} =\sqrt{25-9} =\sqrt{16} =4. $$

The branch satisfies both the differential equation and the initial condition on \((-5,5)\).

Worked Example: An Equation Is Not the Whole Initial-Value Problem

Worked Example: An Equation Is Not the Whole Initial-Value Problem

Test the candidate \(y=2e^x\) for the initial-value problem \(y'=y,\;y(0)=3\).

Step 1: Check the differential equation. The candidate is defined and differentiable for every real \(x\). Its derivative is

$$ y'=2e^x. $$

The right-hand side evaluated at the candidate is \(y=2e^x\). Therefore \(y'=y\) for every real \(x\).

Step 2: Check the initial condition.

$$ y(0)=2e^0=2\cdot 1=2\ne 3. $$

The candidate solves the differential equation, but it does not solve the stated initial-value problem because it fails the initial condition. The verification is incomplete if the initial data are omitted.

A Common Mistake: Stopping After Differentiation

A frequent error is to calculate the derivative and then assume the candidate is a solution without evaluating the right-hand side of the equation. For example, for \(y=x^2+1\) and the equation \(y'=y\), a calculation might stop at

$$ y'=2x. $$

That is only the derivative; it is not a check of the equation. Substitution gives \(y=x^2+1\) on the right, so the required equality would be \(2x=x^2+1\) for every \(x\). It fails already at \(x=0\): the left side is \(0\), while the right side is \(1\). Thus the candidate is not a solution of \(y'=y\). The correction is to compare both sides as functions on the claimed interval, rather than merely to compute one side.

Another important distinction is that verification establishes that a candidate works; it does not, by itself, show that it is the only solution or that a list of candidates is complete. Those conclusions require additional arguments. For this check, the task is narrower: confirm the proposed function, its stated interval, the original differential equation, and any initial data.

Summary of the Verification Test

For an explicit solution, differentiate the candidate and compare the result with the original right-hand side after substituting the candidate. For an implicit solution, use the chain rule under appropriate differentiability assumptions, and only divide by \(F_y\) where it is nonzero. In either form, verify the domain and check each initial condition separately.

Key takeaway: A proposed solution is verified only when it satisfies the differential equation at every point of its stated interval and, for an initial-value problem, also satisfies the specified initial condition.

Check Your Understanding

For each question, distinguish checking the differential equation from checking any initial condition.

  1. What must be checked, in addition to differentiating a proposed explicit solution?
  2. For \(F(x,y(x))=C\), what equation does the chain rule give?
  3. Why is the condition \(F_y\ne0\) needed to write \(y'=-F_x/F_y\)?
  4. Does a function that satisfies the differential equation necessarily satisfy a given initial condition? Explain.
  5. What does verification of one candidate establish, and what does it not establish by itself?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon