Tutorials › AP Calculus › Verifying Proposed Solutions by Substitution

Separable Equations and Growth · Tutorial 577 of 999

Verifying Proposed Solutions by Substitution

Use differentiation and direct substitution to decide whether a proposed formula really solves a differential equation and its initial-value problem.

Intermediate 9 min read

What You'll Learn

  • Define what it means for a function to solve a differential equation on an interval
  • Verify an explicit formula by differentiating and comparing both sides
  • Check an initial condition separately from the differential equation
  • Test an implicit relation using implicit differentiation and its valid branch
  • Identify failures caused by checking only one point or using a transformed equation

Why Verification Matters

A formula can look familiar, satisfy an initial condition, or resemble a solution obtained by algebraic manipulation. None of those facts alone establishes that it solves the differential equation. Verification is a direct test: differentiate the proposed function, substitute it into the original equation, and check that the required equality holds throughout the interval in question.

For an initial-value problem, there are two separate requirements. The function must satisfy the differential equation, and it must satisfy the specified initial condition. A formula that passes one test may still fail the other.

Definition: A differentiable function \(y=g(x)\) is a solution of \(y'=f(x,y)\) on an interval \(I\) if, for every \(x\in I\), the value \(g(x)\) is defined and \(g'(x)=f(x,g(x))\). It solves the initial-value problem with \(y(x_0)=y_0\) only if it also satisfies \(g(x_0)=y_0\), where \(x_0\in I\).

The phrase “for every \(x\) in an interval” is important. Matching the equation at one input value does not verify a solution. The proposed formula must make the differential equation true at every point of the interval where it is claimed to be a solution.

A Reliable Verification Process

Write the differential equation in its original form before beginning the check. If the proposal is explicit, \(y=g(x)\), calculate \(g'(x)\), substitute \(g(x)\) into every occurrence of \(y\), and compare the two sides. Then test any initial condition by direct substitution into \(g\).

1
Record the equation and interval.
Note the original differential equation, the interval on which the proposal is claimed to work, and any initial condition.
2
Differentiate the proposal.
Find \(y'\) from the proposed formula, using the appropriate derivative rules.
3
Substitute into the original equation.
Replace \(y\) and \(y'\) with the proposed expressions and check whether both sides are equal throughout the interval.
4
Test the initial condition separately.
Evaluate the proposed function at the stated initial input and compare its value with the required initial value.

This process tests the claim rather than how the formula was obtained. It does not require solving the differential equation again.

Worked Example: Verifying an Explicit Solution and Initial Condition

Worked Example: Verifying an Explicit Solution and Initial Condition

Test whether \(y=1+4e^{2x}\) solves \(y'=2(y-1)\) with the initial condition \(y(0)=5\).

Step 1: Differentiate the proposed function.

$$ y=1+4e^{2x} \quad\Longrightarrow\quad y'=4\cdot 2e^{2x}=8e^{2x}. $$

Step 2: Substitute the proposed \(y\) into the right-hand side.

$$ 2(y-1) =2\bigl((1+4e^{2x})-1\bigr) =2(4e^{2x}) =8e^{2x}. $$

The left-hand side \(y'\) and the right-hand side \(2(y-1)\) both equal \(8e^{2x}\). Thus the differential equation holds for every real \(x\).

Step 3: Check the initial condition.

$$ y(0)=1+4e^{2\cdot 0} =1+4e^0 =1+4(1) =5. $$

This matches the required value. Therefore the proposed function solves the differential equation and the initial-value problem on \(\mathbb{R}\).

Check: Substituting the proposed function into the original equation gave identical expressions, and direct evaluation at \(x=0\) gave \(5\).

Why Substitution Is a Proof of the Claim

The definition of a solution is an equality involving the derivative and the function at each input in an interval. For an explicit proposal \(y=g(x)\), the derivative test produces \(g'(x)\), while substitution produces \(f(x,g(x))\). If these expressions are equal for every \(x\) in the interval, then the defining condition for a solution is satisfied. If they differ at even one point in the claimed interval, it is not a solution there.

Theorem: Let \(g\) be differentiable on an interval \(I\). The formula \(y=g(x)\) solves \(y'=f(x,y)\) on \(I\) exactly when \(g'(x)=f(x,g(x))\) for every \(x\in I\). It solves the associated initial-value problem \(y(x_0)=y_0\) exactly when this equation test holds and \(g(x_0)=y_0\).

This statement follows directly from the definition. The first equality is precisely the requirement that \(g\) satisfy the differential equation. The second equality is precisely the requirement that it take the prescribed initial value. Both are necessary, and together they are sufficient.

Checking an Implicit Solution

A proposed solution need not be written as \(y=g(x)\). It may instead be given by a relation involving \(x\) and \(y\). To check such a proposal, differentiate the relation with respect to \(x\), treating \(y\) as a function of \(x\). Then use the relation and the resulting derivative to test the original equation.

For a relation \(F(x,y)=0\), implicit differentiation gives \(F_x(x,y)+F_y(x,y)y'=0\), where \(F_x\) and \(F_y\) are the partial derivatives. If \(F_y\ne 0\), this yields \(y'=-F_x/F_y\). The condition \(F_y\ne 0\) matters: dividing by \(F_y\) is valid only where it is nonzero. Also, a relation must actually define a differentiable branch \(y\) on the interval being considered for it to be a solution function.

Worked Example: Verifying an Implicit Solution

Worked Example: Verifying an Implicit Solution

Check whether the relation \(x^2+y^2=25\), on the branch through \((3,4)\), solves \(y'=-x/y\) with \(y(3)=4\).

Step 1: Identify the relevant branch and its domain near the initial point. The relation gives \(y^2=25-x^2\). The branch through \((3,4)\) has positive \(y\), so locally it is \(y=\sqrt{25-x^2}\). Near \(x=3\), \(25-x^2>0\) and \(y\ne 0\), so this branch is defined and differentiable there.

Step 2: Differentiate the implicit relation.

$$ \frac{d}{dx}(x^2+y^2)=\frac{d}{dx}(25) \quad\Longrightarrow\quad 2x+2y\,y'=0. $$

Solving for \(y'\), using \(y\ne0\), gives

$$ 2y\,y'=-2x \quad\Longrightarrow\quad y'=-\frac{x}{y}. $$

This is exactly the original differential equation on the chosen branch near \(x=3\).

Step 3: Check the initial condition.

$$ 3^2+4^2=9+16=25, \qquad y(3)=4. $$

The point \((3,4)\) lies on the proposed relation, and the selected branch has \(y(3)=\sqrt{25-9}=4\). Therefore the relation, interpreted as this local branch, solves the initial-value problem near \(x=3\).

Check: Differentiation gives \(y'=-x/y\), and the branch takes the required value \(4\) at \(x=3\).

The Original Equation and the Claimed Interval Matter

A verification must use the original differential equation, not merely an equation produced during an earlier manipulation. An algebraic step may have involved division by an expression that can be zero, or some other operation that changes which cases are represented. Substitution into the original equation is the decisive test of the proposed function.

The interval also matters. A formula may solve an equation where it is differentiable and where all expressions in the equation are defined, but fail to qualify on a larger interval containing a point where a denominator is zero. For an implicit relation, a curve may have points where it cannot be represented as a differentiable function \(y\) of \(x\). State the interval or branch being checked, and do not use a formula outside its domain.

Worked Example: An Initial Condition Is Not Enough

Worked Example: An Initial Condition Is Not Enough

A proposed solution for the initial-value problem \(y'=2xy\), \(y(0)=1\), is \(y=x^2+1\). Determine whether the proposal works.

Step 1: Check the initial condition.

$$ y(0)=0^2+1=1. $$

The initial condition is satisfied.

Step 2: Differentiate the proposal.

$$ y=x^2+1 \quad\Longrightarrow\quad y'=2x. $$

Step 3: Substitute into the right-hand side of the original equation.

$$ 2xy=2x(x^2+1)=2x^3+2x. $$

The equation would require \(2x=2x^3+2x\) for every \(x\) in the interval. This is false. For instance, at \(x=1\), the left-hand side \(y'\) is \(2\), while the right-hand side \(2xy\) is \(2(1)(2)=4\).

Conclusion and check: Although the proposal satisfies \(y(0)=1\), it does not satisfy the differential equation. It is therefore not a solution of the initial-value problem.

Common Pitfall: Checking at Just One Point

At the initial point, the differential equation describes the required slope of a solution, but matching that slope at the initial point does not establish that the formula has the right slope everywhere. For example, the proposal \(y=x^2+1\) in the previous example has \(y(0)=1\), and at \(x=0\) both sides of \(y'=2xy\) equal \(0\). That single agreement does not make the differential equation true on an interval: at \(x=1\), the sides are \(2\) and \(4\).

The correction is to compare the two sides as expressions in \(x\), and establish equality throughout the claimed interval. A convenient way to disprove a proposed solution is to find one point in the interval where the sides differ. But to verify a solution, one must establish the identity across the whole interval.

Takeaway: For an initial-value problem, perform two independent checks: verify the differential equation throughout the interval, and verify the initial condition at its specified input. Passing only one check is not enough.

Check Your Understanding

For each question, show enough work to distinguish checking the equation from checking an initial condition.

  1. What two requirements must a proposed function meet to solve an initial-value problem?
  2. For the proposed function \(y=3e^x\), what derivative must be compared with the right-hand side when checking \(y'=y\)?
  3. Why must an implicit relation be interpreted as a differentiable branch before it can represent a solution function?
  4. When differentiating \(F(x,y)=0\), what expression results from the chain rule, and what condition is needed to solve it for \(y'\) by division?
  5. Explain why agreement between the two sides of a differential equation at the initial point alone does not verify a solution on an interval.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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