Analysis 1 Midterm
Analysis 1 Midterm
Midterm Review
1 Preliminaries
Proof Methods
• Induction
Suppose that P(n) be a statement about n
Solution
Suppose that P(n):
(n + 1)n
1 + 2 + ... + n =
2
(k + 1)k
1 + 2 + ... + k =
2
(k + 1)k (k + 1)(k + 2)
1 + 2 + ... + k + (k + 1) = + (k + 1) =
2 2
1
1 Preliminaries
IMPLICATION P ⇒ Q
Example: Prove that for all integers n, if n2 is even, then n is even
• Direct proof: P ⇒ Q
Solution
By the assumption, we have n2 is even for all n ∈ N. It gives:
n2 = n.n = n1 .n2
for all n1 , n2 ∈ N, n1 = n2
(2 cases: both even or both odd)
* Case 1: Both n1 and n2 are even, we have for all k ∈ N:
n1 = n2 = 2k
So:
n1 .n2 = (2k)(2k) = 4k 2
n1 = n2 = 2h + 1
So:
n1 .n2 = (2h + 1)(2h + 1) = 4h2 + 4h + 1
• Contraposition: ∼ Q ⇒ ∼ P
Solution
Suppose that n is odd: n = 2k + 1, k ∈ N
We have:
n2 = (2k + 1)2 = 4k 2 + 4k + 1 = 2(2k 2 + 2) + 1
• Contradiction: P ∧ (∼ Q) or (∼ P ) ∧ Q
* Stages:
(i) We assume for a contradiction that P is false and Q is true (or vice versa).
(ii) Deduce something known to be false (a logical contradiction).
Conclusion: This is a contradiction. Therefore, P must be true.
2
2 Suprema and Infima
Solution
Suppose there exists an integer number n such that n2 is even and n is odd, so if we have:
n = 2k + 1, k ∈ N
then
n2 = (2k + 1)2 = 4k 2 + 4k + 1 = 2(2k 2 + 2) + 1
It follows that
2q 2 = p2
An upper bound β of a nonempty set S ⊂ R is the supremum of S if and only if for every ϵ > 0 there exists
an x ∈ S such that x > β − ϵ.
(∀x ∈ S)(x ≤ β)
β = Sup S ⇔
(∀ϵ > 0)(∃x ∈ S)(x > β − ϵ)
A lower bound α of a nonempty set S ⊂ R is the infimum of S if and only if for every ϵ > 0 there exists an
x ∈ S such that x < α + ϵ.
(∀x ∈ S)(x ≥ α)
α = Inf S ⇔
(∀ϵ > 0)(∃x ∈ S)(x < α + ϵ)
3
2 Suprema and Infima
Example 1:
1
S= n ∈ N, N = 1, 2, ..., n, ...
n
Solution
• From 1, we have 1
n ≤ 1 for all n ∈ N
So β = 1 is an upper bound of P
1 1 1
For given ϵ > 0, choosing n0 ∈ N such that n0 < ϵ. Assume that there is n1 =1− n0 , then
1 1
=1− >1−ϵ
n1 n0
Thus Sup S = 1
1 1
=0+ ′ <0+ϵ
n′1 n0
Thus Inf S = 0
Example 2:
2021 2022
S= − m, n ∈ N
n m
4
3 Sequences of Real numbers
Solution
n ∈ [1, ∞)
2021 ∈ (0, 2021]
n
Since: then
m ∈ [1, ∞)
2022 ∈ (0, 2022]
m
Clearly, we have:
2021 2022 2022
x= n − m ≤ 2021 − m < 2021 − 0 = 2021
and
2021 2022 2022
x= n − m >0− m ≥ 0 − 2022 = −2022
For any m, n ∈ N, we have:
2021 2022
−2022 < x = n − m < 2021.
Thus S is bounded
3.1 Sequences
A sequence (xn )n is said to converge to x ∈ R if for every ϵ > 0 there exists a natural number n0 (ϵ) such
that
|xn − x| < ϵ, n ∈ N, n ≥ n0 .
If a sequence has a limit, we say that the sequence is convergent; if it has no limit, the sequence is divergent.
Notation: limn→∞ xn = x
5
3 Sequences of Real numbers
Theorem
1. limn→∞ sn + limn→∞ tn = s + t
3. limn→∞ sn tn = st
1 1
4. limn→∞ sn = s if sn ̸= 0 for every n ∈ N, and s ̸= 0
• Sandwich Theorem (Squeeze Theorem): Suppose that (xn )n , (yn )n , and(zn )n are sequences of real
numbers such that
zn ≤ xn ≤ yn , n ∈ N
1
1. If p > 0, then limn→∞ np =0
√
2. If p > 0, then limn→∞ n p=1
√
3. limn→∞ n n = 1
nα
4. If p > 0, and α ∈ R then limn→∞ (1+p)n =0
1. If (xn )n is increasing and bounded above then (xn ) is convergent and we have
lim xn = sup{xn : n ∈ N}
n→∞
2. (xn )n is decreasing and bounded below then (xn ) is convergent and we have
xn +1
Example: A sequence (xn )n is defined by x1 = 1, xn+1 = 3
6
4 Function
3. Find limn→∞ xn
Solution
1
By the Induction, xn > 2 for all n ∈ N
3. Find limn→∞ xn
Since (xn ) is convergent, by the Monotone Convergence Theorem, limn→∞ xn exists.
Let l = limn→∞ xn , l ∈ R
xn +1 l+1 1
Taking lim on the both sides of xn+1 = 3 for all n ∈ N, we have l = 3 or 2l = 1 or l = 2
1
Thus limn→∞ xn = 2
4 Function
• f is continuous at a, then:
7
4 Function
Example: Let
x2 +3x+2
if x < −1
x+1
f (x) = x + a if − 1 ≤ x ≤ 1
sin(πa) + (b2 − 2b)x + 4 if x > 1
x2 +3x+2
• f (x) = x+1 for x ∈ (−∞, −1)
Thus, f is continuous on (−∞, −1), [−1, 1], and (1, +∞). Hence, f is continuous everywhere if and only if f is
left-continuous
at -1, and f is right-continuous at 1.
limx→−1− f (x) = f (−1)
That is
lim
x→1+ f (x) = f (1)
limx→−1− x2 +3x+2 = 1
limx→1+ sin(πa) + (b2 − 2b)x + 4 = b2 − 2b + 4
x+1
Or and
f (−1) = −1 + a
f (1) = 1 + a
−1 + a = 1
It gives
1 + a = b2 − 2b + 4
a = 2
So we get
b = 1
8
4 Function
We have
f (0) = e0 + 2020 − 02020 − 2020 cos(0) = 1 > 0
f (2) = e−4042 + 2020 − 22020 − 2020 cos(2) < 0 + 2020 − 22020 − 2020 = −22020 < 0
Thus f (0)f (2) < 0. By the IVT, f (c) = 0 for some c ∈ (0, 2) ⊂ (0, +∞)
So c is the positive root of the given equation and satisfies the problem.
1 1
Example 2 (advanced): Let g(x) = x + x5 −1 , x ∈ (1, +∞). Prove that for a given m ∈ (0, +∞) there exists
c ∈ (1, +∞) such that g(c) = m
Solution
9
4 Function
or mx(x5 − 1) − x5 + 1 − x = 0
* Consider the function f (x) = mx(x5 − 1) − x5 + 1 − x (3), x ∈ [1, +∞)
Clearly f is continuous on [1, +∞)
On the other hand, we have
f (1) = −1 < 0
limx→∞ f (x) = limx→∞ mx(x5 − 1) − x5 + 1 − x = +∞ > 0
So, by the IVT, there is c ∈ (1, +∞) met that f (c) = 0
Hence c is a root of (1) (Since c is a root of (3), c ∈ (1, +∞), c ̸= 1)
10
4 Function
!
√
π π
g(x) = 2 sin cos(x) + cos sin(x)
4 4
√
π
g(x) = 2sin +x
4
• In addition, −1 ≤ sin 4 + x ≤ 1 for all x ∈ [−π, π]
π
√ √ √
π
It gives: − 2 ≤ g(x) = 2sin 4 + x ≤ 2
√ √
Thus, min g(x) = g(π) = − 2 and max g(x) = g(0) = 2 for all x ∈ [−π, π]
Show that there exists a, b ∈ (1, +∞) such that f (a) = min f (x) and f (b) = max f (x) ∀x ∈ (1, +∞)
Solution
• Similarly, since 99 < limx→+∞ f (x) = 102 < 103. We can find N > 1 which is large enough such that
99 < f (x) < 103 for all x > N
Since f(x) is continuous on (δ, N ), there exists a, b ∈ [δ, N ] such that f (a) = min f (x) and f (b) = max f (x) for
all x ∈ [δ, N ]
f (a) ≤ f (x)
It means that, for all x ∈ [δ, N ]
f (b) ≥ f (x)
f (a) ≤ 99 ≤ f (x), x ∈ (1, δ]
Since
f (a) ≤ 99 ≤ f (x), x ∈ [N, +∞)
11
4 Function
then f (a) ≤ 99 ∀x ∈ (1, +∞) and hence f (a) = min f (x) for all x ∈ (1, +∞)
f (b) ≥ 103 ≥ f (x), x ∈ (1, δ]
Similarly, because
f (b) ≥ 103 ≥ f (x), x ∈ [N, +∞)
then f (b) ≥ 103 ∀x ∈ (1, +∞) and hence f (b) = max f (x) for all x ∈ (1, +∞)
12
5 Midterm sample
5 Midterm sample
Question 1: Let ( )
1
S := − (−1)n n ∈ N
n
a2 + b2 = c2 ,
then a or b is even.
Question 3: A sequence (xn ) is defined by
xn
x1 = 8, xn+1 = + 2, n ∈ N
2
Show that:
(i) the sequence is bounded below by 4.
(ii) the sequence is convergent and find its limit.
Question 4: Let
2023x + a if x < −1;
f (x) := x2 +1
x+2 if − 1 ≤ x ≤ 1;
cos π x +(b2 − 2b)x +
5
if x > 1,
2 3
13