Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 8 of 20

Metric spaces and neighborhoods

Test distance axioms and build open balls without assuming Euclidean coordinates.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

Distance need not mean straight-line length in a drawing. On R², Euclidean distance uses a square root of summed squares, while taxicab distance adds absolute coordinate changes. Between (0,0) and (1,1), these distances are √2 and 2. Both support sensible neighborhoods and convergence, but their unit balls have different shapes. The common structure is expressed by the metric axioms.

Predict

Predict which familiar properties are indispensable. A metric d(x,y) must be nonnegative, vanish exactly when x=y, be symmetric and satisfy d(x,z)≤d(x,y)+d(y,z). Squared Euclidean distance fails the last condition: between zero and two on R its value is four, exceeding the sum one plus one through the intermediate point one. A visually plausible dissimilarity is not automatically a metric.

Experiment

Compare standard balls centered at zero in R².

MetricUnit ball conditionShape
Euclideanx²+y²<1Disk
Taxicab|x|+|y|<1Diamond
Maximummax(|x|,|y|)<1Axis-aligned square

Sketch all three with equal coordinate scales. The table supplies exact inequalities; the sketch illustrates them. A discrete metric on an arbitrary set gives another behavior: a ball of radius less than or equal to one contains only its center, regardless of any surrounding picture.

Understand

For the discrete metric, define distance zero for equal points and one otherwise. The triangle inequality holds because if x≠z, at least one of x≠y or y≠z must hold, so the two-step distance is at least one. The other axioms follow directly. This example shows that metric spaces can be sets without vector addition, slopes or line segments.

An open ball B(a,r) consists of points x with d(a,x)<r. Every such ball is open. For x inside it, choose ε=r−d(a,x)>0. If d(x,y)<ε, the triangle inequality gives d(a,y)<r. Thus a neighborhood around each member stays inside the ball. Arbitrary unions and finite intersections of open sets follow by the same neighborhood logic used on R, without any coordinate formulas.

Apply

A subset inherits the ambient metric. Its open sets are intersections with ambient open sets, but need not be open in the larger space. For example, [0,1) is open relative to [0,2] because it is the intersection with (−1,1); it is not open in R because every neighborhood of zero contains negative points.

Repair “different distance values always mean different open sets.” On R², ||v||∞≤||v||₂≤√2||v||∞. These inequalities let each metric ball contain a suitable ball of the other metric, so they generate the same topology. They do not assign the same distances or necessarily the same numerical Lipschitz constants.

Continue

Optional depth distinguishes metric structure from topology. Open sets determine continuity and convergence, but quantitative bounds may depend on the particular metric. Later examples will show that completeness can change when a metric is replaced by another giving the same open sets.

Save a full verification of one non-Euclidean metric and a failed triangle inequality for a nonexample. Then describe a subspace neighborhood without relying on a drawing. Next, sequence and continuity arguments will be rewritten using distances, revealing which Analysis I proofs genuinely used real-number order and which used only metric axioms.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

Find the taxicab distance between (1,−2) and (4,2).

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Squared Euclidean distance is a metric on R:

Your response

Verify d(x,y)=0 if x=y and 1 otherwise is a metric on any set.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove every open ball B(a,r) in a metric space is open.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Describe why [0,1) is open in the subspace [0,2] but not in R.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Show the Euclidean and maximum metrics on R² give the same open sets.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.