Learning goals and definitions
Manipulate unions, intersections, complements and Cartesian products; distinguish images from inverse images; prove function properties with their quantifiers. All complements are relative to a fixed universe . Equality means and .
The union contains elements in either set; the intersection contains elements in both; contains those in but not . The power set is the set of all subsets of . The Cartesian product is the set of ordered pairs with ; in general .
For a function and subsets , , define and . The latter is defined whether or not an inverse function exists.
Theorem: inverse images preserve set operations
For ,
and .
Proof. For a point , membership in the first left side means or , exactly membership in the first right side. Replacing “or” by “and” proves the intersection identity. Membership in the complement preimage means , exactly within . Each logical equivalence establishes both inclusions at once.
Images preserve unions, but for intersections only is automatic. Indeed an output from an input in both sets lies in both images. In the reverse direction, equal outputs may have arisen from different inputs.
Theorem: injectivity and image intersections
A function is injective if and only if for every .
Proof. If is injective and lies in both images, write with . Injectivity gives , yielding the missing inclusion. Conversely, if with , take and . Their intersection is empty but the images intersect, contradicting the assumed equality. Thus no distinct inputs share an output.
Concept lensStructural
A condition on one input versus a search for a witness
Membership in an inverse image is a condition on a single input: says only . Operations on target sets therefore become “or,” “and” and “not” applied to that one condition. Membership in an image, , says that some has . Such an existential claim passes through “or” but not through “and”: the witnesses for two images need not be the same input, and injectivity is exactly what makes them coincide.
The operations defined at the start of this section can be tested on a small universe. Fix , choose the members of and , and compare , and ; the empty and full choices are the boundary cases of the definitions.
Toggle membership and read set operations
Toggle an element in either set. Read the union, intersection and directional difference of the current sets.
| U | A | B |
|---|---|---|
| 1 | ∈ A | ∉ B |
| 2 | ∈ A | ∈ B |
| 3 | ∉ A | ∈ B |
| 4 | ∈ A | ∈ B |
| 5 | ∉ A | ∉ B |
- A
- {1, 2, 4}
- B
- {2, 3, 4}
- Union
- {1, 2, 3, 4}
- Intersection
- {2, 4}
- Difference A \ B
- {1}
Holds: The intersection is contained in the union
Every element in both A and B is in at least one of A or B. The same membership checks drive the board and all three results.
NoticeA∖B keeps elements of A that are not in B; reversing A and B can change the result. {} is the empty set. The board lists the membership of every element of the universe.
Worked examples
Noninjectivity is visible in a set identity. For on , and are disjoint, so , whereas both images are . An inverse image behaves differently: .
De Morgan with an arbitrary index set. For subsets , an element lies outside exactly when it lies in none of them, equivalently in every complement. Thus . For an empty index set, the union is empty and the intersection is , so the convention remains consistent.
Worked example 2.1.1
(Products of intersections and of unions)
Claim: for all sets .
Let be an ordered pair. Membership in the left side means and , that is
Regrouping the four conditions gives and , which is membership in the right side. Every step is an equivalence, so both inclusions hold.
The analogous statement for unions is false. Take and . Then
and the second set also contains and . Only the inclusion holds in general: the conditions “ and , or and ” cannot be regrouped coordinate by coordinate.
Worked example 2.1.2
(Elements and subsets of a power set)
Let . Its subsets are , , and , so
Decide each statement by asking whether it claims membership or inclusion.
- is true, because is one of the four listed elements.
- is false: it would require , but is a number, not a subset of .
- is true, because its only element belongs to .
- and are both true, for different reasons: the first because , the second because the empty set is a subset of every set.
Finally has elements, for example and .
Worked example 2.1.3
(Images and inverse images of an absolute value)
Let , .
An image. For , the number runs through , and its absolute value runs through (the value at , the value at ). So .
An inverse image. .
The complement rule. The theorem predicts . Directly, means (a negative value is impossible), that is or . The two computations agree.
Image followed by inverse image. , and
This contains , as always does, but it is strictly larger: the points of share their outputs with points of , because is not injective.
Counterexample mode
Images do not respect complements
Inverse images turn complements into complements. It is tempting to expect as well. For , , and , we get , so ; but . The two sides are even disjoint. Both function properties are involved: injectivity gives , since an output of a point outside cannot also be an output of a point of ; surjectivity gives the reverse inclusion, since every point of outside must be the image of something outside . So the identity holds for every exactly when is a bijection.
Quick check
(Is equal to ?)
List the ordered pairs in each product.
Solution · Answer
No. The first product is and the second is . They have no pair in common: every pair in the second has first coordinate , and no pair in the first does.
Quick check
(For , , find and .)
The function is strictly increasing, so intervals go to intervals with endpoints matched.
Solution · Answer
. For the inverse image, is equivalent to , that is , so .
Quick check
(Prove that for every and .)
Write the membership condition for a single , as in the theorem above.
Solution · Answer
For : means and . The first condition is and the second is . Together they say . Each step is an equivalence, so both inclusions hold. No injectivity or surjectivity is needed.
Graded practice
- Foundation. Prove by membership.
- Core. For , , find and .
- Core. Prove . When does equality hold for every subset ?
- Proof. Prove and deduce a characterization of surjectivity.
Full solutions
- For , means and , exactly .
- On , takes every value in , so the image is . The preimage condition is , or , giving .
- If , then , proving the inclusion. For injective , any in the right side has with , hence . Conversely equality for singleton rules out a distinct input with the same output. Thus the condition is exactly injectivity.
- Membership in the left side means for some with , exactly and . Therefore equality to for every holds exactly when , which is surjectivity (take for the reverse implication).
Summary and term definitions
An image follows outputs of a chosen input set; an inverse image collects all inputs whose outputs enter a chosen target set. A power set consists of subsets as its elements. Double inclusion proves set equality in two directions. Writing membership conditions prevents invalid cancellation of a function and exposes exactly where injectivity or surjectivity is needed.