Tutorials › Calculus I › Equivalent Vertical and Horizontal Area Integrals

Area Between Curves · Tutorial 1229 of 1495

Equivalent Vertical and Horizontal Area Integrals

Learn to describe one region with vertical and horizontal slices, set up both area integrals, and verify that they give the same area.

Intermediate 9 min read

What You'll Learn

  • Identify the slice length used in vertical and horizontal area integrals
  • Convert curve boundaries into bounds for the opposite slicing direction
  • Set up two integrals describing the same bounded region
  • Check that each set of bounds traces the intended region
  • Compare exact integral values and diagnose a sign error in slice width

One Region, Two Ways to Slice

A bounded region can often be described by thin vertical slices or by thin horizontal slices. Each description leads to a definite integral for the same geometric area, but the bounds and the expression for slice length generally change when the slicing direction changes.

For a vertical slice, the length is measured from a lower curve to an upper curve, so it is a difference of \(y\)-values. For a horizontal slice, the length is measured from a left boundary to a right boundary, so it is a difference of \(x\)-values. Keeping track of which direction a slice runs is the key to setting up the correct integral.

Definition: For a region described by vertical slices from \(x=a\) to \(x=b\), with lower boundary \(y=g(x)\) and upper boundary \(y=f(x)\), its area is \(\int_a^b [f(x)-g(x)]\,dx\), provided \(f(x)\geq g(x)\) on the interval. For a region described by horizontal slices from \(y=c\) to \(y=d\), with left boundary \(x=u(y)\) and right boundary \(x=v(y)\), its area is \(\int_c^d [v(y)-u(y)]\,dy\), provided \(v(y)\geq u(y)\) on the interval.

The two formulas use the same principle: add up slice lengths over the range of slices. The variable of integration identifies the slicing direction. Integrating with respect to \(x\) uses vertical slices; integrating with respect to \(y\) uses horizontal slices.

Worked Example: A Parabolic Region

Worked Example: Comparing Slices Between Two Curves

Find the area enclosed by \(y=x^2\) and \(y=2x\), and express it using both vertical and horizontal slices.

Step 1: Find the intersections. At an intersection, the two \(y\)-values are equal:

$$ x^2=2x \quad\Longrightarrow\quad x(x-2)=0 \quad\Longrightarrow\quad x=0 \text{ or } x=2. $$

The corresponding points are \((0,0)\) and \((2,4)\). For \(0\leq x\leq 2\), the line is above the parabola: \(2x-x^2=x(2-x)\geq 0\). Thus a vertical slice has length \(2x-x^2\).

Step 2: Integrate using vertical slices.

$$ A=\int_0^2 (2x-x^2)\,dx =\left[x^2-\frac{x^3}{3}\right]_0^2 =\left(4-\frac{8}{3}\right)-0 =\frac{4}{3}. $$

Step 3: Describe the same region horizontally. The \(y\)-values run from \(0\) to \(4\). Solving each boundary equation for \(x\), with \(x\geq 0\), gives \(y=x^2\Rightarrow x=\sqrt y\) and \(y=2x\Rightarrow x=y/2\). For \(0\leq y\leq4\), \(y/2\leq\sqrt y\), so the horizontal slice runs from \(x=y/2\) to \(x=\sqrt y\).

Step 4: Integrate using horizontal slices.

$$ A=\int_0^4\left(\sqrt y-\frac{y}{2}\right)\,dy =\left[\frac{2}{3}y^{3/2}-\frac{y^2}{4}\right]_0^4 =\left(\frac{2}{3}\cdot 8-4\right)-0 =\frac{16}{3}-4 =\frac{4}{3}. $$

Both descriptions give area \(4/3\). As a check on the horizontal setup, at \(y=1\) the slice goes from \(x=1/2\) to \(x=1\), with length \(1-1/2=1/2\), agreeing with \(\sqrt{1}-1/2\).

Why the Two Integrals Agree

The agreement is not a coincidence specific to the example. Both integrals add the lengths of slices that fill the same region. The direction of the slices changes which coordinate is allowed to vary, not the region being measured.

Theorem: Suppose a bounded region has piecewise-smooth boundary and every vertical and horizontal slice through its projection is either empty or a single interval. If its vertical boundaries are \(g(x)\leq y\leq f(x)\) for \(a\leq x\leq b\), and its horizontal boundaries are \(u(y)\leq x\leq v(y)\) for \(c\leq y\leq d\), then $$ \int_a^b [f(x)-g(x)]\,dx = \int_c^d [v(y)-u(y)]\,dy. $$

Here the boundary functions may be piecewise-defined, with the intervals divided where their formulas change. The essential conditions are that the slice lengths describe the same region and that each integral adds nonnegative lengths over the full projection of that region.

Justification. Enclose the region in a rectangle and divide that rectangle into a fine grid of small rectangles. Grid rectangles lying wholly inside the region contribute their full area; those lying wholly outside contribute zero. Only rectangles meeting the boundary can create a difference between this grid estimate and the true area. Since the boundary is piecewise smooth, the total area of these boundary rectangles tends to zero as the grid is refined.

Now group the same grid rectangles by their vertical columns. In each column, the included lengths approximate the vertical slice length, and adding column areas gives the limit \(\int_a^b [f(x)-g(x)]\,dx\). Group them instead by horizontal rows. The included lengths approximate the horizontal slice length, and adding row areas gives \(\int_c^d [v(y)-u(y)]\,dy\). Both groupings estimate the area of the same region, and their boundary errors tend to zero. Their limits must therefore be equal, which proves the formula.

This reasoning also explains why the bounds matter. The vertical bounds cover the region’s full horizontal projection, while the horizontal bounds cover its full vertical projection. Integrating a correct slice length over only part of a projection, or over a range that includes points outside the region, will not compute its area.

Worked Example: A Triangular Region

Worked Example: A Line and a Vertical Boundary

Find the area bounded by \(y=0\), \(y=2x\), and \(x=2\), using both slicing directions.

Vertical slices: The region runs from \(x=0\), where the line meets \(y=0\), to \(x=2\). The lower boundary is \(0\) and the upper boundary is \(2x\). Therefore,

$$ A=\int_0^2 (2x-0)\,dx =\left[x^2\right]_0^2 =4-0 =4. $$

Horizontal slices: The \(y\)-values run from \(0\) to \(4\), since \(y=2x=4\) at \(x=2\). Solving \(y=2x\) for \(x\) gives the left boundary \(x=y/2\); the right boundary is \(x=2\). Hence,

$$ A=\int_0^4\left(2-\frac{y}{2}\right)\,dy =\left[2y-\frac{y^2}{4}\right]_0^4 =(8-4)-0 =4. $$

The two values agree. At the top edge, \(y=4\), the horizontal slice has length \(2-4/2=0\), as expected where the region narrows to a point.

Worked Example: The Region Under a Parabola

Worked Example: A Parabolic Cap

Find the area bounded by \(y=x^2\) and \(y=4\), using both vertical and horizontal slices.

Vertical slices: The curves intersect where \(x^2=4\), so \(x=-2\) or \(x=2\). The line \(y=4\) is above \(y=x^2\) throughout this interval. Thus,

$$ A=\int_{-2}^{2}(4-x^2)\,dx =\left[4x-\frac{x^3}{3}\right]_{-2}^{2} =\left(8-\frac{8}{3}\right) -\left(-8+\frac{8}{3}\right) =\frac{16}{3}-\left(-\frac{16}{3}\right) =\frac{32}{3}. $$

Horizontal slices: The \(y\)-values run from \(0\) to \(4\). For a fixed \(y\), the equation \(y=x^2\) gives \(x=-\sqrt y\) on the left and \(x=\sqrt y\) on the right. The slice length is therefore \(\sqrt y-(-\sqrt y)=2\sqrt y\). Hence,

$$ A=\int_0^4 2\sqrt y\,dy =\left[\frac{4}{3}y^{3/2}\right]_0^4 =\frac{4}{3}\cdot 8-0 =\frac{32}{3}. $$

Both methods give \(32/3\). For a check on the horizontal width, at \(y=1\) the slice extends from \(x=-1\) to \(x=1\), so its length is \(2\), exactly the value \(2\sqrt{1}\).

Choosing and Checking a Slicing Direction

One direction may lead to a simpler integral than the other. A useful setup process is to trace the region in that direction, identify the endpoints of a representative slice, and then find the range over which the slice moves. For horizontal slices, this often requires solving boundary equations for \(x\); use the appropriate branch when a curve has more than one inverse branch.

1
Choose a direction.
Decide whether the slices will be vertical or horizontal.
2
Find the full range of slices.
Use the region’s projection onto the axis along which the slices are spaced.
3
Write the slice length in the correct order.
Use upper \(y\)-value minus lower \(y\)-value vertically, or right \(x\)-value minus left \(x\)-value horizontally.
4
Check a representative slice.
At a convenient coordinate, verify that the stated endpoints and length match the region.

A frequent mistake is to subtract horizontal endpoints in the wrong order. For the region between \(y=x^2\) and \(y=2x\), the horizontal endpoints are \(x=y/2\) on the left and \(x=\sqrt y\) on the right. Reversing them gives

$$ \int_0^4\left(\frac{y}{2}-\sqrt y\right)\,dy =\left[\frac{y^2}{4}-\frac{2}{3}y^{3/2}\right]_0^4 =4-\frac{16}{3} =-\frac{4}{3}. $$

This negative value is a warning: the expression is left endpoint minus right endpoint, not a nonnegative slice length. Correcting the order gives \(\sqrt y-y/2\) and area \(4/3\). A negative result from a purported slice-length integral should prompt a check of the boundary order and bounds.

Comparing vertical and horizontal integrals is a useful way to check a setup, but the two integrals need not look alike. They use different variables and can involve different boundary expressions. What must agree is their value, provided both integrals describe the same region completely.

Check Your Understanding

For each question, identify the slicing direction and check that the stated length is nonnegative over the given range.

  1. For the region between \(y=x^2\) and \(y=2x\), what are the horizontal bounds in \(x\) at a height \(y\) between \(0\) and \(4\)?
  2. For the triangular region bounded by \(y=0\), \(y=2x\), and \(x=2\), what is the horizontal slice length at height \(y\)?
  3. For the region between \(y=x^2\) and \(y=4\), why does a horizontal slice have length \(2\sqrt y\) rather than \(\sqrt y\)?
  4. If a proposed horizontal slice length is negative, what should you check first?
  5. In the parabolic region between \(y=x^2\) and \(y=2x\), what area does each slicing direction give?

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