Tutorials › AP Statistics › Separable Equations with Power-Law Dependence

Separable Equations and Growth · Tutorial 573 of 999

Separable Equations with Power-Law Dependence

Learn to solve power-law separable equations and use the initial value and domain restrictions to select a valid solution.

Intermediate 9 min read

What You'll Learn

  • Separate variables in equations of the form dy/dx = x yⁿ.
  • Derive the solution formula for n = 1.
  • Derive the solution formula for n ≠ 1 on a positive-valued domain.
  • Apply an initial condition to determine the integration constant.
  • Identify where an explicit solution is real and valid.
  • Check a proposed solution by differentiating it and applying the initial condition.

Why the Exponent Changes the Method

The equation \( \frac{dy}{dx}=xy^n \) is separable: its right-hand side is a product of a function of \(x\) and a power of \(y\). Separating variables turns the differential equation into an integration problem. The exponent \(n\) determines an important distinction: when \(n=1\), the \(y\)-side integrates to a logarithm; when \(n\ne 1\), it integrates to a power.

An initial condition \(y(x_0)=y_0\) determines a particular solution, but it does not remove the need to check the solution's domain. In particular, formulas involving noninteger powers of \(y\) are naturally considered on intervals where \(y>0\).

Scope and domain: We first solve for positive-valued solutions, so that real powers \(y^n\) and the separation steps are well-defined. If \(n>0\), the constant function \(y=0\) is also a solution of the original equation. Dividing by a power of \(y\) does not capture that solution.

Separating the Variables

Suppose \(y>0\) on the interval being considered. Starting from \( \frac{dy}{dx}=xy^n \), divide by \(y^n\) and multiply by \(dx\):

$$ y^{-n}\,dy=x\,dx. $$

This form indicates that we integrate the left side with respect to \(y\) and the right side with respect to \(x\). The antiderivative of \(y^{-n}\) depends on whether its exponent is \(-1\), which occurs exactly when \(n=1\).

The Case \(n=1\): Exponential Form

When \(n=1\), the equation is \( \frac{dy}{dx}=xy \). For a nonzero solution, divide by \(y\) and integrate:

$$ \frac{1}{y}\,dy=x\,dx, \qquad \ln|y|=\frac{x^2}{2}+C. $$

Equivalently, on a positive-valued interval, exponentiating gives \(y=Ae^{x^2/2}\) for a positive constant \(A\). If \(y(x_0)=y_0>0\), it is convenient to use the initial value directly:

$$ y(x)=y_0e^{(x^2-x_0^2)/2}. $$

Indeed, setting \(x=x_0\) gives \(y(x_0)=y_0e^0=y_0\). The same expression works for negative \(y_0\), because the equation is linear in \(y\) and the exponential factor is positive. If \(y_0=0\), the solution is \(y(x)=0\).

Worked Example: Solving an Initial-Value Problem When \(n=1\)

Solve \( \frac{dy}{dx}=xy \) with \(y(1)=3\).

Here \(x_0=1\), \(y_0=3\), and \(n=1\). The formula gives

$$ y(x)=3e^{(x^2-1^2)/2} =3e^{(x^2-1)/2}. $$

This is defined for every real \(x\). To check the differential equation, differentiate:

$$ y'(x) =3e^{(x^2-1)/2}\cdot \frac{d}{dx}\left(\frac{x^2-1}{2}\right) =3e^{(x^2-1)/2}\cdot x =xy(x). $$

The initial value is also correct:

$$ y(1)=3e^{(1-1)/2}=3e^0=3. $$

Thus the formula satisfies both the differential equation and the initial condition.

The Case \(n\ne 1\): Power Form

For \(n\ne 1\), the power rule for integration gives

$$ \int y^{-n}\,dy =\frac{y^{1-n}}{1-n}. $$

Consequently, separating and integrating yields

$$ \frac{y^{1-n}}{1-n}=\frac{x^2}{2}+C. $$

The initial condition \(y(x_0)=y_0>0\) determines the constant. Subtracting the equation at \(x=x_0\) from the general equation gives

$$ \frac{y^{1-n}-y_0^{1-n}}{1-n} =\frac{x^2-x_0^2}{2}. $$

Solving for \(y\) produces the positive-valued solution formula:

$$ y(x)= \left[ y_0^{1-n}+\frac{1-n}{2}(x^2-x_0^2) \right]^{1/(1-n)}. $$
Domain condition: For this formula to give a real positive-valued solution for a general real exponent \(n\), the quantity inside the brackets must be positive. Use the formula on the connected interval containing \(x_0\) where that condition holds.

The positive bracket condition is not an optional technical detail. A real power with a noninteger exponent need not be defined for a negative base. Also, the derivation divided by \(y^n\), so it applies only where \(y\ne 0\). If \(n>0\), check \(y=0\) separately in the original equation.

Worked Example: A Power-Law Equation with \(n=2\)

Solve \( \frac{dy}{dx}=xy^2 \) with \(y(0)=1\), and state the interval on which the resulting positive solution is valid.

Here \(n=2\), \(x_0=0\), and \(y_0=1\). Substitute these values into the formula:

$$ y(x)= \left[ 1^{1-2}+\frac{1-2}{2}(x^2-0^2) \right]^{1/(1-2)}. $$

Since \(1^{1-2}=1\), \(\frac{1-2}{2}=-\frac12\), and \(1/(1-2)=-1\), this becomes

$$ y(x)=\left(1-\frac{x^2}{2}\right)^{-1} =\frac{1}{1-x^2/2}. $$

For the positive solution, the denominator must be positive:

$$ 1-\frac{x^2}{2}>0 \quad\Longleftrightarrow\quad x^2<2 \quad\Longleftrightarrow\quad -\sqrt{2}<x<\sqrt{2}. $$

Check the differential equation by differentiating:

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

Meanwhile,

$$ xy^2 =x\left(\frac{1}{1-x^2/2}\right)^2 =\frac{x}{(1-x^2/2)^2}. $$

Thus \(y'=xy^2\). The initial condition checks as \(y(0)=1/(1-0)=1\). The solution is valid on the interval \((-\sqrt{2},\sqrt{2})\), which contains the initial point.

Why the Formula Works

The power formula can be justified directly using the chain rule. This also clarifies why the exponent \(1-n\) appears. Assume \(y>0\), \(n\ne1\), and \(y'=xy^n\). Differentiate \(y^{1-n}\):

$$ \frac{d}{dx}\left(y^{1-n}\right) =(1-n)y^{-n}\frac{dy}{dx} =(1-n)y^{-n}(xy^n) =(1-n)x. $$

Integrating with respect to \(x\) gives

$$ y^{1-n}=\frac{1-n}{2}x^2+C_1. $$

If \(y(x_0)=y_0\), substitute \(x_0\) and \(y_0\) to determine \(C_1\):

$$ y_0^{1-n}=\frac{1-n}{2}x_0^2+C_1, \qquad C_1=y_0^{1-n}-\frac{1-n}{2}x_0^2. $$

Substituting this constant back yields

$$ y^{1-n} =y_0^{1-n}+\frac{1-n}{2}(x^2-x_0^2), $$

which gives the stated solution after raising both sides to the power \(1/(1-n)\), on an interval where the right-hand side is positive. This derivation shows that the formula is not a pattern to memorize without conditions: it follows from the chain rule and integration, with positivity ensuring the real power is valid.

Worked Example: A Fractional Exponent

Solve \( \frac{dy}{dx}=x\sqrt{y} \) with \(y(0)=4\), using the positive-valued solution.

Since \(\sqrt{y}=y^{1/2}\), the exponent is \(n=\frac12\). The initial values are \(x_0=0\) and \(y_0=4\). The general initial-value formula becomes

$$ y(x)= \left[ 4^{1/2} +\frac{1-1/2}{2}(x^2-0^2) \right]^{1/(1-1/2)}. $$

Evaluate each part: \(4^{1/2}=2\), \(\frac{1-1/2}{2}=\frac14\), and \(1/(1-1/2)=2\). Therefore,

$$ y(x)=\left(2+\frac{x^2}{4}\right)^2. $$

The bracket \(2+x^2/4\) is positive for every real \(x\), so this positive solution is defined for all real \(x\). To check it, let \(g(x)=2+x^2/4\), so \(y=g^2\). Then \(g'(x)=x/2\), and

$$ y'(x)=2g(x)g'(x) =2\left(2+\frac{x^2}{4}\right)\frac{x}{2} =x\left(2+\frac{x^2}{4}\right). $$

Because \(g(x)>0\), we have \(\sqrt{y(x)}=g(x)=2+x^2/4\). Hence \(x\sqrt{y}=x(2+x^2/4)=y'\). Finally, \(y(0)=(2+0)^2=4\). Both the equation and the initial condition are satisfied.

A Common Integration Mistake

A frequent error is to forget the denominator in the power rule. For \(n=2\), one might incorrectly write

$$ \int y^{-2}\,dy=y^{-1}+C. $$

This is wrong: differentiating \(y^{-1}\) gives \(-y^{-2}\), not \(y^{-2}\). The correct integral is

$$ \int y^{-2}\,dy =\frac{y^{-1}}{-1} =-y^{-1}+C. $$

The error changes the resulting solution. For example, using the incorrect integral for \(y'=xy^2\) with \(y(0)=1\) leads to \(1/y=1+x^2/2\), or \(y=1/(1+x^2/2)\). Differentiate that incorrect candidate:

$$ y'(x)=-\frac{x}{(1+x^2/2)^2}, \qquad xy^2=\frac{x}{(1+x^2/2)^2}. $$

These expressions are not equal in general. The corrected integration gives \( -1/y=x^2/2+C \). Applying \(y(0)=1\) gives \(C=-1\), so \(1/y=1-x^2/2\), matching the checked solution above.

Using Initial Conditions Responsibly

For an initial-value problem, the initial point must lie in the interval where the solution formula is defined. For \(n\ne1\) and \(y_0>0\), the bracket equals \(y_0^{1-n}>0\) at \(x=x_0\), so the initial point is valid. Moving away from it, however, the bracket may reach zero. The positive-valued formula cannot be continued through a point where the bracket is nonpositive.

A reliable workflow is:

1
Identify the exponent.
Separate the \(n=1\) logarithmic case from the \(n\ne1\) power case.
2
Separate and integrate.
Keep the factor \(1/(1-n)\) when \(n\ne1\).
3
Apply the initial condition.
Use \(y(x_0)=y_0\) to determine the constant or write the solution directly in terms of \(x_0\) and \(y_0\).
4
Check the domain and verify.
Ensure the expression is real on the interval containing \(x_0\), then differentiate and substitute the initial point.

These checks distinguish a formal expression from a valid solution to an initial-value problem. The equation, the initial value, and the domain must all agree.

Check Your Understanding

For each problem, identify the relevant case and check any domain restriction that applies.

  1. Solve \( \frac{dy}{dx}=xy \) with \(y(0)=2\), and verify the initial value.
  2. Solve \( \frac{dy}{dx}=xy^3 \) with \(y(0)=1\). Where is the positive-valued formula valid?
  3. For \( \frac{dy}{dx}=x\sqrt{y} \) with \(y(1)=1\), write the positive-valued solution formula and state the condition that its bracket must satisfy.
  4. Explain why integrating \(y^{-2}\) as \(y^{-1}\) gives an incorrect answer.
  5. If \(n>0\), why should \(y=0\) be checked separately after separating variables?

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