Difference between revisions of "Linear algebra"
| Line 41: | Line 41: | ||
* '''Chebyshev''': <math>|| x||_\infty = \max_i|x_i|</math> (take limit of the <math>L_p\;</math>/Minkowski norm) | * '''Chebyshev''': <math>|| x||_\infty = \max_i|x_i|</math> (take limit of the <math>L_p\;</math>/Minkowski norm) | ||
* Magnitude of the norm falls as <math>p</math> increases because you're taking a bigger root (1/p). More formally, <math>||x||_p</math> is a non-increasing function of <math>p</math> | * Magnitude of the norm falls as <math>p</math> increases because you're taking a bigger root (1/p). More formally, <math>||x||_p</math> is a non-increasing function of <math>p</math> | ||
| + | * For any inner product space, a (<math>L_2</math>) norm is induced by the inner product: <math>||x|| = \sqrt{\langle x,x\rangle}</math> | ||
Revision as of 02:44, 14 March 2021
- Some Notes on Linear Algebra
[math]\displaystyle{ \begin{align} f(x) & = (a+b)^2 \\ & = a^2+2ab+b^2 \\ \end{align} }[/math]
- Unit vector:
- [math]\displaystyle{ e_i = (0,\dots,0,1,0,\dots,0) }[/math]
- Order relations
Several ways to rank order vectors but no complete ordering works (vectors are only partially ordered). If for all corresponding elements [math]\displaystyle{ x_i }[/math] and [math]\displaystyle{ y_i }[/math] belonging to vectors [math]\displaystyle{ x, y }[/math], then: [math]\displaystyle{ x\gt y }[/math]
- Partial ordering: if [math]\displaystyle{ x_i\geq y_i }[/math] then [math]\displaystyle{ x }[/math] is greater than or equal to [math]\displaystyle{ y }[/math]
- W is a subset of V and operations in the 2 objects are the same: [math]\displaystyle{ \mathcal{W}\subseteq\mathcal{V} }[/math]
- Intersection of 2 vector spaces of same order is a vector space; however, the union of 2 vector spaces is not necessarily a vector space (e.g., [math]\displaystyle{ v_1 + v_2 }[/math] may not be in [math]\displaystyle{ \mathcal{V}_1\cup\mathcal{V}_2) }[/math].
- "Spaces of vectors" = a set of vectors of the same order together with the addition operator
- For [math]\displaystyle{ \mathcal{V}_1, \mathcal{V}_2 }[/math] are disjoint vector spaces, their sum is the direct sum: [math]\displaystyle{ \mathcal{V}=\mathcal{V}_1\oplus\mathcal{V}_2 }[/math].
- Cones
- Set of vectors that contains all positive scalar multiples of any vector in the set is a cone
- Set of vectors [math]\displaystyle{ V }[/math] is a convex cone if [math]\displaystyle{ \forall v_1, v_2 \in V }[/math] and [math]\displaystyle{ \forall a, b\geq 0 \implies av_1 + bv_2 \in V }[/math]
- Inner Products
The dot product is actually a special case of the inner product (i.e., the inner product not restricted to vectors in [math]\displaystyle{ \R^3 }[/math])
- [math]\displaystyle{ \langle x, y\rangle \equiv x\cdot y\equiv x^Ty = \sum_i x_i y_i }[/math]
The mapping from a vector space [math]\displaystyle{ \mathcal{V} }[/math] to [math]\displaystyle{ \R }[/math] has the following properties:
- Nonnegativity and identity mapping: if [math]\displaystyle{ x\neq 0 }[/math], then [math]\displaystyle{ \langle x,x\rangle \gt 0 }[/math] and [math]\displaystyle{ \langle 0,x \rangle = \langle x,0 \rangle = \langle 0,0 \rangle = 0 }[/math]
- Commutativity: [math]\displaystyle{ \langle x,y\rangle = \langle y,x\rangle }[/math]
- Factoring of scalar multiplication in dot products: [math]\displaystyle{ \langle ax, y\rangle = a\langle x,y\rangle }[/math] for real [math]\displaystyle{ a }[/math]
- Relation of vector addition to dot product addition: [math]\displaystyle{ \langle x+y,z \rangle = \langle x,z\rangle + \langle x,z\rangle }[/math]
- The Cauchy-Schwarz Inequality
-
- [math]\displaystyle{ \langle x,y\rangle \leq \langle x,x\rangle^{\frac{1}{2}} \langle y,y\rangle^{\frac{1}{2}} }[/math]
- Norms
A function [math]\displaystyle{ \parallel\cdot\parallel }[/math] from a set of objects [math]\displaystyle{ S }[/math] to [math]\displaystyle{ \R }[/math] satisfying 3 conditions
- Nonnegativity and identity mapping: [math]\displaystyle{ x\neq 0 \implies \parallel x\parallel \gt 0 }[/math] and [math]\displaystyle{ \parallel 0 \parallel = 0 }[/math]
- Relation of scalar multiplication to real multiplication: [math]\displaystyle{ \parallel ax\parallel = |a|\parallel x\parallel }[/math] for real [math]\displaystyle{ a }[/math]
- Triangle inequality: [math]\displaystyle{ \parallel x+y\parallel\; \leq\; \parallel x\parallel + \parallel y\parallel }[/math]
General case: [math]\displaystyle{ || x||_p = \left (\displaystyle\sum_i |x_i|^p\right ) ^{\frac{1}{p}} }[/math]
- Manhattan: [math]\displaystyle{ ||x||_1 = \sum_i|x_i| }[/math]
- Euclidean: [math]\displaystyle{ || x||_2 = \sqrt{\sum_i x_i^2} = \sqrt{\langle x,x\rangle} }[/math]
- Chebyshev: [math]\displaystyle{ || x||_\infty = \max_i|x_i| }[/math] (take limit of the [math]\displaystyle{ L_p\; }[/math]/Minkowski norm)
- Magnitude of the norm falls as [math]\displaystyle{ p }[/math] increases because you're taking a bigger root (1/p). More formally, [math]\displaystyle{ ||x||_p }[/math] is a non-increasing function of [math]\displaystyle{ p }[/math]
- For any inner product space, a ([math]\displaystyle{ L_2 }[/math]) norm is induced by the inner product: [math]\displaystyle{ ||x|| = \sqrt{\langle x,x\rangle} }[/math]