MA 135 Applied Discrete Math Study Notes
MA 135 Applied Discrete Math Study Notes
1.1 Vectors
Definition of a Vector: A vector is a mathematical object that has both a magnitude and a direction.
Example: $v = (1, 3)$
Vector Notation:
In vector notation, $W=(-3,4) * 4$ represents a scaled vector.
The formula in the context of vectors is referred to as Formula on 19.2.
Notation:
Initial point of a vector $a=(-3,1)$
Terminal point of a vector $a=(-1,4)$
Standard position vector $v = (b1-a1, b2-a2)$
A standard position vector has its origin as the initial point.
n-tuple: An ordered list of n numbers represented as $(a1, a2,…, a_n)$.
Example in real numbers: $v = (1, 3, -2)$ is a vector in $ ext{IR}^3$
Zero Vector: A vector where all components are zero, e.g., $(0,0,0,…,0)$
Applications of Vectors:
Vectors are utilized to store data.
Vectors are also used to create geometric shapes.
1.2 Finding Standard Position Vector
Finding the Standard Position Vector:
Given an initial point $(a1, a2)$ and a terminal point $(b1, b2)$, the standard position vector is:
This formula can be extended to any dimension where
Magnitude of a Vector: The length of vector $v$, denoted by $ ext{||v||}$, is defined as:
Example: Finding the magnitude of vector with initial point $(1,5)$ and terminal point $(2,-4)$.
Standard position vector: $V = (2-1, -4-5) = (1, -9)$
Magnitude:
Direction of a Vector: Described by the angle from the positive x-axis to the vector, measured in a counterclockwise direction.
Example: For the vector $V = (2,2)$, the angle is $45^ ext{o}$.
1.3 Working with Directions
Finding Direction:
Example: To find the direction of the vector from $(6, 1)$ to $(-2, -5)$, standard position is:
The angle calculated as:
Specific Vector Calculations:
Example: Find the direction and magnitude of a vector starting from $(-2,5)$ and ending at $(-3,-1)$:
Standard position vector $V = (-3 - (-2), -1 - 5) = (-1, -6)$
Magnitude:
Direction $ heta$:
Examples of Other Vectors:
Example with vector $V = (-3,-5)$ results in:
For vector $w = (-4,5)$,
1.4 Vector Review
Vector Representation: In vector notation, $v = [7]$ signifies a vertical vector with length $ ext{||v||} = ext{sqrt}(a1^2 + a2^2 + … + a_n^2)$
Direction: The direction of vector $v$ is determined as the angle from the positive x-axis measured counterclockwise.
Example: $w=(-3,5)$ which needs to be analyzed for direction.
1.5 Vector Operations
Scalar Multiplication:
If $k$ is a constant and $v$ is a vector in $ ext{IR}$, then:
If $k > 0$, then the result is a stretch of $v$, if $0<k<1$, it's a shrink, and if $k < 0$, the resultant vector is scaled in the opposite direction of $v$.
Adding and Subtracting Vectors: For vectors in the same dimension, use:
Geometrical Representation:
Refer to graphical illustrations for visualization.
1.6 Unit Vector (Normalizing)
Definition: A unit vector has a length equal to 1.
Given vector $v$, to find its unit vector:
Example for $v = (8, -2)$:
Length calculation leads to unit vector $u$.
1.7 Dot Product of Vectors
Definition: For vectors $v$ and $w$, the dot product is defined as:
v ullet w = ext{sum}(ai bi) = (a1 b1 + a2 b2 + … + an bn)Example computation.
Properties of Dot Products:
Commutative: $u ullet v = v ullet u$
Distributive: $u ullet (v + w) = u ullet v + u ullet w$
Associative: $(cu)v = c(u ullet v)$
Geometric Interpretation:
u ullet v = ||u|| imes ||v|| imes ext{cos}( heta) where $ heta$ is the angle between vectors.Example Calculations: Using specific numbers for vectors to show detailed numerical operations.
1.8 Orthogonal Vectors
Definition: Two vectors are orthogonal if the angle between them is $90^ ext{o}$.
Condition: $u ullet v = 0$.
Scalar Projection: The scalar projection of vector $V$ onto vector $W$, denoted as:
ext{Comp}_W V = rac{V ullet W}{||W||}Further Explanation: Deriving the projection formula based on vector relations.
1.9 Vector Projection
Definition: The vector projection of $u$ onto $v$ is achieved:
ext{Proj}_{v} u = rac{u ullet v}{||v||^2} vExamples: Working through numeric samples.
2. Matrices
Definition of a Matrix: A matrix is an array of numbers represented as:
A = egin{bmatrix} a{11} & a{12} & … & a{1n} \ a{21} & a{22} & … & a{2n} \ … & … & … & … \ a{m1} & a{m2} & … & a_{mn} \ ext{where } m ext{ is the number of rows and } n ext{ is the number of columns} \ ext{Example: } A = egin{bmatrix} -3 & 5 \ 3 & 2 \ ext{This indicates a } 2 imes 2 ext{ matrix.}Matrix Types:
Zero Matrix: All elements are zero.
Identity Matrix: Forms diagonal of ones.
Operations on Matrices:
Scalar Multiplication:
k imes A = k egin{bmatrix} a{11} & a{12} \ a{21} & a{22} \ ext{will lead to each element being scaled by } k. a1x1 + a2x2 + … + anxn = bExample: $x + y = 1$ is a linear equation.
Matrix Representation: A system can be represented as:
AX = B where $A$ is the coefficient matrix and $B$ is the constant matrix.Solving Systems: Use techniques such as EROS (Elementary Row Operations) to transform matrices.
Example Problem: Show steps taken to solve a system of equations.
4. Integer Properties
Types of Numbers:
Natural Numbers: positive whole integers.
Integers: positive, negative whole numbers, and zero.
Rational Numbers: can be expressed as the quotient of two integers.
Real Numbers: includes both rational and irrational numbers.
Divisibility: An integer $k$ divides integer $m$ if:
m = nk ext{ for some integer } n.Example: $2$ divides $6$.
Divisibility Definitions and Notations.
Linear combinations, division algorithms, and existence of unique integers pertaining to modular arithmetic.
5. Modular Arithmetic
Definition: Given an integer $m > 1$, $x ext{ mod } m$ represents the remainder when $x$ is divided by $m$.
Properties: Different theorems based on mod operations.
Example of Modular Operations: Show examples of addition and multiplication in modular systems.
Theorem Summary: Briefly detail important theorems regarding modular arithmetic.
6. Prime Factorization
Definition of a Prime Number: An integer greater than 1, divisible only by itself and 1.
Fundamental Theorem of Arithmetic: Every positive integer greater than 1 can be expressed uniquely as a product of prime numbers.
Common Applications: Finding the greatest common divisor (gcd) and least common multiple (lcm) through prime factorization.
Standard Position Vector:
V = (b1 - a1, b2 - a2) V = (b1 - a1, b2 - a2, …, bn - an) ||v|| = \sqrt{a1^2 + a2^2 + … + a_n^2} theta=\text{angle from the positive x-axis measured counterclockwise} k \times v = k (a1, a2, a3) = (k a1, k a2, k a3, …, k a_n) V + W = (a1 + b1, a2 + b2, …, an + bn) V - W = (a1 - b1, a2 - b2, …, an - bn) u = \frac{v}{||v||} v • w = \text{sum}(ai bi) = (a1 b1 + a2 b2 + … + an bn) u • v = ||u|| \times ||v|| \times \cos(\theta) \text{Comp}_W V = \frac{V • W}{||W||} \text{Proj}_{v} u = \frac{u • v}{||v||^2} v a1 x1 + a2 x2 + … + an xn = b AX = B m = nk \text{ for some integer } n x \text{ mod } m = \text{remainder when } x \text{ is divided by } m k imes A = k \begin{bmatrix} a{11} & a{12} \ a{21} & a{22} \end{bmatrix} \text{ will lead to each element being scaled by } k. A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}, \ B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix}, A + B = \begin{bmatrix} 1+5 & 2+6 \ 3+7 & 4+8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \ 10 & 12 \end{bmatrix}. AX = B where $A$ is the coefficient matrix and $B$ is the constant matrix.Example Problem: Show steps taken to solve a system of equations. The specific calculations for this will depend on the provided systems of equations, but general steps include:
Set up the augmented matrix
Use techniques such as EROS (Elementary Row Operations) to transform matrices.
Properties of Matrix Addition and Multiplication:
Commutative Property
Associative Property
Distributive Property
Matrix Multiplication
Definition: Matrix multiplication involves the multiplication of two matrices to produce a third matrix. The number of columns in the first matrix must equal the number of rows in the second matrix.
Matrix Representation: If we have two matrices, A and B, and we want to multiply them:
A = \begin{bmatrix} a{11} & a{12} & … & a{1n} \ a{21} & a{22} & … & a{2n} \ … & … & … & … \ a{m1} & a{m2} & … & a_{mn} \end{bmatrix} B = \begin{bmatrix} b{11} & b{12} & … & b{1p} \ b{21} & b{22} & … & b{2p} \ … & … & … & … \ b{n1} & b{n2} & … & b_{np} \end{bmatrix} C = AB = \begin{bmatrix} c{11} & c{12} & … & c{1p} \ c{21} & c{22} & … & c{2p} \ … & … & … & … \ c{m1} & c{m2} & … & c_{mp} \end{bmatrix}
where each element $c_{ij}$ is calculated as:
c{ij} = \sum{k=1}^{n} a{ik} b{kj} A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}, \, B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix} C = AB = \begin{bmatrix} (15 + 27) & (16 + 28) \ (35 + 47) & (36 + 48) \end{bmatrix} C = \begin{bmatrix} 19 & 22 \ 43 & 50 \end{bmatrix} $$
Properties of Matrix Multiplication:
Not Commutative: Generally, $AB \neq BA$.
Associative: $(AB)C = A(BC)$.
Distributive: $A(B + C) = AB + AC$.
Summary
Ensure the dimensions are suitable before multiplication and follow the specific rule for calculating the resulting matrix based on summing products of corresponding elements.