Tutorials › Calculus I › Exponential Factors in Separable Equations

Slope Fields and Separable Equations · Tutorial 1372 of 1495

Exponential Factors in Separable Equations

Learn to solve separable equations with exponential factors, then check that logarithms and the resulting solution are valid on the required domain.

Intermediate 9 min read

What You'll Learn

  • Separate equations containing factors such as e^x and e^y
  • Integrate exponentials with the correct signs and constants
  • Use logarithms to write an explicit solution
  • Determine where the logarithm’s argument is positive
  • Apply an initial condition and verify the resulting formula by differentiation

Introduction

Exponential factors can make a differential equation look more complicated than it is. When the factors depend separately on \(x\) and \(y\), separation of variables turns the equation into two integrals. The main care is then algebraic and domain-related: integration constants must be handled correctly, and a logarithm is defined only when its argument is positive.

We will focus on equations whose right-hand side contains exponential functions of the independent and dependent variables. For instance, in \(y'=e^x e^y\), one factor depends only on \(x\), and the other only on \(y\). That structure lets us separate the variables directly.

Separating exponential factors

The exponential function is positive for every real input, so \(e^y\neq 0\). In an equation \(y'=g(x)e^y\), division by \(e^y\) is therefore valid at every point of a real-valued solution. Multiplying by \(e^{-y}\) gives a separated equation.

Definition: A solution of a differential equation on an interval is a differentiable function \(y\) defined on that interval such that substituting \(y\) and \(y'\) into the equation makes it true at every point of the interval.

For \(y'=g(x)e^y\), separation gives \(e^{-y}y'=g(x)\). The left side is the derivative of \(-e^{-y}\), by the chain rule. This observation both explains why the method works and helps prevent a sign error.

$$ \frac{d}{dx}\left(-e^{-y(x)}\right) = e^{-y(x)}y'(x) = g(x). $$

Thus, if \(G'(x)=g(x)\) on an interval, then \(-e^{-y}=G(x)+C\) there, where \(C\) is a constant. Equivalently, one can write \(e^{-y}=K-G(x)\), using a possibly different constant \(K\). If we then solve for \(y\), the logarithm imposes an essential restriction.

Key condition: From \(e^{-y}=H(x)\), we may write \(y=-\ln(H(x))\) only where \(H(x)>0\). The positivity is not optional: \(e^{-y}\) is positive for real \(y\), and the real logarithm is defined only for a positive argument.

Derivation for \(y'=e^x e^y\)

For this particular equation, separation and integration can be written out completely. The chain rule identifies the left integral, and the antiderivative of \(e^x\) is \(e^x\). Each step is valid on any interval where \(y\) is a real-valued differentiable solution.

1
Separate the variables.
Since \(e^y\) is never zero, multiply the equation by \(e^{-y}\) to obtain \(e^{-y}y'=e^x\).
2
Recognize the chain rule.
\(\frac{d}{dx}(-e^{-y})=e^{-y}y'\), so the equation says that this derivative equals \(e^x\).
3
Integrate.
It follows that \(-e^{-y}=e^x+C\). Renaming the arbitrary constant gives \(e^{-y}=K-e^x\).
4
Take the logarithm on the valid domain.
Where \(K-e^x>0\), the explicit solution is \(y=-\ln(K-e^x)\).

This is a complete derivation: differentiating the integrated relation recovers the separated equation, and the final logarithm is permitted precisely where its argument is positive. The domain condition can be made more explicit. If \(K\leq 0\), then \(K-e^x<0\) for every real \(x\), so there is no real-valued explicit solution of this form. If \(K>0\), then \(K-e^x>0\) exactly when \(x<\ln K\).

Worked examples

Worked Example: Solve \(y'=e^x e^y\)

Separate and integrate, retaining an arbitrary constant:

$$ e^{-y}y'=e^x, \qquad \frac{d}{dx}(-e^{-y})=e^x, \qquad -e^{-y}=e^x+C. $$

Let \(K=-C\). Then \(e^{-y}=K-e^x\), so the explicit family is

$$ y=-\ln(K-e^x), \qquad K-e^x>0. $$

For a real solution, \(K\) must be positive and the formula is defined on \(x<\ln K\). To check it, differentiate:

$$ y'=-\frac{-e^x}{K-e^x} =\frac{e^x}{K-e^x}. $$

From the formula, \(e^y=e^{-\ln(K-e^x)}=1/(K-e^x)\). Therefore \(e^x e^y=e^x/(K-e^x)=y'\), as required. The check also confirms the sign in the derivative.

Worked Example: Apply \(y(0)=0\) to \(y'=2e^x e^y\)

Multiplying by \(e^{-y}\) gives \(e^{-y}y'=2e^x\). Since the left side is \(\frac{d}{dx}(-e^{-y})\), integration gives

$$ -e^{-y}=2e^x+C. $$

Use \(y(0)=0\). At \(x=0\), \(e^{-y}=1\) and \(e^0=1\), so \(-1=2+C\), giving \(C=-3\). Rearranging and then taking the logarithm gives

$$ e^{-y}=3-2e^x, \qquad y=-\ln(3-2e^x). $$

The logarithm requires \(3-2e^x>0\). Thus \(e^x<3/2\), or \(x<\ln(3/2)\). This interval contains the initial point \(x=0\), since \(3/2>1\). To check the differential equation, differentiate and evaluate its right-hand side:

$$ y'=-\frac{-2e^x}{3-2e^x} =\frac{2e^x}{3-2e^x}, \qquad 2e^x e^y = 2e^x\frac{1}{3-2e^x} = \frac{2e^x}{3-2e^x}. $$

The two sides agree, and substituting \(x=0\) into the solution gives \(y(0)=-\ln(1)=0\). Both the equation and the initial condition are satisfied.

Worked Example: Solve \(y'=3e^{3x-y}\) with \(y(0)=0\)

First rewrite the exponential using \(e^{3x-y}=e^{3x}e^{-y}\). Multiplying the equation by \(e^y\) separates it in a convenient form:

$$ e^y y'=3e^{3x}. $$

By the chain rule, \(\frac{d}{dx}(e^y)=e^y y'\). Integrating both sides therefore gives

$$ e^y=e^{3x}+C. $$

At \(x=0\), \(y=0\), so \(1=1+C\), hence \(C=0\). The relation becomes \(e^y=e^{3x}\), and taking logarithms is valid because both sides are positive. It gives \(y=3x\), which is defined for every real \(x\). Check by differentiation and substitution:

$$ y'=3, \qquad 3e^{3x-y}=3e^{3x-3x}=3. $$

Also, \(y(0)=3\cdot 0=0\). Thus \(y=3x\) satisfies both the equation and the initial condition on the whole real line.

Initial conditions and the logarithm’s domain

For the equation \(y'=e^x e^y\), the initial condition \(y(x_0)=y_0\) determines the constant directly. From \(e^{-y}=K-e^x\), substitute \(x=x_0\) and \(y=y_0\) to get \(e^{-y_0}=K-e^{x_0}\). Therefore \(K=e^{-y_0}+e^{x_0}\), and the solution formula becomes

$$ y(x) = -\ln\left(e^{-y_0}+e^{x_0}-e^x\right). $$

The expression inside the logarithm is positive at \(x=x_0\): its value there is \(e^{-y_0}>0\). More generally, it is positive when \(e^x<e^{-y_0}+e^{x_0}\), or \(x<\ln(e^{-y_0}+e^{x_0})\). The formula must be restricted to an interval on which this condition holds and that includes the initial point. Checking the initial point alone is not enough; the formula is not a real-valued solution at inputs where the logarithm’s argument is nonpositive.

When solving other exponential equations, the expression under the logarithm can have a different form. The same procedure applies: solve the integrated relation for the exponential involving \(y\), take a logarithm only where its argument is positive, and then restrict the solution to an interval where that condition holds.

A common sign mistake

A frequent error is to integrate \(e^{-y}\,dy\) as \(e^{-y}\). That antiderivative is incorrect because the derivative of \(e^{-y}\) with respect to \(y\) is \(-e^{-y}\). For example, the incorrect calculation would give \(e^{-y}=e^x+C\), then \(y=-\ln(e^x+C)\). Differentiating this proposed formula yields

$$ y'=-\frac{e^x}{e^x+C}. $$

But \(e^x e^y=e^x/(e^x+C)\), which has the opposite sign. The correction is to include the negative sign in the antiderivative:

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

Then the integrated relation is \(-e^{-y}=e^x+C\), and the resulting formula passes the differentiation check wherever its logarithm is defined. Differentiating a proposed solution is a direct way to catch mistakes in signs, constants, and algebra.

Why the domain check matters

Integration produces a relation, but an explicit real-valued solution also has to be defined. In these examples, isolating \(y\) requires a logarithm, and its argument must be positive. This condition determines where the formula is valid and ensures that the expression agrees with the positive quantity \(e^{-y}\) or \(e^y\) from which it came.

A reliable workflow for exponential factors is:

  1. Separate the \(x\)-dependent and \(y\)-dependent factors using operations that are valid.
  2. Integrate, using the chain rule to identify exponential antiderivatives and their signs.
  3. Apply any initial condition before solving explicitly, if that makes the constant easier to determine.
  4. Isolate the exponential involving \(y\), then check positivity before taking a real logarithm.
  5. Differentiate the proposed formula and substitute it into the original equation; check the initial condition as well when one is given.

Check Your Understanding

For each question, pay attention both to the integration and to where the resulting formula is defined.

  1. Separate and integrate \(y'=e^{2x}e^y\). What inequality must hold before you take the logarithm?
  2. Solve \(y'=e^x e^y\) with \(y(0)=\ln 2\), and state the interval containing \(0\) on which the formula is real-valued.
  3. Why is it valid to divide \(y'=g(x)e^y\) by \(e^y\) for real-valued \(y\)?
  4. Differentiate \(-e^{-y}\) with respect to \(x\), treating \(y\) as a function of \(x\).
  5. What is the error in claiming that \(\int e^{-y}\,dy=e^{-y}+C\)?

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