Solve and checkLesson 17 of 48 · 7 min

Solve an inequality as a region

Read an inequality solution as intervals with explicit endpoints.

Maths refresher: Intervals and strict boundaries

An interval contains a range of real numbers. A strict inequality excludes equality at its boundary.

x2<4⟺−2<x<2x^2<4\quad\Longleftrightarrow\quad -2<x<2
Worked example

Combining x2<4x^2<4 with x≥1x\ge1 gives 1≤x<21\le x<2. The value 2 is excluded, while 1 is included.

Maths prerequisite map ↗

An inequality describes a region, not usually a list of isolated roots. Its boundary depends on whether equality is included. Multiplying an inequality by an expression of unknown sign can reverse or invalidate a hand calculation.

See the mathematics
01234
01234
1≤x<31\le x<3
Starter reference. A filled endpoint includes 1; an open endpoint excludes 3. The result is the intersection of both original inequalities.

reduce_inequalities can reduce suitable one-variable inequalities to logical conditions. The example combines a strict quadratic condition with a non-strict lower bound. Read the intersection of both requirements rather than treating the outputs as alternatives.

The real number line is the domain here. Test boundary points deliberately: x=1x=1 satisfies both conditions, while x=3x=3 fails the strict quadratic condition. Later, changing a strict sign changes which endpoints belong.

Does x2<9x^2<9 include either endpoint -3 or 3?

Write a prediction (optional)

Exact symbolic investigation

Select Run Python with the code unchanged.

Tools
About Python

Python and the course packages can load while you read. Each run starts with fresh user variables; imported modules stay loaded. Stop replaces the worker. Runtime details ↗

Ctrl+Enter or ⌘+Enter runs Python.

Compare with the worked example

Executed from the published Python during the site build. Your own run appears above. Build environment ↗

Permitted region
1≤x∧x<31 \leq x \wedge x < 3
At 1
True\text{True}
At 3
False\text{False}
Worked text output
Permitted region: (1 <= x) & (x < 3)
At 1: True
At 3: False

Read the starter result

Read Permitted region as simultaneous conditions on real x. Check At 1 and At 3 to confirm which endpoints belong.

Edit and compare

In reduce_inequalities, replace x**2<9 with x**2<=9. Select Run Python. Compare Permitted region and At 3 with the first run. Which boundary changed?

Return to the editor

Scope. This lesson covers supported univariate real inequalities; coupled multivariate inequality systems require other methods.

Try a fresh case

What region satisfies x2<4x^2<4 together with x≥1x\ge1?

Choose an answer
Need a hint?
Hint 1

Intersect the two permitted regions.

Hint 2

Check each endpoint separately.

Your notesNotes save in this browser when storage is available.