Skip to main content

Exercises 6.7 Mixed Review: Choosing Your Method

You now own three solution methods: direct integration, separation of variables, and the integrating factor method. Each one was introduced in its own chapter, where every practice problem conveniently matched the method being taught. Exams are rarely so polite. A typical exam problem hands you an equation and asks only: โ€œsolve it.โ€ Deciding which tool fits is a skill of its own, and this review is where you practice it.
The flowchart below organizes the decision. Each method has an entrance requirement: direct integration needs the equation to already be a single derivative, separation of variables needs the form \(\frac{dy}{dx} = f(x)\cdot g(y)\text{,}\) and the integrating factor method needs a first-order linear equation \(y' + P(x)y = Q(x)\text{.}\) Think of an equation youโ€™d like to classify, then walk the chart by answering each highlighted question with the Yes/No buttons; press Reset to start over with a new equation.

Instructions.

Interactive decision-tree flowchart for choosing a first-order solution method. Starting from a given differential equation, it asks in order: Is the equation first order? If no, higher-order tools come in later chapters. Is it already a derivative of the form d/dx of something equals f of x? If yes, use direct integration. Is it separable? If yes, use separation of variables. Is it linear? If yes, use the integrating factor method; if no, use qualitative or numerical tools. Yes and No buttons advance the highlighted question and the chosen path is highlighted in green.
Figure 88. The โ€œWhich Method?โ€ flowchart. Answer each highlighted question with the Yes/No buttons to find the right tool; press Reset to start over with a new equation.
Two notes before you start practicing.
  • Some equations qualify for more than one method. If an equation is both separable and linear, either tool reaches the same general solutionโ€”pick whichever integrals look friendlier.
  • If an equation fails every test in the chart, that doesnโ€™t mean itโ€™s hopelessโ€”it means none of our formula methods apply. The next two chapters build tools for exactly this situation: qualitative methods to describe how solutions behave, and Eulerโ€™s method to approximate them numerically. A few standard formula methods that this book does not teach also live out there, and Preview: Other Tools You May Meet at the end of this review says where they fit.
The Which Method Applies drills earlier in this chapter are the perfect companion to the flowchartโ€”work them alongside this review if you havenโ€™t already.

๐Ÿ’ก Which Method? Quiz.

For each differential equation, choose the best plan of attack. Do not solve any of the equationsโ€”the goal is to make the call quickly, the way you would when first reading an exam problem.

1.

(a) Pick the Method.

\begin{equation*} \frac{dy}{dx} = x^2 e^{-x} \end{equation*}
  • Direct integration.
  • Correct! The right-hand side involves only \(x\text{,}\) so integrating both sides gives the general solution.
  • Separation of variables (and direct integration wonโ€™t work).
  • Separation technically applies with \(g(y) = 1\text{,}\) but thereโ€™s nothing to separateโ€”the equation is already set up to integrate directly.
  • Integrating factor, since the equation is linear.
  • The equation is linear, but with no \(y\) term at all thereโ€™s nothing for an integrating factor to fixโ€”just integrate both sides.
  • None of our methods apply.
  • Look again: the right-hand side is a function of \(x\) alone.

(b) Pick the Method.

\begin{equation*} \frac{dy}{dx} = x y^2 \end{equation*}
  • Separation of variables.
  • Correct! The right side is the product \(f(x)\cdot g(y)\) with \(f(x) = x\) and \(g(y) = y^2\text{.}\)
  • Integrating factor.
  • The \(y^2\) term makes this equation nonlinear, so the integrating factor method does not apply.
  • Direct integration.
  • The right side involves \(y\text{,}\) so we cannot simply integrate both sides with respect to \(x\text{.}\)
  • None of our methods apply.
  • Check the separability test: can the right side be written as (a function of \(x\)) \(\times\) (a function of \(y\))?

(c) Pick the Method.

\begin{equation*} y' + 3y = e^{2x} \end{equation*}
  • Integrating factor.
  • Correct! The equation is first-order linear, already in standard form with \(P(x) = 3\text{,}\) and it is not separable.
  • Separation of variables.
  • Isolating the derivative gives \(y' = e^{2x} - 3y\text{,}\) a difference, not a product of an \(x\)-part and a \(y\)-part. Not separable.
  • Direct integration.
  • The left side is not the derivative of a single expression as writtenโ€”thatโ€™s exactly what multiplying by an integrating factor will fix.
  • None of our methods apply.
  • Check the linearity test: \(y\) and \(y'\) each appear once, to the first power.

(d) Pick the Method.

\begin{equation*} x\, y' = y + x^2 \sin x \end{equation*}
  • Integrating factor.
  • Correct! Dividing by \(x\) gives the standard form \(y' - \frac{1}{x}y = x\sin x\text{,}\) which is linear but not separable.
  • Separation of variables.
  • Isolating the derivative gives \(y' = \frac{y}{x} + x\sin x\text{,}\) a sum that cannot be factored into \(f(x)\cdot g(y)\text{.}\)
  • Direct integration.
  • The right side involves \(y\text{,}\) so both sides cannot be integrated as-is.
  • None of our methods apply.
  • Try dividing both sides by \(x\) and rearranging into standard linear form.

(e) Pick the Method.

\begin{equation*} \frac{dy}{dx} = \left(1 + y^2\right) e^{x} \end{equation*}
  • Separation of variables.
  • Correct! The right side factors as \(f(x)\cdot g(y)\) with \(f(x) = e^x\) and \(g(y) = 1 + y^2\text{.}\)
  • Integrating factor.
  • The \(y^2\) term makes the equation nonlinear, so the integrating factor method is out.
  • Direct integration.
  • The right side involves \(y\text{,}\) so we cannot simply integrate both sides.
  • None of our methods apply.
  • Check the separability testโ€”the right side is already factored for you.

(f) More Than One Way.

\begin{equation*} \frac{dy}{dx} = 2y \end{equation*}
  • Either separation of variables or an integrating factorโ€”both apply.
  • Correct! It separates as \(\frac{dy}{y} = 2\,dx\text{,}\) and rewriting it as \(y' - 2y = 0\) shows itโ€™s also first-order linear. Both routes give \(y = Ce^{2x}\text{.}\)
  • Separation of variables only.
  • Separation works, but so does an integrating factor: \(y' - 2y = 0\) is first-order linear with \(Q(x) = 0\text{.}\)
  • Integrating factor only.
  • An integrating factor works, but so does separation: \(\frac{dy}{y} = 2\,dx\text{.}\)
  • Direct integration only.
  • The right side involves \(y\text{,}\) so direct integration is the one method that doesnโ€™t apply here.

(g) The Fastest Route.

This equation can be solved by more than one of our methods. Which observation gives the fastest route to the solution?
\begin{equation*} x^2 y' + 2x y = 4x \end{equation*}
  • The left side is already the derivative \(\frac{d}{dx}\left[x^2 y\right]\text{,}\) so integrate both sides directly.
  • Correct! The left side is a completed product rule, so direct integration gives \(x^2 y = 2x^2 + C\) in one step. Always scan for this shortcut first.
  • Divide by \(x^2\) to reach standard form, then compute the integrating factor \(\mu(x)\text{.}\)
  • This worksโ€”but the integrating factor youโ€™d build is \(x^2\text{,}\) which the equation already has in place! Recognizing the completed product rule skips the whole computation.
  • Isolate \(y'\) and separate the variables.
  • Surprisingly, this works too: \(y' = \frac{2(2 - y)}{x}\) is separable. But itโ€™s the slowest routeโ€”look at the left side of the original equation again.
  • No method applies without more information.
  • Look at the left side: does it match the expanded form of a product rule?

(h) Know When to Fold.

\begin{equation*} y' = y^2 + x \end{equation*}
  • None of our formula methods apply.
  • Correct! The \(y^2\) term rules out linearity, and \(y^2 + x\) is a sum that wonโ€™t factor into \(f(x)\cdot g(y)\text{.}\) Equations like this are why the next two chapters develop qualitative and numerical tools.
  • Separation of variables.
  • The right side \(y^2 + x\) is a sum, not a product of an \(x\)-part and a \(y\)-partโ€”it cannot be separated.
  • Integrating factor.
  • The \(y^2\) term makes the equation nonlinear, so the integrating factor method does not apply.
  • Direct integration.
  • The right side involves \(y\text{,}\) so both sides cannot simply be integrated with respect to \(x\text{.}\)

โœ๐Ÿป Choose, Then Solve.

Solve each equation. No method is announcedโ€”begin each solution by naming the method you chose and the feature of the equation that told you it applies.

3.

\(\dfrac{dy}{dx} = -\dfrac{x}{y}, \quad y(0) = 3\)
Answer.
Separation of variables; \(x^2 + y^2 = 9\text{,}\) so \(y = \sqrt{9 - x^2}\text{.}\)

7.

\(e^x y' + e^x y = \cos x\)
Answer.
Direct integration (the left side is \(\frac{d}{dx}\left[e^x y\right]\)); \(y = e^{-x}\left(\sin x + C\right)\text{.}\)

Preview: Other Tools You May Meet.

The flowchartโ€™s final No branch sends you to qualitative and numerical methods, and that is an honest answer โ€” those are the tools this book builds. But a standard differential equations syllabus usually carries a few more formula methods, and you may meet them in another course, in a table of techniques, or in someone elseโ€™s notes. This preview says where each one fits, so that none of them arrives as a surprise.
One reassuring pattern runs through all three. None is a new world with its own theory. Each recognizes a special shape, performs a single move, and hands the problem straight back to a method you already own.
Exact equations. Written as \(M(x,y) + N(x,y)\,y' = 0\text{,}\) the equation is called exact when
\begin{equation*} \frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} . \end{equation*}
That test is checking whether the left side is already the derivative of a single function \(F(x,y)\) โ€” which should sound familiar, because it is this chapterโ€™s โ€œcompleting the product ruleโ€ idea asked in two variables. There we multiplied by \(\mu\) to make the left side a single derivative; here we test whether it is one for free. When it is, the solutions are the level curves \(F(x,y) = C\text{,}\) and nothing needs solving at all โ€” only antidifferentiating to rebuild \(F\text{.}\)
For instance, \((2xy + 3) + (x^2 - 1)\,y' = 0\) passes the test, since \(\partial M/\partial y = 2x = \partial N/\partial x\text{.}\) Rebuilding \(F\) from \(F_x = 2xy+3\) and \(F_y = x^2-1\) gives \(F = x^2 y + 3x - y\text{,}\) so the solutions are
\begin{equation*} x^2 y + 3x - y = C . \end{equation*}
Bernoulli equations. These look linear except for a power of \(y\) on the right:
\begin{equation*} y' + P(x)\,y = Q(x)\,y^{n}, \qquad n \neq 0, 1 . \end{equation*}
The single move is the substitution \(v = y^{1-n}\text{,}\) which turns the equation into a linear equation in \(v\) โ€” landing you back in the integrating factor method you just finished learning. For example, \(y' + y = x y^2\) has \(n = 2\text{,}\) so \(v = y^{-1}\) and the equation becomes \(v' - v = -x\text{.}\) The integrating factor \(\mu = e^{-x}\) gives \(v = x + 1 + Ce^{x}\text{,}\) so
\begin{equation*} y = \frac{1}{x + 1 + Ce^{x}} . \end{equation*}
Substitution for ratio-form equations. When the right side depends on \(x\) and \(y\) only through their ratio,
\begin{equation*} \frac{dy}{dx} = F\left(\frac{y}{x}\right), \end{equation*}
the move is \(v = y/x\text{.}\) Then \(y = vx\) and \(y' = v + x v'\text{,}\) and the equation becomes separable in \(v\) โ€” back to Separation of Variables. The equation \(\dfrac{dy}{dx} = \dfrac{y-x}{y+x}\) is one of these: dividing top and bottom by \(x\) turns the right side into \(\dfrac{v-1}{v+1}\text{,}\) and the substitution reduces the whole equation to
\begin{equation*} x\,\frac{dv}{dx} = -\frac{1 + v^2}{1 + v}, \end{equation*}
which separates.

๐Ÿ“: A Familiar Face.

๐Ÿ“: Two Meanings of โ€œHomogeneousโ€.

None of these three is required anywhere in this book, and no exercise here will demand them. They are listed so the map is complete: when you meet โ€œexact,โ€ โ€œBernoulli,โ€ or โ€œuse the substitution \(v = y/x\text{,}\)โ€ you will recognize the shape being matched and know which of your own methods the problem is about to become.

8. Which Tool Fits the Shape?

(a)

Which preview method is designed for \(\ds y' + \frac{y}{x} = x y^2\text{?}\)
  • Bernoulli, with the substitution \(v = y^{-1}\text{.}\)
  • The equation is linear except for the \(y^2\) on the right, which is the Bernoulli shape with \(n = 2\text{.}\) Then \(v = y^{1-2} = y^{-1}\text{.}\)
  • Exact, after checking \(\partial M/\partial y = \partial N/\partial x\text{.}\)
  • The exactness test applies to equations arranged as \(M + N y' = 0\text{.}\) This one is in the standard linear layout, with a power of \(y\) spoiling it.
  • Substitution \(v = y/x\text{,}\) because the right side is a function of \(y/x\text{.}\)
  • Check that claim: \(x y^2\) is not a function of the ratio \(y/x\) alone โ€” replacing \(y\) with \(vx\) leaves an \(x\) behind.
  • The integrating factor method, unchanged.
  • The integrating factor method needs a linear equation. The \(y^2\) disqualifies it โ€” until the Bernoulli substitution removes it.

(b)

Which preview method is designed for \(\ds y' = \frac{x^2 + y^2}{xy}\text{?}\)
  • Substitution \(v = y/x\text{,}\) which makes it separable.
  • Dividing top and bottom by \(x^2\) gives \(\ds\frac{1 + (y/x)^2}{y/x}\) โ€” a function of the ratio alone, which is the ratio-form shape.
  • Bernoulli, with \(v = y^{-1}\text{.}\)
  • Bernoulli needs the layout \(y' + P(x)y = Q(x)y^n\text{.}\) This right side is a single quotient mixing both variables, not that shape.
  • Separation of variables, directly.
  • No algebra splits \(\ds\frac{x^2+y^2}{xy}\) into \(f(x)\cdot g(y)\text{.}\) The substitution is what creates a separable equation.
  • Direct integration.
  • Direct integration needs the left side to already be a single derivative and the right side to depend on \(x\) alone.

(c)

Apply the exactness test to \(\left(3x^2 + y\right) + \left(x - 2y\right) y' = 0\text{.}\) Is it exact?
  • Yes: \(\partial M/\partial y = 1\) and \(\partial N/\partial x = 1\text{.}\)
  • Both partials equal \(1\text{,}\) so the left side is already a single derivative. Rebuilding \(F\) gives the solutions \(x^3 + xy - y^2 = C\text{.}\)
  • No: \(\partial M/\partial y = 6x\) and \(\partial N/\partial x = 1\text{.}\)
  • \(6x\) is \(\partial M/\partial x\text{.}\) The test differentiates \(M\) with respect to \(y\text{,}\) holding \(x\) constant, which gives \(1\text{.}\)
  • No: \(\partial M/\partial y = 1\) and \(\partial N/\partial x = -2\text{.}\)
  • \(-2\) comes from differentiating \(N = x - 2y\) with respect to \(y\text{.}\) The test needs \(\partial N/\partial x\text{,}\) which is \(1\text{.}\)
  • The test does not apply until the equation is in standard linear form.
  • The exactness test wants the \(M + N y' = 0\) arrangement, which is exactly how this equation is written.

9. One Test, Two Equations.

Exactly one of these two equations is exact. Which one, and what is the test that separates them?
\begin{align*} \text{(A)} \quad \amp \left(y^2 + 2x\right) + \left(2xy + 1\right) y' = 0\\ \text{(B)} \quad \amp \left(y^2 + 2x\right) + \left(xy + 1\right) y' = 0 \end{align*}
Answer.
(A) is exact, since \(\partial M/\partial y = \partial N/\partial x = 2y\text{;}\) its solutions are \(xy^2 + x^2 + y = C\text{.}\) In (B), \(\partial N/\partial x = y \neq 2y\text{.}\)
You have attempted of activities on this page.