Find a region swept by a moving line: slices and inverse membership

Original publication: Updated:

Two ways to describe a moving region

When a curve moves with a parameter, the region it sweeps out is the union of all its positions. You can find that union from either direction:

  • Slices: fix an xx-coordinate and find every possible yy-coordinate there.
  • Inverse membership: fix a candidate point (x,y)(x,y) and ask whether at least one allowed parameter makes the curve pass through it.

In Japanese entrance-exam mathematics these are often called the direct-image and inverse-image methods. The names describe the direction of the reasoning. Here we will use “slicing” and “membership” to make the operations explicit.

Both are ways of answering the same question:

Does there exist an allowed parameter that reaches this point?\text{Does there exist an allowed parameter that reaches this point?}

A moving-line problem

Problem. As the real parameter aa varies over −1≤a≤3-1\le a\le3, find the region swept out by the line

y=(a−1)x+a2.y=(a-1)x+a^2.

The word “region” is important. We need every point lying on at least one of these lines, not merely their intersections or an envelope curve.

Animation of the moving line over the region bounded by two lines and a parabolic segment.

Method 1: find the vertical slices

Fix x and vary the parameter

For a fixed real xx, regard the height as a function of aa:

y=gx(a)=a2+xa−x=(a+x2)2−x24−x,−1≤a≤3.y=g_x(a)=a^2+xa-x=\left(a+\frac x2\right)^2-\frac{x^2}4-x,\qquad-1\le a\le3.

This is an upward-opening parabola in the variable aa. Its endpoint values are

gx(−1)=1−2x,gx(3)=9+2x,g_x(-1)=1-2x,\qquad g_x(3)=9+2x,

and its vertex occurs at a=−x/2a=-x/2.

The parameter interval is closed, so the maximum and minimum are attained. Also, gxg_x is continuous: as aa varies between two values, every intermediate height is reached. Thus the vertical slice is the entire interval between the minimum and maximum, with no gaps.

Find the lower boundary

There are three cases, depending on the vertex location:

  • If x<−6x<-6, then −x/2>3-x/2>3. The minimum on the allowed interval is at a=3a=3, giving 9+2x9+2x.
  • If −6≤x≤2-6\le x\le2, the vertex lies in [−1,3][-1,3]. The minimum is −x2/4−x-x^2/4-x.
  • If x>2x>2, then −x/2<−1-x/2<-1. The minimum is at a=−1a=-1, giving 1−2x1-2x.

Therefore

L(x)={9+2x,x<−6,−x2/4−x,−6≤x≤2,1−2x,x>2.L(x)=\begin{cases}9+2x,&x<-6,\\-x^2/4-x,&-6\le x\le2,\\1-2x,&x>2.\end{cases}

Find the upper boundary

An upward-opening quadratic reaches its maximum on a closed interval at an endpoint. Compare the two endpoint values:

gx(3)−gx(−1)=8+4x.g_x(3)-g_x(-1)=8+4x.

They are equal at x=−2x=-2. Hence

U(x)={1−2x,x≤−2,9+2x,x≥−2.U(x)=\begin{cases}1-2x,&x\le-2,\\9+2x,&x\ge-2.\end{cases}

At x=−2x=-2, both expressions give the same value, so their overlapping conditions cause no ambiguity.

State the complete region

The required region is

L(x)≤y≤U(x),x∈R.\boxed{L(x)\le y\le U(x),\qquad x\in\mathbb R.}

Equivalently, split it into four ranges:

  • x≤−6x\le-6: 9+2x≤y≤1−2x9+2x\le y\le1-2x.
  • −6≤x≤−2-6\le x\le-2: −x2/4−x≤y≤1−2x-x^2/4-x\le y\le1-2x.
  • −2≤x≤2-2\le x\le2: −x2/4−x≤y≤9+2x-x^2/4-x\le y\le9+2x.
  • x≥2x\ge2: 1−2x≤y≤9+2x1-2x\le y\le9+2x.

Every boundary is included. The endpoint lines correspond to allowed values a=−1a=-1 and a=3a=3, and the parabolic boundary is reached at a=−x/2a=-x/2 when that value is allowed.

The complete swept region shaded between its upper boundary and its piecewise lower boundary, with transitions at x=-6, -2, and 2.

Visualize two slices

At x=−3x=-3, the minimum occurs at a=3/2a=3/2:

L(−3)=34,U(−3)=7.L(-3)=\frac34,\qquad U(-3)=7.

So the slice is 3/4≤y≤73/4\le y\le7.

Animation with the vertical line x=-3 fixed, showing the moving intersection tracing a vertical interval.

At x=0x=0, the height is simply a2a^2. Its range for −1≤a≤3-1\le a\le3 is 0≤y≤90\le y\le9.

Animation with x=0 fixed, where the intersection height varies from 0 to 9.

A moving line is unbounded, so these slices exist for every real xx. The closed parameter interval does not make the swept region bounded in the plane.

Method 2: test whether a point can be reached

Regard the equation as an equation for a

Fix a candidate point (x,y)(x,y). It belongs to the swept region exactly when

a2+xa−(x+y)=0a^2+xa-(x+y)=0

has at least one root in [−1,3][-1,3].

The discriminant alone is insufficient: it only tells us whether real parameter values exist, not whether they are allowed.

Derive the membership conditions

Set

f(a)=a2+xa−(x+y).f(a)=a^2+xa-(x+y).

The endpoint values, vertex, and discriminant are

f(−1)=1−2x−y,f(3)=9+2x−y,f(-1)=1-2x-y,\qquad f(3)=9+2x-y, avertex=−x2,D=x2+4(x+y).a_{\mathrm{vertex}}=-\frac x2,\qquad D=x^2+4(x+y).

Because this quadratic opens upward, a root lies in [−1,3][-1,3] if either of the following holds:

  1. The endpoint values have opposite signs, or one is zero:
f(−1)f(3)≤0.f(-1)f(3)\le0.
  1. Both endpoint values are nonnegative, the vertex lies within the interval, and the minimum value is nonpositive:
f(−1)≥0,f(3)≥0,−1≤−x2≤3,D≥0.f(-1)\ge0,\quad f(3)\ge0,\quad-1\le-\frac x2\le3,\quad D\ge0.

The second case includes tangency. If both endpoint values are negative, convexity puts the entire graph below zero between them, so there is no root in the interval.

Substitution gives the complete membership condition:

(1−2x−y)(9+2x−y)≤0(1-2x-y)(9+2x-y)\le0

or all four conditions

−6≤x≤2,y≥−x24−x,y≤1−2x,y≤9+2x.-6\le x\le2,\quad y\ge-\frac{x^2}4-x,\quad y\le1-2x,\quad y\le9+2x.

The first condition fills the strip between the two endpoint lines. The second fills the additional portion above the parabolic envelope where the vertex parameter is allowed. Together they describe exactly the same region as the slicing answer.

Check a point inside the region

For (x,y)=(4,8)(x,y)=(4,8), the parameter equation becomes

a2+4a−12=0⟺a=2 or −6.a^2+4a-12=0\quad\Longleftrightarrow\quad a=2\text{ or }-6.

The value a=2a=2 lies in the allowed interval, so the point is reached. We need one allowed parameter, not every algebraic solution to be allowed.

Animation showing the moving line passing through the point (4,8).

For comparison, (x,y)=(−2,10)(x,y)=(-2,10) gives

a2−2a−8=0⟺a=−2 or 4.a^2-2a-8=0\quad\Longleftrightarrow\quad a=-2\text{ or }4.

Both values lie outside [−1,3][-1,3]. The point is not in the region, even though the discriminant is positive.

Which method should you choose?

Use slices when fixing a coordinate makes the remaining range calculation simple. Here it produces a quadratic on a closed interval, so its vertex and endpoints provide everything we need. The answer also comes directly in a form that is easy to draw.

Use inverse membership when solving for the parameter, or checking existence in its domain, is simpler. Here it reduces to locating the roots of a quadratic on an interval.

These are guidelines rather than restrictions. Inverse membership does not stop being valid for a cubic, a non-polynomial expression, or two asymmetric parameters. Its usefulness depends on whether you can solve the resulting existence problem. Likewise, slicing is a general viewpoint, but a complicated or discontinuous parameter map may produce multiple disjoint intervals rather than one interval between a minimum and maximum.

For example, if the allowed parameter were only a=−1a=-1 or a=3a=3, the two endpoint heights would usually be the only heights reached at a fixed xx. Filling everything between them would be wrong. Continuity over the full interval is what justifies doing so in our problem.

A two-parameter extension: midpoint of two moving points

Let

P=(s,s2+1),Q=(t,t2−1),−1≤s,t≤1.P=(s,s^2+1),\qquad Q=(t,t^2-1),\qquad-1\le s,t\le1.

Find the region traced by their midpoint M=(x,y)M=(x,y). The midpoint equations are

x=s+t2,y=s2+t22.x=\frac{s+t}2,\qquad y=\frac{s^2+t^2}2.

Write s=x+ds=x+d and t=x−dt=x-d. Then

y=x2+d2.y=x^2+d^2.

The two parameter restrictions are equivalent to

∣x∣≤1,∣d∣≤1−∣x∣.|x|\le1,\qquad |d|\le1-|x|.

Therefore

−1≤x≤1,x2≤y≤x2+(1−∣x∣)2.\boxed{-1\le x\le1,\qquad x^2\le y\le x^2+(1-|x|)^2.}

To check sufficiency, choose any point satisfying these inequalities and set d=y−x2d=\sqrt{y-x^2}. Then ∣d∣≤1−∣x∣|d|\le1-|x|, so s=x+ds=x+d and t=x−dt=x-d both lie in [−1,1][-1,1]. Those choices produce the required midpoint. This reverse construction proves that the inequalities describe the whole region.

What a complete region proof needs

A candidate boundary is only part of the answer. Show that no point outside your region is reachable, and that every point inside it is reachable. Include parameter restrictions, boundary inclusion, and any continuity argument used to fill a slice.

For the related skill of counting roots as a parameter changes, see a graphical method for parameter-dependent equations. For a transformation-based locus problem, see circle inversion in the complex plane.

Related articles

About the author

Koki Saito

Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.

Full profile →

Have a question or spotted an error? Contact us.