Tutorials › AP Calculus › Area Between Exponential and Logarithmic Curves

Area Between Curves · Tutorial 649 of 999

Area Between Exponential and Logarithmic Curves

Use curve order and inverse relationships to choose and verify vertical- or horizontal-slice area integrals for regions involving exponential and logarithmic graphs.

Intermediate 10 min read

What You'll Learn

  • Determine whether the graphs of \(y=e^x\) and \(y=\ln x\) intersect
  • Check which curve is above the other on a specified interval
  • Set up an area integral using vertical slices
  • Convert the same region to horizontal-slice bounds
  • Split horizontal bounds where the left or right boundary changes
  • Verify area calculations by evaluating both slice descriptions

Exponential and Logarithmic Curves

The exponential function \(y=e^x\) and the natural logarithm \(y=\ln x\) are inverse functions. Their graphs are reflections of one another across the line \(y=x\). That relationship is useful when rewriting a boundary in terms of \(y\), but it does not mean that the two graphs intersect or that a region involving them is symmetric.

To find area, identify the actual region first. Check the domain, determine which curve is above or to the right on each part of the region, and use the corresponding slice length. Vertical slices measure upper minus lower; horizontal slices measure right minus left.

Definition: If a region has vertical slices extending from \(y=g(x)\) to \(y=f(x)\), where \(f(x)\ge g(x)\) on \(a\le x\le b\), its area is \( \int_a^b [f(x)-g(x)]\,dx \). If its horizontal slices extend from \(x=L(y)\) to \(x=R(y)\), where \(R(y)\ge L(y)\) on \(c\le y\le d\), its area is \( \int_c^d [R(y)-L(y)]\,dy \). If the slice boundaries change, split the integral at the change.

Do the Two Graphs Intersect?

Before looking for an enclosed area between two curves, check whether they meet. The logarithm is defined only for \(x>0\). On that domain, \(e^x\) is always greater than \(\ln x\), so the graphs \(y=e^x\) and \(y=\ln x\) do not intersect.

One way to see this is to use the inequalities \(e^x\ge x+1\) and \(\ln x<x\) for \(x>0\). The first follows because \(e^x-x-1\) has its minimum value \(0\) at \(x=0\); the second follows because \(x-1-\ln x\) has its minimum value \(0\) at \(x=1\). Therefore,

$$ e^x\ge x+1>x>\ln x \qquad (x>0). $$

Thus, the two curves alone do not enclose a bounded region. To define a finite area, some additional boundary is needed, such as vertical lines \(x=a\) and \(x=b\). Once the region is specified, test curve order over its interval rather than assuming that inverse functions must cross.

Worked Example: Establishing the Curve Order

Compare \(y=e^x\) and \(y=\ln x\) on \(1\le x\le e\). The domain condition for \(\ln x\) is satisfied because every \(x\) in this interval is positive. From the inequalities above, \(e^x>\ln x\) throughout the interval. In particular, at the test point \(x=1\),

$$ e^1=e,\qquad \ln 1=0,\qquad e>0. $$

The test point confirms the order, and the inequality establishes that the order does not change anywhere in the interval. The exponential curve is above the logarithmic curve, so the vertical slice length is \(e^x-\ln x\).

Area with Vertical Slices

Consider the region \(R\) bounded by \(y=e^x\), \(y=\ln x\), and the vertical lines \(x=1\) and \(x=e\). A vertical slice stays between the same two curves as \(x\) runs from \(1\) to \(e\). Since \(e^x\) is above \(\ln x\), the area is the integral of upper minus lower.

Worked Example: Finding the Area Using \(dx\)

The area is

$$ A=\int_1^e (e^x-\ln x)\,dx. $$

An antiderivative of \(\ln x\), for \(x>0\), is \(x\ln x-x\), since differentiating gives \(\ln x+1-1=\ln x\). Therefore,

$$ \begin{aligned} A &=\left[e^x\right]_1^e-\left[x\ln x-x\right]_1^e\\ &=(e^e-e)-\bigl[(e\ln e-e)-(1\ln 1-1)\bigr]\\ &=(e^e-e)-\bigl[(e-e)-(0-1)\bigr]\\ &=(e^e-e)-1\\ &=e^e-e-1. \end{aligned} $$

The result is positive, as an area must be. The subtraction in the integral also has the correct order at every \(x\): upper curve \(e^x\) minus lower curve \(\ln x\).

Rewriting the Same Region for Horizontal Slices

A horizontal slice requires describing the region's left and right edges as functions of \(y\). The original restrictions are \(1\le x\le e\), \(\ln x\le y\), and \(y\le e^x\). For \(y>0\), monotonicity of the exponential and logarithm gives the equivalent inequalities

$$ \ln x\le y \iff x\le e^y, \qquad y\le e^x \iff \ln y\le x. $$

Combining these with \(1\le x\le e\), a horizontal slice has left endpoint \(\max(1,\ln y)\) and right endpoint \(\min(e,e^y)\). The region reaches from \(y=0\), where its only point is \((1,0)\), up to \(y=e^e\), the value of the upper curve at \(x=e\). The left and right boundaries change at \(y=1\) and \(y=e\), so the area integral must be split there.

1
For \(0\le y\le1\).
Here \(\ln y\le0\) when \(y>0\), so the left edge is \(x=1\). Also \(1\le e^y\le e\), so the right edge is \(x=e^y\).
2
For \(1\le y\le e\).
Here \(\ln y\le1\), so the left edge remains \(x=1\). Since \(e^y\ge e\), the right edge is \(x=e\).
3
For \(e\le y\le e^e\).
Now \(\ln y\ge1\), so the left edge is \(x=\ln y\). The right edge remains \(x=e\).

Worked Example: Finding the Same Area Using \(dy\)

Using the three horizontal ranges, the slice lengths are \(e^y-1\), \(e-1\), and \(e-\ln y\), respectively. Thus,

$$ A=\int_0^1(e^y-1)\,dy+\int_1^e(e-1)\,dy+\int_e^{e^e}(e-\ln y)\,dy. $$

Evaluate each part. The first is

$$ \int_0^1(e^y-1)\,dy =\left[e^y-y\right]_0^1 =(e-1)-(1-0) =e-2. $$

The second is

$$ \int_1^e(e-1)\,dy =(e-1)(e-1) =(e-1)^2 =e^2-2e+1. $$

For the final integral, an antiderivative of \(e-\ln y\) is \((e+1)y-y\ln y\), because its derivative is \(e+1-(\ln y+1)=e-\ln y\). Therefore,

$$ \begin{aligned} \int_e^{e^e}(e-\ln y)\,dy &=\left[(e+1)y-y\ln y\right]_e^{e^e}\\ &=\bigl((e+1)e^e-e\cdot e^e\bigr) -\bigl((e+1)e-e\cdot1\bigr)\\ &=e^e-e^2. \end{aligned} $$

Adding the three contributions gives

$$ A=(e-2)+(e^2-2e+1)+(e^e-e^2)=e^e-e-1. $$

This matches the vertical-slice result. Both integrals describe the same region \(R\), so their equality is a check on the bounds and calculations. The horizontal description is not a claim that \(R\) is symmetric about \(y=x\). Its reflection across \(y=x\) would be a different region; the two regions are reflections of one another and consequently have equal areas.

Why the Slice Direction Matters

A vertical slice of \(R\) always runs from the logarithmic curve to the exponential curve. Its boundaries are simple, giving one integral. A horizontal slice encounters three different boundary patterns, so it requires three integrals. The horizontal method is valid, but here it takes more bookkeeping.

This is a useful general principle: choose the direction that makes slice lengths and bounds simplest. A change from \(dx\) to \(dy\) does not automatically preserve the same numerical limits or the same boundary expressions. The limits must describe the full range of the chosen slicing variable, and each slice must stay inside the intended region.

A Common Mistake: Reversing the Difference

Because \(e^x\) and \(\ln x\) are both familiar functions, it can be tempting to subtract them in either order. But area integrands must be nonnegative. Reversing the curves in the vertical setup produces

$$ \int_1^e(\ln x-e^x)\,dx=1+e-e^e, $$

which is negative. That is not an area; it signals that the lower curve was subtracted from the upper curve in the wrong order. On \(1\le x\le e\), \(e^x>\ln x\), so the correction is

$$ \int_1^e(e^x-\ln x)\,dx=e^e-e-1>0. $$

Another error is to assume that horizontal limits are simply \(y=1\) and \(y=e\) because the vertical boundaries are \(x=1\) and \(x=e\). The actual vertical range of \(R\) is \(0\le y\le e^e\). Horizontal limits come from the lowest and highest points of the entire region, not just from the vertical boundary values.

Takeaway: For exponential and logarithmic boundaries, first identify the domain and curve order, then describe the region's actual slices. Use upper minus lower for \(dx\), right minus left for \(dy\), and split an integral wherever a slice boundary changes.

Check Your Understanding

Use the region and reasoning in this tutorial to check whether you can identify the curves, bounds, and slice lengths.

  1. Why do \(y=e^x\) and \(y=\ln x\) fail to intersect for \(x>0\)?
  2. For the region bounded by these curves and \(x=1,\ x=e\), which curve is above the other?
  3. Write the area integral for that region using vertical slices.
  4. For \(1\le y\le e\), what are the left and right horizontal boundaries of the region?
  5. Why must the horizontal-slice setup be split at \(y=1\) and \(y=e\)?
  6. What does a negative value from an area integral usually indicate about the integrand's order?

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