A ride at a fair lets you on if you are at least 120 centimeters tall. A thermostat keeps a room between 19 and 22 degrees. Each rule picks out a set of numbers, and each is really an inequality. Calculus talks about such sets constantly, for example the inputs close to a point or the values a function can take, so it helps to write them down precisely from the start.
Key terms
The real number line
Definition The real number line is a straight line, usually drawn horizontally, on which one point is chosen to represent , a unit of length is fixed and the direction to the right is taken as positive. Each real number is matched with exactly one point, which lies units to the right of when and units to the left of when . Every point of the line is matched with exactly one real number. The set of all real numbers is written .
For real numbers and , the inequality means that is positive, which on the line means that lies to the left of . For any two real numbers exactly one of , and is true. The statement means that or .
In plain words Every real number has its own spot on the line, and every spot is a real number. Smaller numbers sit farther to the left.
Example Which is larger, or ? The difference
is positive, so . On the line, sits to the left of , even though is larger than .
Integers, rational numbers and irrational numbers
Definition The integers are the numbers , and their set is written . A rational number is a real number that can be written as a fraction with integers and and . Their set is written . Every integer is rational, since . A real number that is not rational is called irrational.
In decimal form, a real number is rational exactly when its decimal expansion either ends or eventually repeats the same block of digits forever. The decimal expansion of an irrational number never ends and never settles into a repeating block.
In plain words Integers are the whole numbers and their negatives. Rational numbers are fractions of integers. Irrational numbers such as and are points on the line too, but no fraction of integers equals them.
Example Here are six real numbers sorted by type.
| Number | Type | Reason |
|---|---|---|
| integer, so also rational | ||
| rational | ||
| rational | ||
| integer | ||
| irrational | is not a fraction of integers | |
| irrational | is not a fraction of integers |
In increasing order they are
Sets and membership
Definition A set is a collection of objects, called its elements. We write when is an element of , and when it is not. A small set can be given by listing its elements between braces, as in .
A set is determined by its elements alone. Two sets and are equal when every element of is an element of and every element of is an element of . So the order of a list does not matter, and writing an element twice does not add a second copy. The elements of a set are distinct, and the number of elements of a finite set counts each element once. If every element of is an element of , then is a subset of , written .
In plain words A set only knows what is in it. For any object you can ask whether it belongs to the set, and the answer is yes or no, nothing more.
Example Let . Then and . The list mentions twice, but
so has three distinct elements, not four. The set is a subset of .
The empty set and the set containing zero
Definition The empty set, written , is the set with no elements. For every object we have . The set has exactly one element, the number . Since but , the two sets are different,
The empty set is a subset of every set.
In plain words An empty box and a box holding a single zero are different boxes. The first holds nothing, and the second holds one thing that happens to be the number zero.
Example The solution set of an equation is the set of all numbers that make it true. For the only solution is , so the solution set is . For , subtracting from both sides leaves , which is false for every , so the solution set is . Saying the second equation has solution would be wrong, since .
Set-builder notation
Definition Let be a set and let be a statement about that is either true or false for each element of . Then
is the set of all elements of for which is true. The bar is read “such that”. When is clear from the context, usually , it is left out and the set is written . Some books write a colon in place of the bar, as in .
In plain words Instead of listing the elements, you state the test they must pass. The set is everything in that passes the test.
Example Take the integers as and the condition . Then
The number fails the test because is false. The same condition over the real numbers gives , which has infinitely many elements, every real number from up to but not including .
Interval notation
Definition For real numbers , the bounded intervals with endpoints and are the following sets.
| Interval notation | Set-builder notation | Endpoints included |
|---|---|---|
| neither | ||
| both | ||
| only | ||
| only |
A square bracket marks a closed endpoint, which belongs to the interval. A parenthesis marks an open endpoint, which does not. On a number line a closed endpoint is drawn as a filled dot and an open endpoint as a hollow dot. The interval is called open, is called closed, and the other two are half-open.
For real numbers and , the unbounded intervals are the following sets.
| Interval notation | Set-builder notation |
|---|---|
The symbols and are not real numbers. They only say that the interval goes on without end in that direction, so they always get a parenthesis.
In plain words An interval is an unbroken stretch of the number line. The brackets tell you what happens at the ends. A square bracket means the end is in, a round one means it is out.
Example Suppose a ride takes anyone at least 120 and less than 200 centimeters tall. The allowed heights form the interval . A height of exactly is allowed, is allowed, and is not. The set has no right end and an open left end, so it is .
Union and intersection
Definition For sets and the union and the intersection are
The word “or” is inclusive here, so an element of both sets belongs to the union. Two sets with are called disjoint.
In plain words The union collects everything that is in at least one of the sets. The intersection keeps only what the two sets share.
Example Let and . Then
Watch the endpoints. The number is in but not in , so it is not in the intersection. The number is not in but is in , so it is in the union. The intervals and are disjoint, and their union is not a single interval.
Adding and multiplying by a positive number
Definition For all real numbers , and ,
and if , then
The same rules hold with in place of . Subtracting is adding . So adding or subtracting the same number on both sides of an inequality, or multiplying or dividing both sides by the same positive number, gives an equivalent inequality, one with exactly the same solutions.
In plain words Sliding two numbers the same distance along the line, or stretching the line by a positive factor, keeps their left to right order.
Example Solve . Adding to both sides gives , and dividing by the positive number gives . The solution set is .
Multiplying by a negative number
Definition For all real numbers , and with ,
The reason is that and , so is negative. The same holds with and . So multiplying or dividing both sides of an inequality by a negative number gives an equivalent inequality only if the direction of the inequality sign is reversed.
A number is a solution exactly when it makes the original inequality true. Substituting the endpoint, one number inside the solution set and one number outside it into the original inequality is a quick check that catches a sign that was not reversed. A check like this cannot prove an answer, since it tests only a few numbers, but a single failure proves that something went wrong.
In plain words Multiplying by a negative number flips the number line around , which swaps left and right. That is why the inequality sign has to flip too.
Example Start with and multiply by . The results are and , and , so the order reversed. Now solve . Subtracting gives . Dividing by and reversing the sign gives , so the solution set is . Check in the original inequality.
| Is true | ||
|---|---|---|
| yes | ||
| yes | ||
| no |
The endpoint and the inside number pass, and the outside number fails, as they should. Had the sign not been reversed, the answer would contain , and this check would expose the mistake.
Compound inequalities
Definition A compound inequality joins two inequalities with “and” or with “or”. The solution set of an “and” statement is the intersection of the two solution sets, and the solution set of an “or” statement is their union. The chain is short for and , so for it describes the interval , and the same goes for chains with . Conditions joined by “or”, such as or , cannot be written as one chain.
In plain words “And” means both conditions must hold, so you keep the overlap. “Or” means at least one must hold, so you keep everything from both.
Example Solve . Subtract from all three parts, then divide all three by ,
The solution set is . As a check, gives , which lies in , while gives , which does not. By contrast, the statement or has the solution set .
Check yourself
- Solve and write the solution set in interval notation.
Show the answer
Subtracting from all three parts gives . Dividing by reverses both signs, so , which is . As a check, the value gives , which satisfies , and gives , which fails .
- Let and . Find and .
Show the answer
The overlap is , since is not in and is in both sets. Together the two sets cover every number below , so . The number is left out because it is in neither set.
- How many elements does each of the sets , , and have?
Show the answer
They have , , and elements. The set equals , and no integer has a negative square, so the last set is empty.