← Math — Semester A midterm

appeared in 3/10

Locus with absolute values

What it looks like on the exam

A sketch of the set of points ∣x−1∣+∣y−2∣=4|x-1|+|y-2|=4 (a rotated square), then a system with a line: when is there one solution.

📘 The lesson on this topic in the courseAbsolute value→

How to solve

A locus is the set of all points (x,y)(x,y) satisfying an equation. With absolute values, split into cases by the sign of each expression inside: in each quadrant (relative to the centre) the equation is a line, and together they form a broken shape.

∣x−a∣+∣y−b∣=r|x-a|+|y-b|=r

The most common shape: a square rotated by 45∘45^\circ (a “diamond”) centred at (a,b)(a,b) with vertices at distance rr from the centre along the axes: (a±r,b)(a\pm r,b) and (a,b±r)(a,b\pm r). The sides have slope ±1\pm1. And follow-up questions: a system with a line — how many intersection points depending on a parameter.

The method, step by step

  1. Find where the expressions inside the absolute values vanish — they split the plane into regions.

    Why: In each region the signs are known.

  2. In each region open the absolute values and get the equation of a line.

    Why: Only the part inside the region belongs to the shape.

  3. Draw all the segments and recognise the shape (a diamond, a rectangle, a pair of lines).

    Why: Vertices — where the regions meet.

  4. For a system with a line: draw the line for different parameter values.

    Why: Look for positions touching a vertex or coinciding with a side.

  5. Compute the critical parameter values by substituting the vertices into the line.

    Why: At them the number of crossings changes.

Cases you will meet

Diamond

∣x−a∣+∣y−b∣=r|x-a|+|y-b|=r: vertices (a±r,b)(a\pm r,b), (a,b±r)(a,b\pm r); area 2r22r^2; perimeter 42 r4\sqrt2\,r.

Two crossing lines

∣x−a∣=∣y−b∣|x-a|=|y-b|: y−b=±(x−a)y-b=\pm(x-a).

Rectangle / square

max⁡(∣x∣,∣y∣)=r\max(|x|,|y|)=r — an ordinary square; sometimes asked as a system of two inequalities.

A line touching the diamond at one point

A line steeper or flatter than the sides touches at one point only at a vertex. A line of slope ±1\pm1 coincides with a side (infinitely many points) or crosses at two.

Full topic in the course →
1

Fully worked example

Worked example

Sketch ∣x−1∣+∣y−2∣=4|x-1|+|y-2|=4. For which mm does the line y=2x+my=2x+m have exactly one common point with the shape?

Solution

IdeaA diamond around (1,2)(1,2); a line of slope 22 (steeper than the sides) touches at one point only at the top or bottom vertex.
  1. Vertices: (5,2)(5,2), (−3,2)(-3,2), (1,6)(1,6), (1,−2)(1,-2).

    Why: Distance 44 from the centre in each direction.

  2. A line of slope 22 through (1,6)(1,6): 6=2+m⇒m=46=2+m\Rightarrow m=4.

    Why: External contact at the top vertex.

  3. Through (1,−2)(1,-2): −2=2+m⇒m=−4-2=2+m\Rightarrow m=-4.

    Why: Contact at the bottom vertex.

  4. Answer: m=4m=4 or m=−4m=-4. Between those values — two points; outside them — none.

    Why: The line “slides” across the diamond.

Checkm=0m=0: the line passes through (1,2)(1,2), the centre — clearly it crosses at two points ✓.
Common mistakeChecking contact at the side vertices (5,2)(5,2), (−3,2)(-3,2) — there a steep line cuts through the diamond.

Practice