Tutorials › AP Calculus › Rewriting Boundaries as Functions of y

Area Between Curves · Tutorial 641 of 999

Rewriting Boundaries as Functions of y

Rewrite each boundary in terms of \(y\), then use the region’s location to select the correct left and right branches.

Intermediate 10 min read

What You'll Learn

  • Solve common curve equations for \(x\) as a function of \(y\).
  • Recognize when an equation gives more than one possible branch.
  • Restrict branches to the \(y\)-interval occupied by the region.
  • Identify the left and right boundaries of a horizontal slice.
  • Set up and evaluate horizontal-slice area integrals.
  • Check branch choices and area results using the region’s geometry.

Why Rewriting Boundaries Takes Care

A horizontal slice has a fixed \(y\)-coordinate and extends from a left boundary to a right boundary. To describe its width, the boundary equations must give \(x\) in terms of \(y\). But solving an equation for \(x\) can produce multiple answers, and not every answer belongs to the region being measured.

The essential task is therefore twofold: rewrite each boundary as one or more functions of \(y\), then use the region’s location to decide which branch supplies each edge of the slice. A correct algebraic solution is not automatically the correct boundary.

Key idea: For a horizontal slice at height \(y\), the area integrand is the right \(x\)-coordinate minus the left \(x\)-coordinate. The selected expressions must describe the actual edges of the region throughout the stated \(y\)-interval.

Solving for \(x\) and Restricting the Branch

Suppose a curve is given by an equation involving \(x\) and \(y\). To use it as a horizontal boundary, solve the equation for \(x\). For instance, \(y=x^2\) gives \(x=\pm\sqrt{y}\) when \(y\geq 0\). These two expressions describe different parts of the same curve: \(x=\sqrt{y}\) is its right branch, while \(x=-\sqrt{y}\) is its left branch.

More generally, solving an equation may not produce a single function on the whole curve. If the curve doubles back in the horizontal direction, it may need to be described by separate branches. The region determines which branch applies: inspect a horizontal slice and ask which point on the curve is its left endpoint and which is its right endpoint.

Definition: A branch of a curve written in the form \(x=g(y)\) is one of the \(x\)-values specified by solving the curve equation for \(x\), restricted to a \(y\)-interval where it describes one continuous part of the curve. A branch is relevant to an area integral only if it forms the boundary of the region on that interval.

For a region whose horizontal slice at each height \(y\) runs from \(x_L(y)\) to \(x_R(y)\), with \(x_L(y)\leq x_R(y)\), its area is found by integrating the width \(x_R(y)-x_L(y)\) over the region’s vertical extent. This is the horizontal-slice area formula. The work in this tutorial is identifying the correct functions for those two boundaries.

A Reliable Branch-Selection Process

1
Solve the boundary equation for \(x\).
Keep every algebraic branch that can describe the curve; do not discard a sign before checking the region.
2
Find the relevant \(y\)-interval.
Use the region’s endpoints, intersections, and other horizontal boundaries to determine the heights covered.
3
Locate the slice endpoints.
At a representative height, identify which boundary lies to the left and which lies to the right. Confirm the ordering throughout the interval.
4
Write right minus left.
Use the selected \(x\)-expressions in that order, then integrate over the \(y\)-interval.

Worked Examples

Worked Example: A Parabola and a Vertical Line

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

The parabolic boundary is already expressed as \(x=y^2\). The two curves meet when \(y^2=4\), so \(y=-2\) or \(y=2\). For each \(y\) between these values, \(y^2\leq 4\). Thus the parabola is the left boundary and the line is the right boundary.

$$ A=\int_{-2}^{2}\left(4-y^2\right)\,dy $$

An antiderivative is \(4y-\frac{y^3}{3}\), since its derivative is \(4-y^2\). Therefore,

$$ \begin{aligned} A &=\left[4y-\frac{y^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}. \end{aligned} $$

The result is positive, as an area must be. As a check, describe the same region using vertical slices: for \(0\leq x\leq 4\), the parabola has \(y\)-values from \(-\sqrt{x}\) to \(\sqrt{x}\). Its vertical-slice area is

$$ \int_0^4\left(\sqrt{x}-(-\sqrt{x})\right)\,dx =\int_0^4 2\sqrt{x}\,dx =\left[\frac{4}{3}x^{3/2}\right]_0^4 =\frac{32}{3}. $$

This agrees with the horizontal-slice result.

Worked Example: Choosing Both Branches of a Parabola

Find the area enclosed by \(y=x^2\) and the horizontal line \(y=2\), using horizontal slices.

Solving \(y=x^2\) for \(x\) gives \(x=\pm\sqrt{y}\). The region extends from \(y=0\), where the parabola meets itself at its vertex, to \(y=2\). At any height in this interval, the left edge is the negative solution and the right edge is the positive solution:

$$ x_L(y)=-\sqrt{y}, \qquad x_R(y)=\sqrt{y}, \qquad 0\leq y\leq 2. $$

Consequently, the width is \(\sqrt{y}-(-\sqrt{y})=2\sqrt{y}\), not zero. Integrating,

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

The antiderivative checks because \(\frac{d}{dy}\left(\frac{4}{3}y^{3/2}\right)=2\sqrt{y}\) for \(y>0\). A second check uses vertical slices: \(x\) ranges from \(-\sqrt{2}\) to \(\sqrt{2}\), and the slice height is \(2-x^2\). Thus

$$ \begin{aligned} \int_{-\sqrt{2}}^{\sqrt{2}}(2-x^2)\,dx &=\left[2x-\frac{x^3}{3}\right]_{-\sqrt{2}}^{\sqrt{2}}\\ &=4\sqrt{2}-\frac{4\sqrt{2}}{3}\\ &=\frac{8\sqrt{2}}{3}. \end{aligned} $$

The matching values confirm that both branches were included and ordered correctly.

Worked Example: Selecting the Branch That Bounds an Enclosed Region

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

The curves intersect where \(x^2=2x\), so \(x(x-2)=0\), giving \(x=0\) and \(x=2\). Their corresponding \(y\)-coordinates are \(0\) and \(4\). Solving the parabola for \(x\) gives \(x=\pm\sqrt{y}\); solving the line gives \(x=y/2\).

The enclosed region lies to the right of the \(y\)-axis. At a height such as \(y=1\), the line gives \(x=1/2\), while the two parabola branches give \(x=-1\) and \(x=1\). The enclosed part runs from the line at \(x=1/2\) to the positive parabola branch at \(x=1\). Thus, throughout \(0\leq y\leq 4\), use \(x_L(y)=y/2\) and \(x_R(y)=\sqrt{y}\).

$$ \begin{aligned} 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-\frac{16}{4}\right)-0\\ &=\frac{16}{3}-4\\ &=\frac{4}{3}. \end{aligned} $$

The antiderivative is valid because its derivative is \(\sqrt{y}-y/2\). To check the area independently, vertical slices run from \(y=x^2\) to \(y=2x\) for \(0\leq x\leq2\):

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

The negative square-root branch is part of the full parabola, but it is not part of this enclosed region. Including it would describe a different slice.

Why the Branch Check Works

At a fixed height \(y\), points on a horizontal slice have the same \(y\)-coordinate and different \(x\)-coordinates. The left edge is the smallest \(x\)-coordinate in the region at that height; the right edge is the largest. Therefore, once the boundary equations have been rewritten as \(x\)-values, their geometric positions determine which expressions belong in the width.

This also explains why solving an equation alone is insufficient. The equation \(y=x^2\) has two solutions for \(x\) when \(y>0\), but those solutions are not interchangeable. If the region is on the right side of the \(y\)-axis, the positive branch may bound it; if it spans both sides, the negative and positive branches may be its left and right edges. The region, not the algebraic sign convention, decides.

Branch-selection rule: For every height in the integration interval, verify that the proposed left boundary has the smaller \(x\)-coordinate and the proposed right boundary has the larger one. Then form \(x_R(y)-x_L(y)\).

Common Mistake: Keeping the Wrong Root

For the region between \(y=x^2\) and \(y=2x\), a tempting but incorrect setup is to use the negative parabola branch as the left edge and the line as the right edge:

$$ \int_0^4\left(\frac{y}{2}-(-\sqrt{y})\right)\,dy. $$

This does not describe the enclosed region. At \(y=1\), the proposed endpoints are \(x=-1\) and \(x=1/2\), but the enclosed region lies between \(x=1/2\) and \(x=1\). The negative branch is outside it. The corrected expression is

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

A useful safeguard is to test a height strictly inside the interval, not just at an intersection. Substitute that \(y\)-value into each candidate boundary and compare the resulting \(x\)-coordinates with the visible region.

What to Verify Before Integrating

  • Does each boundary expression actually solve its original curve equation?
  • Is the \(y\)-interval the full vertical extent of the region?
  • Are the chosen branches part of the enclosed region, rather than another part of the same curve?
  • Does the proposed right boundary have an \(x\)-value at least as large as the left boundary throughout the interval?
  • Does the resulting area have the expected sign and agree with the geometry?

Branch selection is not an extra algebraic trick. It is the step that connects the equations of the curves to the particular region being measured. Once that connection is correct, the horizontal-slice integrand follows as right minus left.

Check Your Understanding

For each question, identify the relevant branch or explain how you would decide which branch belongs in the area integral.

  1. Solving \(y=x^2\) gives two expressions for \(x\). What are they, and what do their signs tell you geometrically?
  2. For the region enclosed by \(y=x^2\) and \(y=2\), what are the left and right boundaries as functions of \(y\)?
  3. For \(y=x^2\) and \(y=2x\), why is the negative square-root branch not part of the enclosed region?
  4. What inequality must hold between \(x_L(y)\) and \(x_R(y)\) for the width \(x_R(y)-x_L(y)\) to be nonnegative?
  5. Why should you test a height inside the interval when choosing between algebraic branches?

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