Mathematics for AI II - Mathematics for AI II
Unit 4
25 min read
In this subchapter, we define what it means for a function to have a limit, what it means to be continuous at a point, and prove the equivalence of the sequence (Heine) and (Cauchy) definitions. Definition of a Limit (Cauchy): We say that if and only if: The condition ensures that . The value of itself is irrelevant to the limit. Definition of Continuity at a Point : A function is continuous at if and only if . - Heine (Sequence Continuity): For every sequence in that converges to (), the sequence of function values converges to (). - Cauchy ( Continuity): Example 1: Equivalence Proof (2023 Exam, Q4c)
Prove that the sequence definition of continuity implies the definition at a point . Proof by Contradiction: Assume the sequence definition holds, but the definition is false. If the condition is false, its logical negation is: Since this holds for all , we can choose a sequence of window sizes for . For each , there must exist a point such that: Now look at the sequence : - Since for all , by the Sandwich Theorem, . - By the sequence definition of continuity, this must imply . - However, our sequence satisfies for all , which means cannot converge to . This is a contradiction. Therefore, the definition must hold. Example 2: Rigorous Proof (2023 Exam, Q4d)
Use the definition of continuity to prove that is continuous at . Solution: We want to show that for any , we can find a such that . First, factor the target term: To control the size of , we assume a preliminary bound . If : Thus, . We want this to be less than , so we require . To satisfy both constraints, we choose: Verification: Let be given. If : - Since , we have . - Since , we have . - Therefore, . Example 3: Moodle Logic Audit (2025 Exam, CF Q1)
Statement: "If and are continuous at , then is continuous at ." Solution: Logically incorrect. If , then is undefined at , hence not continuous. To make the statement true, we must add the condition . Exercise 1 (Analytical Proof):
Prove that is continuous at using the formal definition. Solution: We want to show that for any , we can find a such that: First, simplify the target term: We want this to be less than : We choose . Verification: Let be given, and choose . If : Exercise 2 (Conceptual Product Logic):
Let and (where , if , and if ). Is continuous at ?
Does the continuity of a product function at imply that both and must be continuous at ? Solution:
The product is for all . Since is a linear polynomial, it is continuous everywhere, including at .
No. In our example above, is continuous at , and is continuous at . However, is discontinuous at (since ). Thus, the product of a continuous and a discontinuous function can be continuous. \subsection{Subchapter 1.2: 1D Continuity Theorems (IVT, Bolzano, Bisection, EVT)}
Key concepts
Unit 5
34 min read
& & &
& & &
& & &
& & &
Example 1: Difference Quotient Proof (2023 Exam, Q2b)
Let . Prove that the derivative of is using the definition of the difference quotient. Proof: By the definition of the derivative: Using the Binomial Theorem to expand : Substitute this back: Now, take the limit as . Every term containing vanishes, leaving: Example 2: Inverse Function Derivative (Classic Exam Template)
Let . Find the value of without a calculator. Solution: - We want to find . Here . - Find such that . - By inspection (guessing small integers), we see that works: . Since , the function is strictly increasing, meaning is the unique solution. - Compute the derivative of : . - Evaluate the derivative at : . - Use the inverse derivative formula: Example 3: Differentiability of Piecewise Functions
Let if and if . Determine if is differentiable at . Solution: - Check Continuity: , and . Since , the function is continuous. - Check Derivatives from both sides: - Right-hand derivative: . - Left-hand derivative: . - Since the left-hand derivative () and the right-hand derivative () are not equal, is not differentiable at (the graph has a sharp kink at the origin). Exercise 1 (Inverse Derivative):
Let . Find without a calculator. Solution: - Let . Find such that . - By inspection, is the unique solution (since ). - Compute the derivative: . - Evaluate at : . - Use the formula: Exercise 2 (Piecewise Differentiability):
Consider the piecewise function: \begin{cases} x^2 + x & \text{if } x \ge 1 3x - 1 & \text{if } x < 1 \end{cases}$$ Determine if is differentiable at without a calculator. Solution: - Check Continuity at : - . - . - . Since the limits match the function value, is continuous at . - Check Derivatives: - For , . Thus, the right-hand derivative is . - For , . Thus, the left-hand derivative is . - Since the left-hand and right-hand derivatives are equal (), the function is differentiable at , and its derivative is . Exercise 3 (Kink proof):
Use the difference quotient definition to prove that is not differentiable at . Solution: The difference quotient limit at is: Let's evaluate the limit from both sides: - From the right (), , so: . - From the left (), , so: . Since the limits from the left and right do not match (), the limit of the difference quotient does not exist. Thus, is not differentiable at . \subsection{Subchapter 2.2: 1D Curve Sketching (Monotonicity, Extrema, Convexity)}
Key concepts
Unit 6
24 min read
In this subchapter, we explore how the definite integral is constructed as a limit of Riemann sums (using upper and lower sums), the algebraic properties of integrals, and the Fundamental Theorem of Calculus (FTC) which links differentiation and integration. 1. Antiderivatives (Indefinite Integrals) - Definition: Let be defined on an open interval . A function is called an antiderivative or primitive of on if: - Uniqueness: If is an antiderivative of , then (where is any constant) is also an antiderivative, because the derivative of any constant is zero: . - Notation: We write the indefinite integral as: 2. The Definite Integral (Riemann Integral) - Intuition: The definite integral represents the signed area between the graph of and the -axis from to . - Partitioning: To find this area formally, we divide the interval into equal subintervals of width . The boundaries are for . - Lower & Upper Sums: - The lower sum approximates the area using the minimum height of the function in each subinterval: - The upper sum approximates the area using the maximum height of the function in each subinterval: - Riemann Integrability: If is continuous on , then as , the lower and upper sums converge to the exact same value. This limit is the definite integral: - Gauß Summation Formula: To compute limits of Riemann sums by hand, we use: 3. Key Properties of Definite Integrals - Linearity: - Reversing Limits: (and ) - Splitting the Domain: For any , - Triangle Inequality: 4. Mean Value Theorem (MVT) for Integrals - If is continuous on , there exists some value such that: Here, is the average value of the function on the interval. 5. The Fundamental Theorem of Calculus (FTC) - Part I (Area Function Derivative): Let be continuous on . The function is differentiable, and its derivative is: - Leibniz Rule (Chain Rule for Variable Limits): If the upper limit is a function , then: - Part II (Integral Evaluation): If is any antiderivative of , then: Example 1: Definite Integral from definition (Riemann Sum)
Compute the definite integral using the limit of Riemann lower sums. Solution: - Set up the partition: We divide into intervals. Width . The boundaries are for . - Formulate the lower sum : Since is strictly increasing, the minimum value in each subinterval is at the left endpoint : - Apply Gauß's Summation Formula: - Take the limit as : Example 2: FTC Part I and the Chain Rule
Find the derivative of the function for all . Solution: Let . By the Leibniz Rule: Example 3: Antiderivative Initial Value Problem (2023 Exam style)
Find the antiderivative of which satisfies the condition . Solution: - Find the general antiderivative: - Apply the initial condition : - Write down the specific antiderivative: Exercise 1 (Riemann Definition):
Compute the definite integral using the limit of Riemann lower sums. Solution: - Set up the partition: Width . Boundaries for . - Formulate the lower sum : Since is increasing, the minimum on is at : Using and Gauß's formula: - Take the limit as : Exercise 2 (FTC Part I with Variable Limits):
Find the derivative of the function for all . Solution: Apply Leibniz Rule with upper limit : Exercise 3 (Antiderivative with Initial Condition):
Find the function satisfying with initial condition . Solution: - Integrate to find the general solution: - Impose : - Write the final function: \subsection{Subchapter 3.2: Advanced Integration Techniques (Substitution & Parts)}
Key concepts
Unit 7
13 min read
In this subchapter, we study periodic functions, how to extend a function defined on a finite interval to the entire real line periodically, and the continuity conditions at the boundaries. 1. Periodicity - Definition: A function is called periodic with period if: - Normalization (): In this course, we normalize the period to . A function is 1-periodic if . If we know the function values on , we know them everywhere on . 2. Periodic Extension - Definition: If a function is defined only on the half-open interval , we extend it to a 1-periodic function on the entire real line using the fractional part of , denoted : 3. Continuity of Periodic Extensions - A periodic extension is continuous on if and only if: - is continuous on the open interval . - The limits at the boundaries match: . - If the boundary limits do not match, the periodic extension will have a jump discontinuity of size at every integer . 4. Even and Odd Symmetries - Even Functions: Symmetric about the -axis: . - Odd Functions: Symmetric about the origin: . Example 1: Continuity Audit of Sawtooth vs. Triangle Waves
Analyze the continuity of the periodic extensions of: - on (Sawtooth wave). - on (Triangle wave). Solution: - Sawtooth wave : Check the boundary limits: Since the limits do not match, the periodic extension of is not continuous on . It has jump discontinuities at . - **Triangle wave g(x) = \frac{1**{2} - \left|x - \frac{1}{2}\right|:} Check the boundary limits: Since , the boundary limits match. Thus, the periodic extension of is continuous on . Example 2: Symmetries & Definite Integrals
Show that the function is odd and evaluate its integral over a symmetric period . Solution: - Check odd symmetry: - Evaluate integral: Since is odd and the interval is symmetric around : Exercise 1 (Periodic Extension Audit):
Let on . - Compute the periodic extension values and . - Determine if the periodic extension of is continuous on . Solution: - **Use the fractional part :} - For : . So . - For : . So . - Check boundary limits: Since , the periodic extension of is not continuous on . It has jump discontinuities at all integers. Exercise 2 (Symmetry Check & Integration):
Let on . - Show that is symmetric around . - Compute the integral . Solution: - Check symmetry around : We shift by setting , which yields on . Since , the shifted function is even, meaning is symmetric around . - Compute the integral: Substitute . Limits: , . Since is even, we can write: \subsection{Subchapter 4.2: Trigonometric Polynomials & Fourier Series}
Key concepts