EZ

Eduzan

Learning Hub

Eduzan
Eduzan / AI & Machine Learning

Mathematical Foundations

Vectors:

Definition: A vector is an ordered list of numbers (scalars) that represent a point in space or a direction. Vectors can have different dimensions (e.g., 2D, 3D) and are commonly used to represent physical quantities like velocity or force.

Notation: A vector is often written as v or v⃗\vec{v}v, and in component form as [v1,v2,…,vn][v_1, v_2, \dots, v_n][v1​,v2​,…,vn​].

Operations:

  • Addition: a⃗+b⃗=[a1+b1,a2+b2,… ]\vec{a} + \vec{b} = [a_1 + b_1, a_2 + b_2, \dots]a+b=[a1​+b1​,a2​+b2​,…]
  • Scalar Multiplication: cv⃗=[cv1,cv2,… ]c\vec{v} = [cv_1, cv_2, \dots]cv=[cv1​,cv2​,…]
  • Dot Product: a⃗⋅b⃗=a1b1+a2b2+…\vec{a} \cdot \vec{b} = a_1b_1 + a_2b_2 + \dotsa⋅b=a1​b1​+a2​b2​+…
  • Cross Product: A vector operation in 3D that produces another vector orthogonal to the two input vectors.

2. Matrices:

Definition: A matrix is a rectangular array of numbers arranged in rows and columns. Matrices are used to represent linear transformations, systems of linear equations, and more.

Notation: A matrix is usually written as a capital letter, e.g., A, with elements aija_{ij}aij​ representing the element in the iiith row and jjjth column.

Operations:

  • Addition: A+B=[aij+bij]\mathbf{A} + \mathbf{B} = [a_{ij} + b_{ij}]A+B=[aij​+bij​]
  • Scalar Multiplication: cA=[caij]c\mathbf{A} = [ca_{ij}]cA=[caij​]
  • Matrix Multiplication: A×B\mathbf{A} \times \mathbf{B}A×B involves the dot product of rows and columns.
  • Transpose: AT\mathbf{A}^TAT flips the matrix over its diagonal.
  • Inverse: A−1\mathbf{A}^{-1}A−1, if it exists, such that AA−1=I\mathbf{A}\mathbf{A}^{-1} = \mathbf{I}AA−1=I (identity matrix).

Tensors:

  • Definition: A tensor is a generalization of vectors and matrices to higher dimensions. Tensors are used in deep learning, physics, and more complex data representations.
  • Notation: Tensors are often denoted by uppercase letters (e.g., T) with indices representing different dimensions, such as TijkT_{ijk}Tijk​.
  • Operations: Tensor operations generalize matrix operations to higher dimensions, including addition, multiplication, and contraction.
End of lesson.