Mathematical Logic & Reasoning Complete Study Guide - 1 BAC Science Exp

Série 1 - Notions de Logique Worksheet

Theoretical Foundations of Mathematical Logic

  • Quantifiers in First-Order Logic:

    • Universal Quantifier (∀\forall): Read as "for all" or "for every". A statement (∀x∈E):P(x)(\forall x \in E): P(x) is true if and only if the predicate P(x)P(x) holds true for every element xx in the set EE.
    • Existential Quantifier (∃\exists): Read as "there exists at least one". A statement (∃x∈E):P(x)(\exists x \in E): P(x) is true if there exists at least one element x0∈Ex_0 \in E for which P(x0)P(x_0) is true.
  • Rules of Logical Negation:

    • Negation of Universal Statement: (∀x∈E):P(x)‾  ⟺  (∃x∈E):P(x)‾\overline{(\forall x \in E): P(x)} \iff (\exists x \in E): \overline{P(x)}
    • Negation of Existential Statement: (∃x∈E):P(x)‾  ⟺  (∀x∈E):P(x)‾\overline{(\exists x \in E): P(x)} \iff (\forall x \in E): \overline{P(x)}
    • Negation of Implication: P  ⟹  Q‾  ⟺  P∧Q‾\overline{P \implies Q} \iff P \land \overline{Q}
    • De Morgan's Laws: P∧Q‾  ⟺  P‾∨Q‾\overline{P \land Q} \iff \overline{P} \lor \overline{Q} and P∨Q‾  ⟺  P‾∧Q‾\overline{P \lor Q} \iff \overline{P} \land \overline{Q}
  • Methods of Proof:

    • Direct Deduction: To prove P  ⟹  QP \implies Q, assume PP is true and apply logical deductions to arrive at QQ.
    • Proof by Counterexample: To prove that a universal proposition (∀x∈E):P(x)(\forall x \in E): P(x) is false, construct a specific element x0∈Ex_0 \in E (a counterexample) for which P(x0)P(x_0) is false.
    • Proof by Contrapositive: The implication P  ⟹  QP \implies Q is logically equivalent to its contrapositive Q‾  ⟹  P‾\overline{Q} \implies \overline{P}. Proving Q‾  ⟹  P‾\overline{Q} \implies \overline{P} establishes P  ⟹  QP \implies Q
    • Proof by Logical Equivalence: To prove P  ⟺  QP \iff Q, demonstrate a chain of reversible logic steps P  ⟺  R1  ⟺  R2  ⟺  ⋯  ⟺  QP \iff R_1 \iff R_2 \iff \dots \iff Q, or prove both implications P  ⟹  QP \implies Q and Q  ⟹  PQ \implies P
    • Proof by Disjunction of Cases: If the universal domain EE can be partitioned into exhaustive cases E1,E2,…,EkE_1, E_2, \dots, E_k, proving the statement for each individual case proves it for all EE
    • Proof by Contradiction (Reductio ad Absurdum): To prove PP is true, assume its negation P‾\overline{P} is true, and derive a logical impossibility or contradiction (such as 1=01 = 0 or a∧a‾a \land \overline{a}).
    • Mathematical Induction: To prove a proposition P(n)P(n) for all integers n≥n0n \ge n_0:
    1. Initialization (Base Case): Show P(n0)P(n_0) is true.
    2. Heredity (Inductive Step): Assume P(k)P(k) is true for an arbitrary integer k≥n0k \ge n_0, and prove P(k+1)P(k+1) is true.
    3. Conclusion: Conclude that P(n)P(n) is true for all integers n≥n0n \ge n_0

Exercise 1: Quantified Statements, Truth Values, and Negations

  • Statement P1P_1:

    • Form: P1:(∃x∈R):3x+6=0P_1: (\exists x \in \mathbb{R}): 3x + 6 = 0
    • Truth Value Analysis: Solving 3x+6=03x + 6 = 0 yields x=−2x = -2. Since −2∈R-2 \in \mathbb{R}, there exists a real solution.
    • Truth Value: True
    • Negation: P1‾:(∀x∈R):3x+6≠0\overline{P_1}: (\forall x \in \mathbb{R}): 3x + 6 \ne 0
  • Statement P2P_2:

    • Form: P2:(∃x∈R):x2−3x+2=0P_2: (\exists x \in \mathbb{R}): x^2 - 3x + 2 = 0
    • Truth Value Analysis: The quadratic equation has discriminant Δ=(−3)2−4(1)(2)=1>0\Delta = (-3)^2 - 4(1)(2) = 1 > 0, providing real solutions x=1x = 1 and x=2x = 2. Thus, the existential condition is satisfied.
    • Truth Value: True
    • Negation: P2‾:(∀x∈R):x2−3x+2≠0\overline{P_2}: (\forall x \in \mathbb{R}): x^2 - 3x + 2 \ne 0
  • Statement P3P_3:

    • Form: P3:(∀x∈[1;6]):x2−7x+6≤0P_3: (\forall x \in [1; 6]): x^2 - 7x + 6 \le 0
    • Truth Value Analysis: Factorizing the quadratic gives x2−7x+6=(x−1)(x−6)x^2 - 7x + 6 = (x - 1)(x - 6). For any x∈[1;6]x \in [1; 6], x−1≥0x - 1 \ge 0 and x−6≤0x - 6 \le 0. The product of a non-negative number and a non-positive number is non-positive (≤0\le 0). Thus, the inequality holds for all xx in the interval.
    • Truth Value: True
    • Negation: P3‾:(∃x∈[1;6]):x2−7x+6>0\overline{P_3}: (\exists x \in [1; 6]): x^2 - 7x + 6 > 0
  • Statement P4P_4:

    • Form: P4:(∀x∈R):x2−2x+3>0P_4: (\forall x \in \mathbb{R}): x^2 - 2x + 3 > 0
    • Truth Value Analysis: Rewriting as a completed square yields x2−2x+3=(x−1)2+2x^2 - 2x + 3 = (x - 1)^2 + 2. Since (x−1)2≥0(x - 1)^2 \ge 0 for all real xx, (x−1)2+2≥2>0(x - 1)^2 + 2 \ge 2 > 0. Alternatively, discriminant Δ=4−12=−8<0\Delta = 4 - 12 = -8 < 0 with coefficient a=1>0a = 1 > 0, so the polynomial is strictly positive everywhere on R\mathbb{R}.
    • Truth Value: True
    • Negation: P4‾:(∃x∈R):x2−2x+3≤0\overline{P_4}: (\exists x \in \mathbb{R}): x^2 - 2x + 3 \le 0

Exercise 2: Proof by Counterexample

  • Disproving Proposition P1P_1:

    • Proposition: P1:(∀x∈R):x2=xP_1: (\forall x \in \mathbb{R}): \sqrt{x^2} = x
    • Counterexample Construction: Choose x=−2∈Rx = -2 \in \mathbb{R}.
    • Verification: (−2)2=4=2\sqrt{(-2)^2} = \sqrt{4} = 2. However, x=−2x = -2. Since 2≠−22 \ne -2, x2≠x\sqrt{x^2} \ne x for x=−2x = -2.
    • Conclusion: P1P_1 is false.
  • Disproving Proposition P2P_2:

    • Proposition: P2:(∀x∈R):x2≥xP_2: (\forall x \in \mathbb{R}): x^2 \ge x
    • Counterexample Construction: Choose x=12∈Rx = \frac{1}{2} \in \mathbb{R}.
    • Verification: x2=(12)2=14x^2 = \left(\frac{1}{2}\right)^2 = \frac{1}{4}. Comparing values, 14<12\frac{1}{4} < \frac{1}{2}, which means x2<xx^2 < x.
    • Conclusion: P2P_2 is false.
  • Negation of Implication Proposition (R)(R):

    • Given Proposition: (R):(∀x∈R):[x2=2x  ⟹  x=0](R): (\forall x \in \mathbb{R}): [x^2 = 2x \implies x = 0]
    • Applying the negation rule A  ⟹  B‾  ⟺  A∧B‾\overline{A \implies B} \iff A \land \overline{B}:
    • Negation: R‾:(∃x∈R):[x2=2x et x≠0]\overline{R}: (\exists x \in \mathbb{R}): [x^2 = 2x \text{ et } x \ne 0]
  • Deducing Truth Value of Proposition (R)(R):

    • Test x=2∈Rx = 2 \in \mathbb{R}:
    • Evaluating premises: 22=42^2 = 4 and 2×2=42 \times 2 = 4, so x2=2xx^2 = 2x is true.
    • Evaluating conclusion condition: x=2≠0x = 2 \ne 0, so x≠0x \ne 0 is true.
    • Since R‾\overline{R} is true for x=2x = 2, the original statement (R)(R) is false.

Exercise 3: Counterexample Method Applied to Real Functions

  • Setting: Function ff defined on R\mathbb{R} by f(x)=x2−3x+2f(x) = x^2 - 3x + 2

  • Solving f(x)=0f(x) = 0 in R\mathbb{R}:

    • Equation: x2−3x+2=0x^2 - 3x + 2 = 0
    • Factorization: (x−1)(x−2)=0(x - 1)(x - 2) = 0
    • Solutions: x=1x = 1 or x=2x = 2
    • Solution Set: S={1,2}S = \{1, 2\}
  • Negation of Proposition (P)(P):

    • Given Proposition: (P):(∀(a,b)∈R2):f(a)=f(b)  ⟹  a=b(P): (\forall (a, b) \in \mathbb{R}^2): f(a) = f(b) \implies a = b
    • Negation: P‾:(∃(a,b)∈R2):[f(a)=f(b) et a≠b]\overline{P}: (\exists (a, b) \in \mathbb{R}^2): [f(a) = f(b) \text{ et } a \ne b]
  • Deducing (P)(P) is False:

    • Choose a=1a = 1 and b=2b = 2.
    • From the roots solved above, f(1)=0f(1) = 0 and f(2)=0f(2) = 0, so f(1)=f(2)f(1) = f(2).
    • Since 1≠21 \ne 2, the negation P‾\overline{P} holds true.
    • Conclusion: Proposition (P)(P) is false (meaning ff is not injective).
  • Evaluation of f(1)f(1) and f(−1)f(-1) and Function Parity Analysis:

    • Calculation of f(1)f(1): f(1)=12−3(1)+2=0f(1) = 1^2 - 3(1) + 2 = 0
    • Calculation of f(−1)f(-1): f(−1)=(−1)2−3(−1)+2=1+3+2=6f(-1) = (-1)^2 - 3(-1) + 2 = 1 + 3 + 2 = 6
    • Testing Evenness Condition ((∀x):f(−x)=f(x)(\forall x): f(-x) = f(x)):
    • For x=1x = 1, f(−1)=6f(-1) = 6 and f(1)=0f(1) = 0. Since 6≠06 \ne 0, f(−1)≠f(1)f(-1) \ne f(1). Thus, ff is not even.
    • Testing Oddness Condition ((∀x):f(−x)=−f(x)(\forall x): f(-x) = -f(x)):
    • For x=1x = 1, f(−1)=6f(-1) = 6 and −f(1)=−0=0-f(1) = -0 = 0. Since 6≠06 \ne 0, f(−1)≠−f(1)f(-1) \ne -f(1). Thus, ff is not odd.
    • Conclusion: The function ff is neither even nor odd.

Exercise 4: Direct Implication and Contraposition

  • Setting: Real variable x∈Rx \in \mathbb{R} and proposition (P):(x2=4x)  ⟹  (x=0 ou x=4)(P): (x^2 = 4x) \implies (x = 0 \text{ ou } x = 4)

  • Direct Proof that (P)(P) is True:

    • Assume the premise x2=4xx^2 = 4x
    • Subtract 4x4x from both sides: x2−4x=0x^2 - 4x = 0
    • Factor out xx: x(x−4)=0x(x - 4) = 0
    • Apply zero-product property: x=0 ou x−4=0x = 0 \text{ ou } x - 4 = 0
    • Solving the linear term gives x=0 ou x=4x = 0 \text{ ou } x = 4
    • Since the conclusion follows directly from the premise, proposition (P)(P) is true.
  • Determining the Contrapositive Implication:

    • General Rule: The contrapositive of A  ⟹  BA \implies B is B‾  ⟹  A‾\overline{B} \implies \overline{A}
    • Here, premise AA is x2=4xx^2 = 4x
    • Conclusion BB is (x=0 ou x=4)(x = 0 \text{ ou } x = 4)
    • Negation B‾\overline{B}: (x=0 ou x=4)‾  ⟺  (x≠0 et x≠4)\overline{(x = 0 \text{ ou } x = 4)} \iff (x \ne 0 \text{ et } x \ne 4)
    • Negation A‾\overline{A}: x2≠4xx^2 \ne 4x
    • Contrapositive Form: (x≠0 et x≠4)  ⟹  x2≠4x(x \ne 0 \text{ et } x \ne 4) \implies x^2 \ne 4x

Exercise 5: Domain of Definition of Real-Valued Functions

  • Function 1: f(x)=x4−5x−2f(x) = x^4 - 5x - 2

    • Type: Polynomial function
    • Constraint: Defined for all real numbers
    • Domain of Definition: Df=RD_f = \mathbb{R}
  • Function 2: f(x)=x+4x2−4f(x) = \frac{x+4}{x^2-4}

    • Type: Rational function
    • Constraint: Denominator must be non-zero
    • Condition: x2−4≠0  ⟺  (x−2)(x+2)≠0  ⟺  x≠2 et x≠−2x^2 - 4 \ne 0 \iff (x - 2)(x + 2) \ne 0 \iff x \ne 2 \text{ et } x \ne -2
    • Domain of Definition: Df=R∖{−2,2}=]−∞,−2[∪]−2,2[∪]2,+∞[D_f = \mathbb{R} \setminus \{-2, 2\} = ]-\infty, -2[ \cup ]-2, 2[ \cup ]2, +\infty[
  • Function 3: f(x)=6−2xf(x) = \sqrt{6 - 2x}

    • Type: Square root function
    • Constraint: Radicand must be non-negative
    • Condition: 6−2x≥0  ⟺  2x≤6  ⟺  x≤36 - 2x \ge 0 \iff 2x \le 6 \iff x \le 3
    • Domain of Definition: Df=]−∞,3]D_f = ]-\infty, 3]
  • Function 4: f(x)=x2−2x+2f(x) = \sqrt{x^2 - 2x + 2}

    • Type: Square root function
    • Constraint: x2−2x+2≥0x^2 - 2x + 2 \ge 0
    • Discriminant Analysis: Δ=(−2)2−4(1)(2)=4−8=−4<0\Delta = (-2)^2 - 4(1)(2) = 4 - 8 = -4 < 0
    • Sign Analysis: Since Δ<0\Delta < 0 and leading coefficient a=1>0a = 1 > 0, x2−2x+2>0x^2 - 2x + 2 > 0 for all x∈Rx \in \mathbb{R}
    • Domain of Definition: Df=RD_f = \mathbb{R}
  • Function 5: f(x)=x2−5xf(x) = \sqrt{x^2 - 5x}

    • Type: Square root function
    • Constraint: x2−5x≥0x^2 - 5x \ge 0
    • Factorization: x(x−5)≥0x(x - 5) \ge 0
    • Roots: x=0x = 0 and x=5x = 5
    • Sign Table Analysis: The product is positive outside the roots (−∞,0](-\infty, 0] and [5,+∞)[5, +\infty), and negative inside (0,5)(0, 5)
    • Domain of Definition: Df=]−∞,0]∪[5,+∞[D_f = ]-\infty, 0] \cup [5, +\infty[

Exercise 6: Direct Deductive Reasoning

  • Proof 1: Let x∈Rx \in \mathbb{R} and y∈Ry \in \mathbb{R}. Show (x2+y2=2xy)  ⟹  (x=y)(x^2 + y^2 = 2xy) \implies (x = y)

    • Proof:     x2+y2=2xy  ⟹  x2−2xy+y2=0x^2 + y^2 = 2xy \implies x^2 - 2xy + y^2 = 0(x−y)2=0(x - y)^2 = 0x−y=0x - y = 0x=yx = y
  • Proof 2: Let x∈Rx \in \mathbb{R} and y∈Ry \in \mathbb{R}. Show (1+xy−x−y=0)  ⟹  (y=1 ou x=1)(1 + xy - x - y = 0) \implies (y = 1 \text{ ou } x = 1)

    • Proof by Factorization:     1+xy−x−y=0  ⟹  (1−x)−y(1−x)=01 + xy - x - y = 0 \implies (1 - x) - y(1 - x) = 0(1−x)(1−y)=0(1 - x)(1 - y) = 01−x=0 ou 1−y=01 - x = 0 \text{ ou } 1 - y = 0x=1 ou y=1x = 1 \text{ ou } y = 1
  • Proof 3: Show that if mm and nn are two odd natural integers, then m+nm + n is even

    • Proof:     Since mm and nn are odd natural numbers, by definition there exist integers k∈Nk \in \mathbb{N} and p∈Np \in \mathbb{N} such that m=2k+1m = 2k + 1 and n=2p+1n = 2p + 1     Adding the expressions:     m+n=(2k+1)+(2p+1)=2k+2p+2=2(k+p+1)m + n = (2k + 1) + (2p + 1) = 2k + 2p + 2 = 2(k + p + 1)     Define k′=k+p+1∈Nk' = k + p + 1 \in \mathbb{N}. Then m+n=2k′m + n = 2k', which matches the definition of an even integer.

Exercise 7: Proof by Logical Equivalence

  • Proof 1: For x∈Rx \in \mathbb{R}, show x2+x+1x2+1≤32\frac{x^2 + x + 1}{x^2 + 1} \le \frac{3}{2}

    • Equivalence Chain:     x2+x+1x2+1≤32  ⟺  32−x2+x+1x2+1≥0\frac{x^2 + x + 1}{x^2 + 1} \le \frac{3}{2} \iff \frac{3}{2} - \frac{x^2 + x + 1}{x^2 + 1} \ge 0  ⟺  3(x2+1)−2(x2+x+1)2(x2+1)≥0\iff \frac{3(x^2 + 1) - 2(x^2 + x + 1)}{2(x^2 + 1)} \ge 0  ⟺  3x2+3−2x2−2x−22(x2+1)≥0\iff \frac{3x^2 + 3 - 2x^2 - 2x - 2}{2(x^2 + 1)} \ge 0  ⟺  x2−2x+12(x2+1)≥0\iff \frac{x^2 - 2x + 1}{2(x^2 + 1)} \ge 0  ⟺  (x−1)22(x2+1)≥0\iff \frac{(x - 1)^2}{2(x^2 + 1)} \ge 0
    • Since (x−1)2≥0(x - 1)^2 \ge 0 and 2(x2+1)>02(x^2 + 1) > 0 for all real xx, the final inequality is unconditionally true. Thus, by equivalence, the initial inequality holds.
  • Proof 2: For x,y∈R+x, y \in \mathbb{R}^+, show x+y=x+y  ⟺  (x=0 ou y=0)\sqrt{x + y} = \sqrt{x} + \sqrt{y} \iff (x = 0 \text{ ou } y = 0)

    • Equivalence Chain (squaring non-negative expressions):     x+y=x+y  ⟺  (x+y)2=(x+y)2\sqrt{x + y} = \sqrt{x} + \sqrt{y} \iff (\sqrt{x + y})^2 = (\sqrt{x} + \sqrt{y})^2  ⟺  x+y=x+2xy+y\iff x + y = x + 2\sqrt{x}\sqrt{y} + y  ⟺  0=2xy\iff 0 = 2\sqrt{xy}  ⟺  xy=0\iff \sqrt{xy} = 0  ⟺  xy=0\iff xy = 0  ⟺  x=0 ou y=0\iff x = 0 \text{ ou } y = 0
  • Proof 3: For a,b∈R+a, b \in \mathbb{R}^+, show (a+b=0)  ⟺  (a=0 et b=0)(a + b = 0) \iff (a = 0 \text{ et } b = 0)

    • Right-to-Left Implication (⇐\Leftarrow):     If a=0a = 0 and b=0b = 0, then a+b=0+0=0a + b = 0 + 0 = 0.
    • Left-to-Right Implication (⇒\Rightarrow):     Assume a+b=0a + b = 0. Since a≥0a \ge 0 and b≥0b \ge 0, if either aa or bb were strictly positive, the sum a+ba + b would be strictly positive (>0> 0). Hence, for non-negative terms to sum to zero, both must be zero (a=0a = 0 and b=0b = 0).
  • Proof 4: For x,y∈R+x, y \in \mathbb{R}^+, show (x+y+13=4x+6y)  ⟺  (x=4 et y=9)(x + y + 13 = 4\sqrt{x} + 6\sqrt{y}) \iff (x = 4 \text{ et } y = 9)

    • Equivalence Chain:     x+y+13=4x+6y  ⟺  x−4x+y−6y+13=0x + y + 13 = 4\sqrt{x} + 6\sqrt{y} \iff x - 4\sqrt{x} + y - 6\sqrt{y} + 13 = 0  ⟺  (x)2−4x+4+(y)2−6y+9=0\iff (\sqrt{x})^2 - 4\sqrt{x} + 4 + (\sqrt{y})^2 - 6\sqrt{y} + 9 = 0  ⟺  (x−2)2+(y−3)2=0\iff (\sqrt{x} - 2)^2 + (\sqrt{y} - 3)^2 = 0
    • Since squares of real numbers are non-negative, the sum of two squares equals zero if and only if each squared term is zero:       ⟺  x−2=0 et y−3=0\iff \sqrt{x} - 2 = 0 \text{ et } \sqrt{y} - 3 = 0  ⟺  x=2 et y=3\iff \sqrt{x} = 2 \text{ et } \sqrt{y} = 3  ⟺  x=4 et y=9\iff x = 4 \text{ et } y = 9

Exercise 8: Proof by Disjunction of Cases

  • Problem 1: Show that for all n∈Nn \in \mathbb{N}, n2+n+1n^2 + n + 1 is odd using cases n=2kn = 2k and n=2k+1n = 2k + 1

    • Case 1 (nn is even, n=2kn = 2k where k∈Nk \in \mathbb{N}):     n2+n+1=(2k)2+2k+1=4k2+2k+1=2(2k2+k)+1n^2 + n + 1 = (2k)^2 + 2k + 1 = 4k^2 + 2k + 1 = 2(2k^2 + k) + 1     Set k′=2k2+k∈Nk' = 2k^2 + k \in \mathbb{N}. n2+n+1=2k′+1n^2 + n + 1 = 2k' + 1, which is odd.
    • Case 2 (nn is odd, n=2k+1n = 2k + 1 where k∈Nk \in \mathbb{N}):     n2+n+1=(2k+1)2+(2k+1)+1=4k2+4k+1+2k+1+1n^2 + n + 1 = (2k + 1)^2 + (2k + 1) + 1 = 4k^2 + 4k + 1 + 2k + 1 + 1=4k2+6k+3=2(2k2+3k+1)+1= 4k^2 + 6k + 3 = 2(2k^2 + 3k + 1) + 1     Set k′′=2k2+3k+1∈Nk'' = 2k^2 + 3k + 1 \in \mathbb{N}. n2+n+1=2k′′+1n^2 + n + 1 = 2k'' + 1, which is odd.
    • Conclusion: In all cases, n2+n+1n^2 + n + 1 is odd.
  • Problem 2: Show that n(n+1)(n+2)n(n + 1)(n + 2) is a multiple of 3 using cases n=3kn = 3k, n=3k+1n = 3k + 1, n=3k+2n = 3k + 2

    • Case 1 (n=3kn = 3k):     n(n+1)(n+2)=3k(3k+1)(3k+2)=3[k(3k+1)(3k+2)]n(n + 1)(n + 2) = 3k(3k + 1)(3k + 2) = 3[k(3k + 1)(3k + 2)], divisible by 3.
    • Case 2 (n=3k+1n = 3k + 1):     n+2=(3k+1)+2=3k+3=3(k+1)n + 2 = (3k + 1) + 2 = 3k + 3 = 3(k + 1)n(n+1)(n+2)=(3k+1)(3k+2)⋅3(k+1)=3[(3k+1)(3k+2)(k+1)]n(n + 1)(n + 2) = (3k + 1)(3k + 2) \cdot 3(k + 1) = 3[(3k + 1)(3k + 2)(k + 1)]     divisible by 3.
    • Case 3 (n=3k+2n = 3k + 2):     n+1=(3k+2)+1=3k+3=3(k+1)n + 1 = (3k + 2) + 1 = 3k + 3 = 3(k + 1)n(n+1)(n+2)=(3k+2)⋅3(k+1)⋅(3k+4)=3[(3k+2)(k+1)(3k+4)]n(n + 1)(n + 2) = (3k + 2) \cdot 3(k + 1) \cdot (3k + 4) = 3[(3k + 2)(k + 1)(3k + 4)]     divisible by 3.
    • Conclusion: n(n+1)(n+2)n(n + 1)(n + 2) is always a multiple of 3.
  • Problem 3: Show (∀x∈R):x2+1−x>0(\forall x \in \mathbb{R}): \sqrt{x^2 + 1} - x > 0 using cases x<0x < 0 and x≥0x \ge 0

    • Case 1 (x<0x < 0):     Since x<0x < 0, −x>0-x > 0. Additionally, x2+1>0\sqrt{x^2 + 1} > 0.     The sum of two strictly positive numbers x2+1+(−x)=x2+1−x>0\sqrt{x^2 + 1} + (-x) = \sqrt{x^2 + 1} - x > 0
    • Case 2 (x≥0x \ge 0):     x2+1>x2  ⟹  x2+1>x2=∣x∣=xx^2 + 1 > x^2 \implies \sqrt{x^2 + 1} > \sqrt{x^2} = |x| = x (since x≥0x \ge 0).     Subtracting xx from both sides yields x2+1−x>0\sqrt{x^2 + 1} - x > 0
    • Conclusion: The inequality holds for all x∈Rx \in \mathbb{R}.
  • Problem 4: Solve equations in R\mathbb{R} using disjunction of cases:

    • Equation (E1):x2−∣x−1∣−1=0(E_1): x^2 - |x - 1| - 1 = 0

    • Case 1 (x<1  ⟹  ∣x−1∣=−(x−1)=1−xx < 1 \implies |x - 1| = -(x - 1) = 1 - x):       x2−(1−x)−1=0  ⟺  x2+x−2=0x^2 - (1 - x) - 1 = 0 \iff x^2 + x - 2 = 0       Factorization: (x+2)(x−1)=0  ⟹  x=−2 ou x=1(x + 2)(x - 1) = 0 \implies x = -2 \text{ ou } x = 1       Filtering by constraint x<1x < 1 gives solution S1={−2}S_1 = \{-2\}

    • Case 2 (x≥1  ⟹  ∣x−1∣=x−1x \ge 1 \implies |x - 1| = x - 1):       x2−(x−1)−1=0  ⟺  x2−x=0  ⟺  x(x−1)=0  ⟹  x=0 ou x=1x^2 - (x - 1) - 1 = 0 \iff x^2 - x = 0 \iff x(x - 1) = 0 \implies x = 0 \text{ ou } x = 1       Filtering by constraint x≥1x \ge 1 gives solution S2={1}S_2 = \{1\}

    • Total Solution Set: S=S1∪S2={−2,1}S = S_1 \cup S_2 = \{-2, 1\}

    • Equation (E2):∣x+1∣−3∣x−2∣+1=0(E_2): |x + 1| - 3|x - 2| + 1 = 0

    • Partitioning R\mathbb{R} around critical points x=−1x = -1 and x=2x = 2:

    • Sub-case 1 (x∈]−∞,−1[x \in ]-\infty, -1[):       ∣x+1∣=−x−1|x + 1| = -x - 1 and ∣x−2∣=−(x−2)=2−x|x - 2| = -(x - 2) = 2 - x−x−1−3(2−x)+1=0  ⟺  2x−6=0  ⟺  x=3-x - 1 - 3(2 - x) + 1 = 0 \iff 2x - 6 = 0 \iff x = 3       Since 3∉]−∞,−1[3 \notin ]-\infty, -1[, there are no solutions in this interval.

    • Sub-case 2 (x∈[−1,2]x \in [-1, 2]):       ∣x+1∣=x+1|x + 1| = x + 1 and ∣x−2∣=2−x|x - 2| = 2 - x(x+1)−3(2−x)+1=0  ⟺  4x−4=0  ⟺  x=1(x + 1) - 3(2 - x) + 1 = 0 \iff 4x - 4 = 0 \iff x = 1       Since 1∈[−1,2]1 \in [-1, 2], x=1x = 1 is a valid solution.

    • Sub-case 3 (x∈]2,+∞[x \in ]2, +\infty[):       ∣x+1∣=x+1|x + 1| = x + 1 and ∣x−2∣=x−2|x - 2| = x - 2(x+1)−3(x−2)+1=0  ⟺  −2x+8=0  ⟺  x=4(x + 1) - 3(x - 2) + 1 = 0 \iff -2x + 8 = 0 \iff x = 4       Since 4∈]2,+∞[4 \in ]2, +\infty[, x=4x = 4 is a valid solution.

    • Total Solution Set: S={1,4}S = \{1, 4\}

Exercise 9: Proof by Contrapositive

  • Problem 1a: For y∈Ry \in \mathbb{R} and x∈R∗x \in \mathbb{R}^*, show (y≠2 et y≠−2)  ⟹  (2y2−8≠0)(y \ne 2 \text{ et } y \ne -2) \implies (2y^2 - 8 \ne 0)

    • Contrapositive Statement: (2y2−8=0)  ⟹  (y=2 ou y=−2)(2y^2 - 8 = 0) \implies (y = 2 \text{ ou } y = -2)
    • Proof of Contrapositive:     2y2−8=0  ⟹  2(y2−4)=0  ⟹  y2=4  ⟹  y=2 ou y=−22y^2 - 8 = 0 \implies 2(y^2 - 4) = 0 \implies y^2 = 4 \implies y = 2 \text{ ou } y = -2
    • Since the contrapositive is true, the original implication holds.
  • Problem 1b: For x∈R∗x \in \mathbb{R}^*, show (x≠0)  ⟹  (x+1≠1+x2)(x \ne 0) \implies \left(\sqrt{x + 1} \ne 1 + \frac{x}{2}\right)

    • Contrapositive Statement: (x+1=1+x2)  ⟹  (x=0)\left(\sqrt{x + 1} = 1 + \frac{x}{2}\right) \implies (x = 0)
    • Proof of Contrapositive:     Assume x+1=1+x2\sqrt{x + 1} = 1 + \frac{x}{2}     Squaring both sides:     x+1=(1+x2)2=1+x+x24x + 1 = \left(1 + \frac{x}{2}\right)^2 = 1 + x + \frac{x^2}{4}     Subtracting x+1x + 1 from both sides:     0=x24  ⟹  x2=0  ⟹  x=00 = \frac{x^2}{4} \implies x^2 = 0 \implies x = 0
    • Since the contrapositive is true, the original implication holds.
  • Problem 2: For n∈Nn \in \mathbb{N}, show that if n2n^2 is even, then nn is even

    • Contrapositive Statement: If nn is odd, then n2n^2 is odd.
    • Proof of Contrapositive:     Assume nn is odd, so n=2k+1n = 2k + 1 for some k∈Nk \in \mathbb{N}.     n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1=2k′+1n^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1 = 2k' + 1     where k′=2k2+2k∈Nk' = 2k^2 + 2k \in \mathbb{N}. Thus, n2n^2 is odd.
    • Conclusion: By contraposition, if n2n^2 is even, then nn is even.
  • Problem 3: For x,y∈]2;+∞[x, y \in ]2; +\infty[, show (x≠y)  ⟹  (x2−4x≠y2−4y)(x \ne y) \implies (x^2 - 4x \ne y^2 - 4y)

    • Contrapositive Statement: (x2−4x=y2−4y)  ⟹  (x=y)(x^2 - 4x = y^2 - 4y) \implies (x = y)
    • Proof of Contrapositive:     Assume x2−4x=y2−4yx^2 - 4x = y^2 - 4yx2−y2−4x+4y=0  ⟹  (x−y)(x+y)−4(x−y)=0x^2 - y^2 - 4x + 4y = 0 \implies (x - y)(x + y) - 4(x - y) = 0(x−y)(x+y−4)=0(x - y)(x + y - 4) = 0     Since x>2x > 2 and y>2y > 2, adding the inequalities gives x+y>4x + y > 4, which implies x+y−4>0x + y - 4 > 0.     Since x+y−4≠0x + y - 4 \ne 0, we divide by (x+y−4)(x + y - 4) to get x−y=0  ⟹  x=yx - y = 0 \implies x = y
    • Conclusion: The original implication is proved.

Exercise 10: Proof by Contradiction (Absurdity)

  • Problem 1: Show that (∀x∈R−{23}):4x+13x−2≠43\left(\forall x \in \mathbb{R} - \left\{\frac{2}{3}\right\}\right): \frac{4x + 1}{3x - 2} \ne \frac{4}{3}

    • Proof by Contradiction:     Assume there exists x∈R∖{23}x \in \mathbb{R} \setminus \left\{\frac{2}{3}\right\} such that 4x+13x−2=43\frac{4x + 1}{3x - 2} = \frac{4}{3}     Cross-multiplying yields:     3(4x+1)=4(3x−2)3(4x + 1) = 4(3x - 2)12x+3=12x−812x + 3 = 12x - 8     Subtracting 12x12x from both sides:     3=−83 = -8     This is an impossible mathematical contradiction. Hence, the original proposition is true.
  • Problem 2: Show that (∀n∈N):6n+54n+2∉N(\forall n \in \mathbb{N}): \frac{6n + 5}{4n + 2} \notin \mathbb{N}

    • Proof by Contradiction:     Assume there exists n∈Nn \in \mathbb{N} such that k=6n+54n+2∈Nk = \frac{6n + 5}{4n + 2} \in \mathbb{N}6n+5=k(4n+2)=2k(2n+1)6n + 5 = k(4n + 2) = 2k(2n + 1)     Analyzing parity:     Left side: 6n+5=2(3n+2)+16n + 5 = 2(3n + 2) + 1, which is an odd integer.     Right side: 2[k(2n+1)]2[k(2n + 1)], which is an even integer.     An odd integer cannot equal an even integer (contradiction). Thus, 6n+54n+2∉N\frac{6n + 5}{4n + 2} \notin \mathbb{N}.
  • Problem 3: Show that (∀x∈R):x−x2+1<0(\forall x \in \mathbb{R}): x - \sqrt{x^2 + 1} < 0

    • Proof by Contradiction:     Assume there exists x∈Rx \in \mathbb{R} such that x−x2+1≥0x - \sqrt{x^2 + 1} \ge 0     Rearranging gives x≥x2+1x \ge \sqrt{x^2 + 1}     Since x2+1>0\sqrt{x^2 + 1} > 0, xx must be strictly positive (x>0x > 0).     Squaring both non-negative sides:     x2≥(x2+1)2  ⟹  x2≥x2+1  ⟹  0≥1x^2 \ge (\sqrt{x^2 + 1})^2 \implies x^2 \ge x^2 + 1 \implies 0 \ge 1     This is a contradiction. Therefore, x−x2+1<0x - \sqrt{x^2 + 1} < 0 for all x∈Rx \in \mathbb{R}.

Exercise 11: Mathematical Induction and Summation Formulas

  • Setting: For all n∈N∗n \in \mathbb{N}^*, let Sn=1+2+⋯+nS_n = 1 + 2 + \dots + n

  • Calculating First Terms:

    • S1=1S_1 = 1
    • S2=1+2=3S_2 = 1 + 2 = 3
    • S3=1+2+3=6S_3 = 1 + 2 + 3 = 6
  • Proof by Recurrence of Formula Sn=n(n+1)2S_n = \frac{n(n + 1)}{2}:

    • Initialization: For n=1n = 1, S1=1S_1 = 1 and 1(1+1)2=22=1\frac{1(1 + 1)}{2} = \frac{2}{2} = 1. The formula holds for n=1n = 1
    • Heredity: Fix k∈N∗k \in \mathbb{N}^*. Assume Sk=k(k+1)2S_k = \frac{k(k + 1)}{2}. Prove Sk+1=(k+1)(k+2)2S_{k+1} = \frac{(k + 1)(k + 2)}{2}.     Sk+1=Sk+(k+1)=k(k+1)2+(k+1)S_{k+1} = S_k + (k + 1) = \frac{k(k + 1)}{2} + (k + 1)     Factor out (k+1)(k + 1):     Sk+1=(k+1)(k2+1)=(k+1)(k+22)=(k+1)(k+2)2S_{k+1} = (k + 1)\left(\frac{k}{2} + 1\right) = (k + 1)\left(\frac{k + 2}{2}\right) = \frac{(k + 1)(k + 2)}{2}
    • Conclusion: By induction, (∀n∈N∗):Sn=n(n+1)2(\forall n \in \mathbb{N}^*): S_n = \frac{n(n + 1)}{2}
  • Deducing Parity of n(n+1)n(n + 1):

    • Since Sn=n(n+1)2∈NS_n = \frac{n(n + 1)}{2} \in \mathbb{N} as a sum of natural integers, multiplying both sides by 2 gives n(n+1)=2Snn(n + 1) = 2S_n.
    • Because n(n+1)n(n + 1) is expressed as 22 times an integer SnS_n, n(n+1)n(n + 1) is always even.
  • Calculating S100S_{100}:

    • S100=100(100+1)2=50×101=5050S_{100} = \frac{100(100 + 1)}{2} = 50 \times 101 = 5050

Exercise 12: Divisibility, Inequalities, and Sums by Recurrence

  • Problem 1: Prove (∀n∈N∗):7n−2n(\forall n \in \mathbb{N}^*): 7^n - 2^n is divisible by 5

    • Initialization: For n=1n = 1, 71−21=5=5×17^1 - 2^1 = 5 = 5 \times 1, divisible by 5. True for n=1n = 1
    • Heredity: Let k∈N∗k \in \mathbb{N}^*. Assume 7k−2k=5m7^k - 2^k = 5m for some m∈Nm \in \mathbb{N}.     7k+1−2k+1=7⋅7k−2⋅2k=7⋅7k−7⋅2k+7⋅2k−2⋅2k7^{k+1} - 2^{k+1} = 7 \cdot 7^k - 2 \cdot 2^k = 7 \cdot 7^k - 7 \cdot 2^k + 7 \cdot 2^k - 2 \cdot 2^k=7(7k−2k)+2k(7−2)=7(5m)+5(2k)=5(7m+2k)= 7(7^k - 2^k) + 2^k(7 - 2) = 7(5m) + 5(2^k) = 5(7m + 2^k)     Since 7m+2k∈N7m + 2^k \in \mathbb{N}, 7k+1−2k+17^{k+1} - 2^{k+1} is divisible by 5.
    • Conclusion: 7n−2n7^n - 2^n is divisible by 5 for all n∈N∗n \in \mathbb{N}^*
  • Problem 2: Prove (∀n∈N):1+4+42+⋯+4n=4n+1−13(\forall n \in \mathbb{N}): 1 + 4 + 4^2 + \dots + 4^n = \frac{4^{n+1} - 1}{3}

    • Initialization: For n=0n = 0, Left Side = 40=14^0 = 1, Right Side = 40+1−13=33=1\frac{4^{0+1} - 1}{3} = \frac{3}{3} = 1. True for n=0n = 0
    • Heredity: Let k∈Nk \in \mathbb{N}. Assume 1+4+⋯+4k=4k+1−131 + 4 + \dots + 4^k = \frac{4^{k+1} - 1}{3}.     1+4+⋯+4k+4k+1=4k+1−13+4k+1=4k+1−1+3⋅4k+131 + 4 + \dots + 4^k + 4^{k+1} = \frac{4^{k+1} - 1}{3} + 4^{k+1} = \frac{4^{k+1} - 1 + 3 \cdot 4^{k+1}}{3}=4⋅4k+1−13=4k+2−13= \frac{4 \cdot 4^{k+1} - 1}{3} = \frac{4^{k+2} - 1}{3}
    • Conclusion: True for all n∈Nn \in \mathbb{N}
  • Problem 3: Prove (∀n∈N):1+23+33+⋯+n3=[n(n+1)2]2(\forall n \in \mathbb{N}): 1 + 2^3 + 3^3 + \dots + n^3 = \left[\frac{n(n + 1)}{2}\right]^2

    • Initialization: For n=0n = 0, sum is 00 and [02]2=0\left[\frac{0}{2}\right]^2 = 0. For n=1n = 1, 13=11^3 = 1 and [1(2)2]2=1\left[\frac{1(2)}{2}\right]^2 = 1. True.
    • Heredity: Assume true for k∈Nk \in \mathbb{N}.     13+23+⋯+k3+(k+1)3=[k(k+1)2]2+(k+1)31^3 + 2^3 + \dots + k^3 + (k + 1)^3 = \left[\frac{k(k + 1)}{2}\right]^2 + (k + 1)^3=(k+1)2[k24+(k+1)]=(k+1)2[k2+4k+44]= (k + 1)^2 \left[ \frac{k^2}{4} + (k + 1) \right] = (k + 1)^2 \left[ \frac{k^2 + 4k + 4}{4} \right]=(k+1)2(k+2)24=[(k+1)(k+2)2]2= (k + 1)^2 \frac{(k + 2)^2}{4} = \left[\frac{(k + 1)(k + 2)}{2}\right]^2
    • Conclusion: True for all n∈Nn \in \mathbb{N}
  • Problem 4: Prove (∀n∈N):2n≥n(\forall n \in \mathbb{N}): 2^n \ge n

    • Initialization: For n=0n = 0, 20=1≥02^0 = 1 \ge 0. True for n=0n = 0
    • Heredity: Let k∈Nk \in \mathbb{N}. Assume 2k≥k2^k \ge k.     2k+1=2⋅2k≥2k=k+k2^{k+1} = 2 \cdot 2^k \ge 2k = k + k     For k≥1k \ge 1, k+k≥k+1k + k \ge k + 1, so 2k+1≥k+12^{k+1} \ge k + 1.     For k=0k = 0, 21=2≥12^1 = 2 \ge 1, which also holds.
    • Conclusion: 2n≥n2^n \ge n for all n∈Nn \in \mathbb{N}

Exercise 13: Polynomial Expansion and Induction on Sum of Squares

  • Expanding Product (n+2)(2n+3)(n + 2)(2n + 3):

    • (n+2)(2n+3)=n(2n)+3n+2(2n)+6=2n2+3n+4n+6=2n2+7n+6(n + 2)(2n + 3) = n(2n) + 3n + 2(2n) + 6 = 2n^2 + 3n + 4n + 6 = 2n^2 + 7n + 6
  • Proof by Recurrence for Sum of Squares Formula:

    • Proposition: (∀n∈N∗):12+22+⋯+n2=n(n+1)(2n+1)6(\forall n \in \mathbb{N}^*): 1^2 + 2^2 + \dots + n^2 = \frac{n(n + 1)(2n + 1)}{6}
    • Initialization: For n=1n = 1, Left Side = 12=11^2 = 1. Right Side = 1(1+1)(2(1)+1)6=1⋅2⋅36=1\frac{1(1 + 1)(2(1) + 1)}{6} = \frac{1 \cdot 2 \cdot 3}{6} = 1. True for n=1n = 1
    • Heredity: Let k∈N∗k \in \mathbb{N}^*. Assume 12+22+⋯+k2=k(k+1)(2k+1)61^2 + 2^2 + \dots + k^2 = \frac{k(k + 1)(2k + 1)}{6}.     Adding (k+1)2(k + 1)^2 to both sides:     12+22+⋯+k2+(k+1)2=k(k+1)(2k+1)6+(k+1)21^2 + 2^2 + \dots + k^2 + (k + 1)^2 = \frac{k(k + 1)(2k + 1)}{6} + (k + 1)^2     Factor out (k+1)(k + 1):     =(k+1)[k(2k+1)6+(k+1)]=(k+1)[2k2+k+6k+66]= (k + 1) \left[ \frac{k(2k + 1)}{6} + (k + 1) \right] = (k + 1) \left[ \frac{2k^2 + k + 6k + 6}{6} \right]=(k+1)[2k2+7k+66]= (k + 1) \left[ \frac{2k^2 + 7k + 6}{6} \right]     Substitute the expansion result 2k2+7k+6=(k+2)(2k+3)2k^2 + 7k + 6 = (k + 2)(2k + 3):     =(k+1)(k+2)(2k+3)6= \frac{(k + 1)(k + 2)(2k + 3)}{6}
    • Conclusion: By induction, 12+22+⋯+n2=n(n+1)(2n+1)61^2 + 2^2 + \dots + n^2 = \frac{n(n + 1)(2n + 1)}{6} holds for all n∈N∗n \in \mathbb{N}^*