Mathematics for AI 1
Module 1: Sets, Logic, and Relations
A set is a collection of objects called elements, where indicates containment and indicates non-containment. Set operations include:
- Union:
- Intersection:
- Difference:
- Complement:
Logical propositions are built using the universal quantifier denoting "for all", and the existential quantifier denoting "there exists at least one". Logical predicates correspond to set theory such that the "and" operator corresponds to intersection , "or" to union , and "not" to complement .
A relation between sets and is a subset of the Cartesian product:
Relations possess distinct properties:
- Injective: .
- Surjective: .
- Bijective: Both injective and surjective.
- Functional: .
Relations on a single set can form an equivalence relation if they are reflexive, symmetric, and transitive. They form a partial order if they are reflexive, antisymmetric, and transitive.
Module 2: Functions, Real, and Complex Numbers
A function uniquely assigns every to exactly one . A function is invertible if and only if it is bijective. The composition of two invertible functions and is also invertible, adhering to the property:
The field of real numbers obeys field axioms including commutativity, associativity, distributivity, and the existence of identity and inverse elements. A subset is bounded from above if:
Complex numbers extend real numbers using the imaginary unit , where . A complex number has the canonical form , where is the real part and is the imaginary part . The absolute value is defined as:
They can also be written in Euler form using polar coordinates:
Complex division is executed using the complex conjugate :
Module 3: Vectors and Linear Algebra
The set of -dimensional vectors is denoted , with elements . The scalar (dot) product of vectors and is:
The Euclidean norm measures vector length and is given by:
The triangle inequality applies to Euclidean norms:
A matrix is a rectangular arrangement of scalars. The matrix product for and is computed via row-column scalar products:
The inverse of a square matrix satisfies . It can be found using the adjunct matrix and the determinant:
Alternatively, Gauss-Jordan elimination transforms an augmented matrix into via elementary row operations.
Module 4: Systems of Linear Equations
A linear system of equations with unknowns can be solved via Cramer's rule when :
However, Cramer's rule is computationally inefficient (). Gaussian Elimination is preferred, transforming to an upper triangular system using multipliers:
This elimination process implicitly factorizes into a lower triangular matrix and an upper triangular matrix :
Solving then reduces to sequential triangular substitutions: (forward substitution) and (backward substitution).
A matrix represents a linear mapping, and the Rank-Nullity theorem connects its kernel (null-space) to its rank:
Module 5: Sequences and Series
A sequence maps an index set to a set of values. A sequence is a Cauchy sequence if its terms become arbitrarily close:
In , a sequence converges if and only if it is a Cauchy sequence.
An infinite series sums a sequence, , where is the partial sum. Absolute convergence occurs when , which implies standard convergence.
Important series proofs and tests:
- Geometric Series: for .
- Harmonic Series: (divergent).
- Root Test: Convergent if .
- Ratio Test: Convergent if .
Module 6: Continuous Functions and Limits
A function is continuous at if it satisfies the - criterion:
The composition of two continuous functions is continuous. The Heavyside function serves as a classic prototype of a discontinuous function.