Math 344- Mathematical Reasoning

What Is Mathematical Reasoning?

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.

ConnectiveSymbolMeaning
Negation¬p“not p”
Conjunctionp∧qtrue only when both are true
Disjunctionp∨qtrue when at least one is true
Implicationp→qfalse only when p is true and q is false
Biconditionalp↔qtrue when p and q have the same truth value

Key Equivalences

p→q≡¬p∨q≡¬q→¬p(contrapositive)
¬(p∧q)≡¬p∨¬q·¬(p∨q)≡¬p∧¬q(De Morgan)

Quantifiers

∀xP(x) means “for all x, P(x)”. ∃xP(x) means “there exists an x with P(x)”. To negate, flip each quantifier and negate the predicate: ¬∀xP(x)≡∃x¬P(x) and ¬∃xP(x)≡∀x¬P(x).
Example: Negate “For every ε>0 there exists δ>0 such that |x|<δ implies |f(x)|<ε.”
Step 1: Write it symbolically.
∀ε∃δ∀x(|x|<δ→|f(x)|<ε)
Step 2: Flip quantifiers and negate the implication, using ¬(p→q)≡p∧¬q.
∃ε∀δ∃x(|x|<δ∧|f(x)|≥ε)

Conclusion: There is some ε>0 such that for every δ>0 some x with |x|<δ has |f(x)|≥ε.

An implication with a false hypothesis is always true (vacuously). “If 2=3 then the moon is cheese” is a true statement.
Practice: Write the contrapositive and the negation of “If n2 is even, then n is even.”

Contrapositive: if n is odd, then n2 is odd. Negation: n2 is even and n is odd.
Practice: Is (p→q)∧(q→r)→(p→r) a tautology?

Yes. It fails only if p is true and r is false; then either q is true (so q→r is false) or q is false (so p→q is false). Either way the hypothesis fails. This is the hypothetical syllogism.

2. Proof Techniques

TechniqueIdeaUse When
Direct proofAssume p, derive q step by stepHypotheses give something to compute with
ContrapositiveAssume ¬q, derive ¬pThe conclusion is easier to negate than to build
ContradictionAssume the claim is false and reach an absurdityProving non-existence or irrationality
CasesSplit into exhaustive cases and prove eachParity, signs, residues
InductionProve a base case and P(k)→P(k+1)Statements about all n≥n0
CounterexampleExhibit one case where it failsDisproving a “for all” claim
Example (induction): Prove that 1+2+⋯+n=n(n+1)2 for all n≥1.
Step 1 (base): For n=1, the left side is 1 and the right side is 1·22=1.
Step 2 (hypothesis): Assume 1+⋯+k=k(k+1)2.
Step 3 (step): Add k+1 to both sides.
1+⋯+k+(k+1)=k(k+1)2+(k+1)=(k+1)(k+2)2

Conclusion: This is the formula for n=k+1, so it holds for all n≥1.

Example (contradiction): 2 is irrational.
Step 1: Suppose 2=ab in lowest terms. Then a2=2b2, so a2 is even, hence a is even, say a=2c.
Step 2: Then 4c2=2b2, so b2=2c2, and b is even too.

Conclusion: Both a and b are even, contradicting lowest terms. So 2 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 2n>n for all n≥1.

Base: 21=2>1. Step: if 2k>k, then 2k+1=2·2k>2k≥k+1 since k≥1.
Practice: Disprove: “For every integer n, n2+n+41 is prime.”

Counterexample n=41: 412+41+41=41·43, which is composite.

3. Sets

A set is a collection of distinct objects. Write x∈A for membership and A⊆B when every element of A is in B. Two sets are equal when each is a subset of the other.

OperationNotationDefinition
UnionA∪B{x:x∈Aorx∈B}
IntersectionA∩B{x:x∈Aandx∈B}
DifferenceA∖B{x:x∈Aandx∉B}
ComplementAcU∖A
Cartesian productA×B{(a,b):a∈A,b∈B}
Power set𝒫(A)the set of all subsets of A
(A∪B)c=Ac∩Bc·(A∩B)c=Ac∪Bc·|A∪B|=|A|+|B|−|A∩B|
Example: Prove (A∪B)c⊆Ac∩Bc.
Step 1: Let x∈(A∪B)c. Then x∉A∪B.
Step 2: So x∉A and x∉B, meaning x∈Ac and x∈Bc.

Conclusion: x∈Ac∩Bc. The reverse inclusion follows by reversing the steps.

To prove A=B, show A⊆B and B⊆A. To prove A⊆B, take an arbitrary element of A and show it lies in B.
Practice: If |A|=3, how many elements are in 𝒫(A) and in 𝒫(A)×A?

|𝒫(A)|=23=8, and |𝒫(A)×A|=8·3=24.
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 25=18+15−|both|, giving |both|=8.

4. The Integers and Modular Arithmetic

Division algorithm: for integers a and b>0 there are unique q, r with a=bq+r and 0≤r<b. We write b|a if r=0.
Congruence: a≡b(modn) means n|(a−b). Congruence respects addition and multiplication, so you may reduce at every step.

Greatest Common Divisor

The Euclidean algorithm uses gcd(a,b)=gcd(b,amodb). Working backwards gives Bézout’s identity: gcd(a,b)=ax+by for some integers x, y. Moreover, a has an inverse modulo n exactly when gcd(a,n)=1.

Example: Find the inverse of 7 modulo 26.
Step 1: Euclid: 26=3·7+5, 7=1·5+2, 5=2·2+1. So gcd=1 and the inverse exists.
Step 2: Back-substitute.
1=5−2·2=5−2(7−5)=3·5−2·7=3(26−3·7)−2·7=3·26−11·7

Conclusion: −11≡15(mod26) is the inverse. Check: 7·15=105=4·26+1.

Example: Compute 3100mod7.
Step 1: By Fermat, 36≡1(mod7).
Step 2: 100=6·16+4, so 3100≡34=81≡4.

Conclusion: 3100≡4(mod7).

Fermat: if p is prime and p∤a, then ap−1≡1(modp). A prime has no non-trivial divisors, so every non-zero residue mod p has an inverse.
Practice: Solve 5x≡3(mod12).

5·5=25≡1, so 5−1=5. Then x≡5·3=15≡3(mod12).
Practice: Does 6x≡4(mod9) have a solution?

gcd(6,9)=3, which does not divide 4, so there is no solution.

5. Relations

A relation R on a set A is a subset of A×A. Write aRb for (a,b)∈R.

PropertyCondition
ReflexiveaRafor alla
SymmetricaRb⇒bRa
AntisymmetricaRbandbRa⇒a=b
TransitiveaRbandbRc⇒aRc
An equivalence relation is reflexive, symmetric, and transitive. It splits A into disjoint equivalence classes [a]={x:xRa}. A partial order is reflexive, antisymmetric, and transitive.
Example: Show that congruence mod 3 is an equivalence relation on ℤ.
Reflexive: a−a=0 is divisible by 3.
Symmetric: if 3|(a−b) then 3|(b−a).
Transitive: if 3|(a−b) and 3|(b−c), then 3|(a−c) since the sum is a−c.

Conclusion: There are exactly three classes: [0], [1], [2].

Equivalence relations and partitions are the same thing viewed two ways. Divisibility on positive integers and ⊆ on sets are standard partial orders.
Practice: On A={1,2,3}, let R={(1,1),(2,2),(1,2),(2,3)}. Which properties hold?

Not reflexive (3,3 missing), not symmetric ((1,2) without (2,1)), not transitive ((1,2),(2,3) force (1,3)). It is antisymmetric.

6. Functions

A function f:A→B assigns to each a∈A exactly one f(a)∈B. A is the domain, B the codomain, and {f(a)} the range.

TypeConditionMeaning
Injectivef(a)=f(a′)⇒a=a′no two inputs share an output
Surjective∀b∃af(a)=bevery element of B is hit
Bijectivebotha perfect pairing; has an inverse f−1

The composition is (g∘f)(x)=g(f(x)). Compositions of injections are injective, and compositions of surjections are surjective.

Example: Classify f:ℤ→ℤ, f(x)=2x+3.
Injective: 2x+3=2y+3 gives x=y.
Surjective? f(x) is always odd, so 4 is never hit.

Conclusion: f is injective but not surjective. On ℝ it would be a bijection with f−1(y)=(y−3)2.

Domain and codomain matter: x2 is not injective on ℝ, but it is injective on [0,∞).
Practice: Is f:ℝ→ℝ, f(x)=x3 a bijection?

Yes. It is strictly increasing (so injective), and every y has a real cube root (so surjective). The inverse is y3.
Practice: If g∘f is injective, must f be injective?

Yes. If f(a)=f(a′), then g(f(a))=g(f(a′)), so a=a′. (g need not be injective.)

7. Cardinality

Sets A and B have the same cardinality, |A|=|B|, if there is a bijection A→B. We write |A|≤|B| if there is an injection A→B.

A set is finite if it is in bijection with {1,…,n} for some n. Infinite sets can be matched with proper subsets of themselves, which no finite set can do.

|A|≤|B|and|B|≤|A|⇒|A|=|B|(Cantor–Schröder–Bernstein)
Example: Show |ℕ|=|even natural numbers|.
Step 1: Define f(n)=2n.
Step 2: It is injective (2n=2m⇒n=m) and surjective (every even number is 2n).

Conclusion: ℕ has the same size as a proper subset of itself.

Cantor’s theorem: |A|<|𝒫(A)| for every set A. So there is no largest infinity.
Practice: Why is |(0,1)|=|ℝ|?

The map x↦tan(π(x−12)) is a bijection from (0,1) 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.
SetStatusWhy
ℤcountablelist 0,1,−1,2,−2,…
ℕ×ℕcountablelist along diagonals
ℚcountableinjects into ℤ×ℕ
Countable union of countable setscountablesame diagonal listing
(0,1),ℝuncountableCantor’s diagonal argument
𝒫(ℕ)uncountableCantor’s theorem
Example (diagonal argument): (0,1) is uncountable.
Step 1: Suppose x1,x2,x3,… is a complete list, written in decimals.
Step 2: Build y whose nth digit is 5 unless the nth digit of xn is 5, in which case use 6. (Avoiding 0 and 9 prevents double representations.)

Conclusion: y differs from every xn in the nth digit, so y 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 {a,b} countable?

Yes. For each length n there are 2n 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 (G,∗) is a set with an operation satisfying: closure; associativity; an identity e with e∗a=a∗e=a; and an inverse a−1 for each a with a∗a−1=e. It is abelian if a∗b=b∗a.
StructureGroup?Reason
(ℤ,+)Yesidentity 0, inverse −a
(ℤ,×)No2 has no integer inverse
(ℤn,+)Yesaddition mod n
(ℤn*,×)Yesunits: a with gcd(a,n)=1
Sn(permutations)Yescomposition; non-abelian for n≥3

Subgroups, Order, and Lagrange

A subset H⊆G is a subgroup if it is itself a group under the same operation. The order of an element a is the smallest n>0 with an=e. A group generated by one element is cyclic.

|H|divides|G|(Lagrange’s theorem)
Example: Find the order of every element of (ℤ6,+).
Step 1: The order of a is the smallest n with na≡0(mod6).
Step 2: 0 has order 1; 1 and 5 have order 6; 2 and 4 have order 3; 3 has order 2.

Conclusion: ℤ6 is cyclic, generated by 1 (or 5). All element orders divide 6, as Lagrange predicts.

Identities and inverses are unique. Also, (ab)−1=b−1a−1: the order reverses, just as when taking off shoes and socks.
Practice: Show that ({1,2,3},×mod4) is not a group.

Closure fails: 2×2=4≡0, which is not in the set. (Also 2 has no inverse because gcd(2,4)≠1.)
Practice: Show that (ℤ5*,×) is cyclic.

Powers of 2 mod 5: 2,4,3,1. These are all four elements, so 2 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.
  • a has an inverse mod n exactly when gcd(a,n)=1; 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.