Mathematical reasoning is the practice of making statements precise and justifying them with proof. The topics here build on each other: logic gives the rules, proof techniques apply them, sets, relations, and functions supply the language, cardinality measures size, and group theory studies structure.
A useful approach: Restate the claim precisely → identify hypotheses and conclusion → choose a proof technique → write each step with a reason → check that the conclusion is what was asked.
1. Logical Reasoning
A proposition is a statement that is true or false. Propositions are combined with connectives, and their truth is determined by truth tables.
Connective
Symbol
Meaning
Negation
“not ”
Conjunction
true only when both are true
Disjunction
true when at least one is true
Implication
false only when is true and is false
Biconditional
true when and have the same truth value
Key Equivalences
Quantifiers
means “for all , ”. means “there exists an with ”. To negate, flip each quantifier and negate the predicate: and .
Example: Negate “For every there exists such that implies .”
Step 1: Write it symbolically.
Step 2: Flip quantifiers and negate the implication, using .
Conclusion: There is some such that for every some with has .
An implication with a false hypothesis is always true (vacuously). “If then the moon is cheese” is a true statement.
Practice: Write the contrapositive and the negation of “If is even, then is even.”
Contrapositive: if is odd, then is odd. Negation: is even and is odd.
Practice: Is a tautology?
Yes. It fails only if is true and is false; then either is true (so is false) or is false (so is false). Either way the hypothesis fails. This is the hypothetical syllogism.
2. Proof Techniques
Technique
Idea
Use When
Direct proof
Assume , derive step by step
Hypotheses give something to compute with
Contrapositive
Assume , derive
The conclusion is easier to negate than to build
Contradiction
Assume the claim is false and reach an absurdity
Proving non-existence or irrationality
Cases
Split into exhaustive cases and prove each
Parity, signs, residues
Induction
Prove a base case and
Statements about all
Counterexample
Exhibit one case where it fails
Disproving a “for all” claim
Example (induction): Prove that for all .
Step 1 (base): For , the left side is and the right side is .
Step 2 (hypothesis): Assume .
Step 3 (step): Add to both sides.
Conclusion: This is the formula for , so it holds for all .
Example (contradiction): is irrational.
Step 1: Suppose in lowest terms. Then , so is even, hence is even, say .
Step 2: Then , so , and is even too.
Conclusion: Both and are even, contradicting lowest terms. So is irrational.
In induction, always say where the inductive hypothesis is used. A proof that never uses it is suspicious.
Practice: Prove by induction that for all .
Base: . Step: if , then since .
Practice: Disprove: “For every integer , is prime.”
Counterexample : , which is composite.
3. Sets
A set is a collection of distinct objects. Write for membership and when every element of is in . Two sets are equal when each is a subset of the other.
Operation
Notation
Definition
Union
Intersection
Difference
Complement
Cartesian product
Power set
the set of all subsets of
Example: Prove .
Step 1: Let . Then .
Step 2: So and , meaning and .
Conclusion: . The reverse inclusion follows by reversing the steps.
To prove , show and . To prove , take an arbitrary element of and show it lies in .
Practice: If , how many elements are in and in ?
, and .
Practice: In a class of 30, 18 take French and 15 take Spanish, and 5 take neither. How many take both?
25 take at least one, so , giving .
4. The Integers and Modular Arithmetic
Division algorithm: for integers and there are unique , with and . We write if .
Congruence: means . Congruence respects addition and multiplication, so you may reduce at every step.
Greatest Common Divisor
The Euclidean algorithm uses . Working backwards gives Bézout’s identity: for some integers , . Moreover, has an inverse modulo exactly when .
Example: Find the inverse of modulo .
Step 1: Euclid: , , . So and the inverse exists.
Step 2: Back-substitute.
Conclusion: is the inverse. Check: .
Example: Compute .
Step 1: By Fermat, .
Step 2: , so .
Conclusion: .
Fermat: if is prime and , then . A prime has no non-trivial divisors, so every non-zero residue mod p has an inverse.
Practice: Solve .
, so . Then .
Practice: Does have a solution?
, which does not divide , so there is no solution.
5. Relations
A relation on a set is a subset of . Write for .
Property
Condition
Reflexive
Symmetric
Antisymmetric
Transitive
An equivalence relation is reflexive, symmetric, and transitive. It splits into disjoint equivalence classes . A partial order is reflexive, antisymmetric, and transitive.
Example: Show that congruence mod is an equivalence relation on .
Reflexive: is divisible by .
Symmetric: if then .
Transitive: if and , then since the sum is .
Conclusion: There are exactly three classes: , , .
Equivalence relations and partitions are the same thing viewed two ways. Divisibility on positive integers and on sets are standard partial orders.
Practice: On , let . Which properties hold?
Not reflexive ( missing), not symmetric ( without ), not transitive ( force ). It is antisymmetric.
6. Functions
A function assigns to each exactly one . is the domain, the codomain, and the range.
Type
Condition
Meaning
Injective
no two inputs share an output
Surjective
every element of B is hit
Bijective
both
a perfect pairing; has an inverse
The composition is . Compositions of injections are injective, and compositions of surjections are surjective.
Example: Classify , .
Injective: gives .
Surjective? is always odd, so is never hit.
Conclusion: is injective but not surjective. On it would be a bijection with .
Domain and codomain matter: is not injective on , but it is injective on .
Practice: Is , a bijection?
Yes. It is strictly increasing (so injective), and every has a real cube root (so surjective). The inverse is .
Practice: If is injective, must be injective?
Yes. If , then , so . ( need not be injective.)
7. Cardinality
Sets and have the same cardinality, , if there is a bijection . We write if there is an injection .
A set is finite if it is in bijection with for some . Infinite sets can be matched with proper subsets of themselves, which no finite set can do.
Example: Show .
Step 1: Define .
Step 2: It is injective () and surjective (every even number is ).
Conclusion: has the same size as a proper subset of itself.
Cantor’s theorem: for every set . So there is no largest infinity.
Practice: Why is ?
The map is a bijection from onto .
8. Countable and Uncountable Sets
A set is countably infinite if it is in bijection with , and countable if it is finite or countably infinite. Otherwise it is uncountable.
Set
Status
Why
countable
list
countable
list along diagonals
countable
injects into
Countable union of countable sets
countable
same diagonal listing
uncountable
Cantor’s diagonal argument
uncountable
Cantor’s theorem
Example (diagonal argument): is uncountable.
Step 1: Suppose is a complete list, written in decimals.
Step 2: Build whose th digit is unless the th digit of is , in which case use . (Avoiding and prevents double representations.)
Conclusion: differs from every in the th digit, so is not on the list. No list is complete.
Consequently the real numbers cannot be listed, but the algebraic numbers can. Hence “most” real numbers are transcendental.
Practice: Is the set of all finite strings over countable?
Yes. For each length there are strings, a finite set. A countable union of finite sets is countable. (List by length, then alphabetically.)
9. Elements of Algebra and Group Theory
A group is a set with an operation satisfying: closure; associativity; an identity with ; and an inverse for each with . It is abelian if .
Structure
Group?
Reason
Yes
identity , inverse
No
has no integer inverse
Yes
addition mod
Yes
units: with
Yes
composition; non-abelian for
Subgroups, Order, and Lagrange
A subset is a subgroup if it is itself a group under the same operation. The order of an element is the smallest with . A group generated by one element is cyclic.
Example: Find the order of every element of .
Step 1: The order of is the smallest with .
Step 2: has order ; and have order ; and have order ; has order .
Conclusion: is cyclic, generated by (or ). All element orders divide , as Lagrange predicts.
Identities and inverses are unique. Also, : the order reverses, just as when taking off shoes and socks.
Practice: Show that is not a group.
Closure fails: , which is not in the set. (Also has no inverse because .)
Practice: Show that is cyclic.
Powers of mod : . These are all four elements, so is a generator.
Key Takeaways
Logic: an implication is equivalent to its contrapositive; negate quantifiers by flipping them.
Choose a proof technique to match the statement: induction for “all n”, contradiction for impossibility, one counterexample to disprove “for all”.
To show set equality, prove both inclusions.
has an inverse mod exactly when ; reduce at every step.
Equivalence relations correspond to partitions; check reflexive, symmetric, transitive.
A bijection is both injective and surjective, and exactly those functions have inverses.
, , and are countable; and are not (diagonal argument).
A group needs closure, associativity, identity, and inverses; subgroup orders divide the group order.