Tutorials › AP Calculus › Choosing dx or dy from the Region’s Shape

Area Between Curves · Tutorial 642 of 999

Choosing dx or dy from the Region's Shape

Learn to choose \(dx\) or \(dy\) by checking which orientation gives the clearest valid slices and simplest integral setup.

Intermediate 10 min read

What You'll Learn

  • Identify the top and bottom edges for vertical slices and the left and right edges for horizontal slices
  • Check whether every slice spans one continuous interval inside the region
  • Compare the number of integrals required by each orientation
  • Rewrite boundary curves as functions of the slicing variable
  • Verify area setups by comparing equivalent slice descriptions
  • Detect and correct a horizontal-slice boundary that excludes part of the region

Why Slice Orientation Matters

A bounded region can often be divided into thin vertical strips or thin horizontal strips. Both descriptions can give its area, but one may be much easier to use. A good choice gives valid bounds, uses boundary functions that are straightforward to write, and avoids splitting the calculation into unnecessary integrals.

The choice is not simply “use \(dx\) for curves written as \(y=f(x)\)” or “use \(dy\) for curves written as \(x=g(y)\).” Either orientation can work if the boundaries can be expressed in the needed form. Instead, inspect the shape of the whole region and ask what each kind of slice actually crosses.

Key idea: Use vertical slices when the region is most simply described by a top boundary and a bottom boundary. Use horizontal slices when it is most simply described by a right boundary and a left boundary. Check both descriptions before deciding.

What Makes a Slice Description Valid?

A vertical slice at a fixed \(x\) runs from the bottom edge of the region to its top edge. If every vertical slice over \(a\le x\le b\) crosses the region in one continuous interval, and the bottom and top edges are \(y=B(x)\) and \(y=T(x)\), then the area is

$$ A=\int_a^b \bigl(T(x)-B(x)\bigr)\,dx. $$

A horizontal slice at a fixed \(y\) runs from the left edge to the right edge. If every horizontal slice over \(c\le y\le d\) crosses the region in one continuous interval, with left and right edges \(x=L(y)\) and \(x=R(y)\), then

$$ A=\int_c^d \bigl(R(y)-L(y)\bigr)\,dy. $$

These formulas describe the same area, but their bounds and boundary functions are different. A boundary given as \(y=f(x)\) may need to be rewritten as \(x=g(y)\) for horizontal slices. That rewriting is useful only when it correctly describes the relevant edge over the entire range of \(y\).

A quick geometric test is to imagine sliding a thin strip across the region. If a slice enters, leaves, and then re-enters the region, it does not describe one uninterrupted strip with just one left-right or bottom-top pair of edges. The slice range may need to be divided into intervals. An orientation that avoids such changes will often require fewer integrals.

A Practical Comparison

For each candidate orientation, check four things:

  1. Bounds: Find the full range of \(x\) or \(y\) covered by the region.
  2. Connectivity: Check whether each slice across that range intersects the region in one interval.
  3. Edges: Identify the correct top and bottom edges, or left and right edges, for every slice.
  4. Work: Compare how many integrals are needed and how difficult their boundary expressions are.

The orientation requiring fewer integrals is often preferable, but not automatically. A single integral with complicated inverse functions may be less convenient than two simple integrals. The goal is a correct and manageable description, not merely the smallest integral count.

Why the Formulas Work

The slice formulas follow from adding the areas of thin strips. For vertical strips, a strip at position \(x\) has height \(T(x)-B(x)\) and small width \(\Delta x\). Its approximate area is \(\bigl(T(x)-B(x)\bigr)\Delta x\). Adding these approximate areas and taking the limit as the widths shrink gives the definite integral. For horizontal strips, the strip length is \(R(y)-L(y)\), and its small thickness is \(\Delta y\), giving the corresponding horizontal formula.

$$ \sum \bigl(T(x_i^*)-B(x_i^*)\bigr)\Delta x \longrightarrow \int_a^b \bigl(T(x)-B(x)\bigr)\,dx, $$

provided the boundaries are suitably continuous on the interval. The horizontal argument is the same, using lengths \(R(y_i^*)-L(y_i^*)\) and thicknesses \(\Delta y\). This explains why the slice direction matters: the integral must use the length of the region in the direction perpendicular to the slices.

Worked Example: Vertical Slices Give One Integral

Worked Example: Vertical Slices Give One Integral

Find the area enclosed by \(y=x^2\) and \(y=2-x\), and compare the two slice orientations.

Step 1: Find the intersections. Set the two expressions for \(y\) equal:

$$ x^2=2-x \quad\Longrightarrow\quad x^2+x-2=0 \quad\Longrightarrow\quad (x+2)(x-1)=0. $$

Thus \(x=-2\) and \(x=1\). Substitution gives intersection points \((-2,4)\) and \((1,1)\).

Step 2: Check the vertical boundaries. At \(x=0\), the line has value \(2\) and the parabola has value \(0\), so the line is above the parabola. The curves meet only at the two endpoints of this region, so the vertical-slice setup uses one integral:

$$ A=\int_{-2}^{1}\bigl((2-x)-x^2\bigr)\,dx. $$

Step 3: Evaluate.

$$ \begin{aligned} A &=\int_{-2}^{1}(2-x-x^2)\,dx\\ &=\left[2x-\frac{x^2}{2}-\frac{x^3}{3}\right]_{-2}^{1}\\ &=\left(2-\frac12-\frac13\right) -\left(-4-2+\frac83\right)\\ &=\frac76-\left(-\frac{10}{3}\right)\\ &=\frac76+\frac{20}{6} =\frac{27}{6} =\frac92. \end{aligned} $$

Step 4: Compare horizontal slices. The parabola can be written as \(x=-\sqrt y\) on its left branch and \(x=\sqrt y\) on its right branch. The line becomes \(x=2-y\). For \(0\le y\le1\), a horizontal slice runs from \(-\sqrt y\) to \(\sqrt y\). For \(1\le y\le4\), it runs from \(-\sqrt y\) to \(2-y\). The right edge changes at \(y=1\), so this description requires two integrals:

$$ \begin{aligned} A &=\int_0^1\bigl(\sqrt y-(-\sqrt y)\bigr)\,dy +\int_1^4\bigl((2-y)-(-\sqrt y)\bigr)\,dy\\ &=\int_0^1 2\sqrt y\,dy +\int_1^4(2-y+\sqrt y)\,dy\\ &=\left[\frac43 y^{3/2}\right]_0^1 +\left[2y-\frac{y^2}{2}+\frac23 y^{3/2}\right]_1^4\\ &=\frac43+\left(\frac{16}{3}-\frac{13}{6}\right)\\ &=\frac{8}{6}+\frac{19}{6} =\frac{27}{6} =\frac92. \end{aligned} $$

The two setups agree, but vertical slices are more efficient here because they use one integral instead of two. The intersection check also confirms that the horizontal change occurs at \(y=1\): the two possible right edges satisfy \(\sqrt y=2-y\) there.

Worked Example: Horizontal Slices Give One Integral

Worked Example: Horizontal Slices Give One Integral

Find the area enclosed by \(x=y^2\) and \(x=2-y\), then compare vertical and horizontal descriptions.

Step 1: Find the intersections.

$$ y^2=2-y \quad\Longrightarrow\quad y^2+y-2=0 \quad\Longrightarrow\quad (y+2)(y-1)=0. $$

Thus \(y=-2\) and \(y=1\). The corresponding points are \((4,-2)\) and \((1,1)\). At \(y=0\), the boundaries are \(x=0\) and \(x=2\), so the parabola is the left edge and the line is the right edge. Each horizontal slice across the region is one continuous interval:

$$ A=\int_{-2}^{1}\bigl((2-y)-y^2\bigr)\,dy. $$

Step 2: Evaluate the horizontal setup.

$$ \begin{aligned} A &=\int_{-2}^{1}(2-y-y^2)\,dy\\ &=\left[2y-\frac{y^2}{2}-\frac{y^3}{3}\right]_{-2}^{1}\\ &=\left(2-\frac12-\frac13\right) -\left(-4-2+\frac83\right)\\ &=\frac76+\frac{20}{6} =\frac92. \end{aligned} $$

Step 3: Compare vertical slices. Rewriting the boundaries gives \(y=\pm\sqrt x\) for \(x=y^2\), and \(y=2-x\) for \(x=2-y\). The region runs from \(x=0\) to \(x=4\). For \(0\le x\le1\), the top edge is \(\sqrt x\); for \(1\le x\le4\), the top edge is \(2-x\). The bottom edge is \(-\sqrt x\) throughout. Therefore vertical slices need two integrals:

$$ \begin{aligned} A &=\int_0^1\bigl(\sqrt x-(-\sqrt x)\bigr)\,dx +\int_1^4\bigl((2-x)-(-\sqrt x)\bigr)\,dx\\ &=\left[\frac43 x^{3/2}\right]_0^1 +\left[2x-\frac{x^2}{2}+\frac23 x^{3/2}\right]_1^4\\ &=\frac43+\left(\frac{16}{3}-\frac{13}{6}\right)\\ &=\frac{8}{6}+\frac{19}{6} =\frac92. \end{aligned} $$

Horizontal slices give the shorter setup. The check is consistent with the first example: the equations and enclosed region have the same area after exchanging the roles of \(x\) and \(y\).

Worked Example: Both Orientations Are Simple

Worked Example: Both Orientations Are Simple

Find the area between \(y=x^2\) and \(y=\sqrt x\) in the first quadrant. This region illustrates why both orientations should be checked rather than choosing by habit.

The intersections satisfy \(x^2=\sqrt x\), with \(x\ge0\). Squaring gives \(x^4=x\), or \(x(x^3-1)=0\), so \(x=0\) or \(x=1\). On \(0<x<1\), \(\sqrt x>x^2\).

Using vertical slices:

$$ \begin{aligned} A &=\int_0^1(\sqrt x-x^2)\,dx\\ &=\left[\frac23x^{3/2}-\frac{x^3}{3}\right]_0^1\\ &=\frac23-\frac13 =\frac13. \end{aligned} $$

Using horizontal slices: Inverting the boundary equations gives \(x=\sqrt y\) from \(y=x^2\), and \(x=y^2\) from \(y=\sqrt x\). For \(0\le y\le1\), \(y^2\) is the left edge and \(\sqrt y\) is the right edge:

$$ \begin{aligned} A &=\int_0^1(\sqrt y-y^2)\,dy\\ &=\left[\frac23y^{3/2}-\frac{y^3}{3}\right]_0^1\\ &=\frac23-\frac13 =\frac13. \end{aligned} $$

The two calculations agree. Here neither orientation reduces the number of integrals; either is valid, and the vertical setup uses the original equations directly. As a check, differentiating the antiderivative gives \(\frac23\cdot\frac32\sqrt x-x^2=\sqrt x-x^2\), as required.

A Common Mistake: Keeping the Wrong Edge

In the first example, it would be incorrect to use the parabola’s two branches as the left and right edges for every horizontal slice from \(y=0\) to \(y=4\). That mistake gives

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

This is not the area of the enclosed region. Above \(y=1\), the line \(x=2-y\) cuts off the part to the right of the region, so \(\sqrt y\) is no longer the right edge. The incorrect setup includes points outside the enclosure. The correction is to use \(\sqrt y\) only from \(y=0\) to \(y=1\), then use \(2-y\) from \(y=1\) to \(y=4\). This gives \(9/2\), as verified in the first example.

Check before integrating: A curve can be part of the boundary without being the boundary of every slice. Test the proposed edges across the full interval, not only at one convenient point.

Choosing Efficiently

When the region is drawn or described, sketching a few representative slices is often enough to reveal the better orientation. A reliable choice balances geometry and algebra:

  • Prefer the direction in which slices stay connected across the largest interval.
  • Count where the identity of a slice’s edge changes; each change may require a new integral.
  • Check that the boundary equations are solved for the correct variable.
  • Use a test value inside each proposed range to confirm which edge is left, right, top, or bottom.
  • Compare the resulting integrands and bounds, not just the appearance of the original equations.

For an area problem, the final integral must add positive slice lengths: top minus bottom for \(dx\), or right minus left for \(dy\). If a proposed difference is negative at an interior test value, either the edge order or the boundary identification is wrong.

Check Your Understanding

For each question, focus on whether the proposed slice direction gives a valid and efficient description.

  1. For the region enclosed by \(y=x^2\) and \(y=2-x\), how many integrals are needed with vertical slices? How many with horizontal slices?
  2. For \(x=y^2\) and \(x=2-y\), which orientation gives one integral, and what are its \(y\)-bounds?
  3. What must be checked before using a single top-minus-bottom integral over an \(x\)-interval?
  4. In the region between \(y=x^2\) and \(y=\sqrt x\) on \(0\le x\le1\), write the horizontal-slice integrand.
  5. Why is a correct boundary equation not necessarily the correct edge for every slice in the region?

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