| Dot product / produit scalaire | \[ \vec{a} \cdot \vec{b} ~~=~~ a_1 b_1 + a_2 b_2 \gray{+ ... +} a_n b_n \] | |||
| Norme / magnitude / longueur | \[|| \vec{a} || ~~=~~ \sqrt{ \vec{a} \cdot \vec{a} } \] | |||
| Vecteur normalisé | \[ \hat{a} ~~=~~ \frac{\vec{a}}{|| \vec{a} ||} \] | |||
| Angle entre deux vecteurs | \[ \orange{\theta} ~~=~~ acos \left( \frac{ \vec{a} \cdot \vec{b} }{ ||\vec{a}|| ~ ||\vec{b}|| } \right) ~~;~~ \orange{\theta} \in [0, \pi] \] \[ \gray{ \delta ~~=~~ \theta \cdot \frac{a_x b_y - a_y b_x}{|a_x b_y - a_y b_x|} ~~;~~ \delta \in [-\pi, \pi] ~~;~~ \theta, \delta \in \mathbb{R}^2 } \] | |||
| Cross product / produit vectoriel | \[ \blue{\vec{c}} = \red{\vec{a}} \times \green{\vec{b}} = \quad \begin{pmatrix} \red{a_y} \green{b_z} - \red{a_z} \green{b_y} \\ \red{a_z} \green{b_x} - \red{a_x} \green{b_z} \\ \red{a_x} \green{b_y} - \red{a_y} \green{b_x} \end{pmatrix} \quad \begin{matrix} \red{\vec{a}} \perp \blue{\vec{c}} \\ \green{\vec{b}} \perp \blue{\vec{c}} \end{matrix} \] | |||
| Aire décrite par deux vecteurs | \[ \orange{S} ~~=~~ || \vec{a} \times \vec{b} || \] | |||
|
Produit Mixte (presque mais pas un déterminant) |
\[ [ \vec{u}, \vec{v}, \vec{w} ] = [ \vec{v}, \vec{w}, \vec{u} ] = [ \vec{w}, \vec{u}, \vec{v} ] \quad = \quad \\[1em] \blue{ - [ \vec{w}, \vec{v}, \vec{u} ] = - [ \vec{v}, \vec{u}, \vec{w} ] = - [ \vec{u}, \vec{w}, \vec{v} ] } \\[2em] \vec{u} \cdot \vec{v} \times \vec{w} \quad = \quad \begin{pmatrix} a \\ b \\ c \end{pmatrix} \cdot \begin{pmatrix} d \\ e \\ f \end{pmatrix} \times \begin{pmatrix} g \\ h \\ i \end{pmatrix} \quad = \quad \\[2em] a(ei-fh) ~+~ b(fg-di) ~+~ c(dh-ee) \] | Volume du parallélépipède* définit par \( a \), \( b \) et \( c \) dans \( \mathbb{R}^3 \) *comme un bipède mais parallélépi | ||
| Vecteur perpendiculaire au plan | \[ \begin{aligned} & \pi : \quad \orange{a}x + \orange{b}y + \orange{c}z + d = 0 \\[1em] & \orange{\vec{t}} = \begin{pmatrix} \orange{a} \\ \orange{b} \\ \orange{c} \end{pmatrix} \end{aligned} \] | |||
| Equation de droite avec décalages | \[d : \quad y = \text{pente} (x - \Delta x) + \Delta y \] | |||
| Equation de droite passant par deux points | \[d : \quad y = \frac{B_y - A_y}{B_x - A_x} (x - A_x) + A_y \] | |||
| Perpendicularité 2D | \[ \begin{pmatrix} x \\ y \end{pmatrix} \perp \blue{ \begin{pmatrix} -y \\ x \end{pmatrix} } \quad ; \quad \begin{pmatrix} x \\ y \end{pmatrix} \perp \orange{ \begin{pmatrix} y \\ -x \end{pmatrix} } \] | |||
| Régression | \[ \tilde{x} = (A^T A)^{-1} A^T \vec{b} \\[1em] \gray{\arg\min_{\vec{x}} \| A \vec{x} - \vec{b} \|^2} \\[1em] \gray{ A = \begin{bmatrix} x_1 ~~ 1 \\ x_2 ~~ 1 \\ x_3 ~~ 1 \end{bmatrix} \quad \vec{b} = \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} \\[1em] A = \begin{bmatrix} {x_1}^2 ~~ x_1 ~~ 1 \\ {x_2}^2 ~~ x_2 ~~ 1 \\ {x_3}^2 ~~ x_3 ~~ 1 \end{bmatrix} \quad \vec{b} = \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} \\[1em] A = \begin{bmatrix} x_i^{n-j} && ... \\ ... && ... \end{bmatrix} \quad \vec{b} = \begin{bmatrix} y_i \\ ... \end{bmatrix} } \] |
| Deux plans 3D | \[ \orange{d} = \pi_1 \cap \pi_2 \\[1em] P + \lambda ( \vec{n_a} \times \vec{n_b}) \quad\quad \begin{matrix} P \in \pi_1 \\ P \in \pi_2 \end{matrix} \] | ||
| deux droites 2D | \[ \orange{I} = d_1 \cap d_2 \] | ||
| \[ d_1 : y = ax + b \\ d_2 : y = cx + d \] | \[ \orange{I} = \Big( ~~ \frac{d-b}{a-c} ~~,~~ \frac{ad-cb}{a-c} ~~ \Big) \] | ||
| \[ d_1 = \overrightarrow{AB} \\ d_2 = \overrightarrow{CD} \] |
Direct
\[ \begin{aligned}
& \orange{I_x} = \frac{ (A_x B_y - A_y B_x)(C_x - D_x) - (A_x - B_x)(C_x D_y - C_y D_x) }{ (A_x - B_x)(C_y - D_y) - (A_y - B_y)(C_x - D_x) }
\\[1em]
& \orange{I_y} = \frac{ (A_x B_y - A_y B_x)(C_y - D_y) - (A_y - B_y)(C_x D_y - C_y D_x) }{ (A_x - B_x)(C_y - D_y) - (A_y - B_y)(C_x - D_x) }
\end{aligned} \]
Factorisé
\[ \begin{aligned}
&
\vec{u} = A - B
\quad;\quad
\vec{v} = C - D \\[1em]
&
\alpha =
\begin{vmatrix}
A_x & B_x \\
A_y & B_y
\end{vmatrix}
\quad;\quad
\beta =
\begin{vmatrix}
C_x & D_x \\
C_y & D_y
\end{vmatrix}
\quad;\quad
g =
\begin{vmatrix}
\vec{u}_x & \vec{v}_x \\
\vec{u}_y & \vec{v}_y
\end{vmatrix}
\\[2em]
& \orange{I_x} = \frac{
\begin{vmatrix}
\alpha & \vec{u}_x \\
\beta & \vec{v}_x
\end{vmatrix}
}{g}
\quad;\quad
\orange{I_y} = \frac{
\begin{vmatrix}
\alpha & \vec{u}_y \\
\beta & \vec{v}_y
\end{vmatrix}
}{g}
\end{aligned}
\]
|
||
| \( \text{proj}( \orange{\vec{v}}, \blue{\vec{n}} ) \) | \[ \green{\vec{p}_n} = \frac{ \orange{\vec{v}} \cdot \blue{\vec{n}} }{ \blue{\vec{n}} \cdot \blue{\vec{n}}} ~ \blue{\vec{n}} \\[3em] \green{\vec{p}_n} = \left\| \orange{\vec{v}} \right\| \cos \theta ~ \blue{ \hat{n} } \] | ||
| \[ \text{proj} ( \orange{\vec{v}} , \blue{\pi} ) \] | \[ \green{\vec{p}_\pi} = \orange{\vec{v}} - \frac{ \orange{\vec{v}} \cdot \blue{\vec{n}} }{ \blue{\vec{n}} \cdot \blue{\vec{n}}} ~ \blue{\vec{n}} \] | ||
| Symétrique | \[ \orange{P'} = \orange{P} - 2 \frac{ \orange{P} \cdot \blue{\vec{n}} + \blue{d}}{ \blue{\vec{n}} \cdot \blue{\vec{n}}} ~ \blue{\vec{n}} \] | \[ P - 2 \frac{P \cdot \vec{n} + d}{\vec{n} \cdot \vec{n}} ~ \vec{n} = \\[2em] P ~~-~~ 2 \frac{P \cdot \vec{n}}{\vec{n} \cdot \vec{n}} ~ \vec{n} + ~~-~~~ 2 \frac{d}{\vec{n} \cdot \vec{n}} ~ \vec{n} \] |
| Polar to Cartesian | Cartesian to Polar | |
|---|---|---|
| 2D | \[ \begin{aligned} & x = r ~ \cos \theta \\[1em] & y = r ~ \sin \theta \end{aligned} \] | \[ \begin{aligned} & \theta = \text{atan2}(y, x) \\[1em] & r = \sqrt{x^2 + y^2} \end{aligned} \] |
| 3D | \[ \begin{aligned} & x = r ~ \sin \theta \cos \phi \\[1em] & y = r ~ \sin \theta \sin \phi \\[1em] & z = r ~ \cos \phi \end{aligned} \] | \[ \begin{aligned} & \theta = \text{atan2}(y, x) \\[1em] & \phi = \arccos(\hat{v} \cdot \hat{z}) \\[1em] & r = \sqrt{x^2 + y^2 + z^2} \end{aligned} \] |
| UV image transformation matrix | |
|---|---|
| Polar to Cartesian | Cartesian to Polar |
| \[ \begin{aligned} & x' = - \tau (x - 0.25) \cos \left( \frac{\theta}{2} \right) + 0.5\\[1em] & y' = - \tau (x - 0.25) \sin \left( \frac{\theta}{2} \right) + 0.5 \end{aligned} \] | \[ \begin{aligned} & x' = \frac{ \mod( \text{\text{atan2}}( - x + 0.5 ~,~ y - 0.5) + \frac{\pi}{2} ~,~ \tau) - \pi}{\tau} + 0.5 \\[1em] & y' = \frac{\sqrt{(-x + 0.5)^2 + (y - 0.5)^2}}{2} \end{aligned} \] |
|
|
| Equirectangular to 3D space | |
|---|---|
| \[ \begin{aligned} & x' = \frac{\text{\text{atan2}}(y, x)}{\tau} \\[2em] & y' = - \frac{\arccos ( \hat{v} \cdot \hat{z} )}{\pi} \\[2em] & \gray{ \vec{v} = (x, y, z) \quad;\quad \hat{z} = (0, 0, 1) } \end{aligned} \] | \[ \begin{aligned} & x' = \frac{\text{\text{atan2}}(y, x)}{\tau} + \tfrac{1}{2} \\[2em] & y' = - \frac{\arccos ( \hat{v} \cdot \hat{z} )}{\pi} \\[2em] & \vec{v} = (x, y, z) \quad;\quad \hat{z} = (0, 0, 1) \end{aligned} \] |
|
|
| x | ||||
|---|---|---|---|---|
| \( - \) | \( 0 \) | \( + \) | ||
| y | \( + \) | \( \green{\arctan (y/x)} \) | \( \pi / 2 \) | \( \green{\arctan (y/x)} \) |
| \( 0 \) | \( \green{\arctan (y/x)} \) | \( \times \) | \( \green{\arctan (y/x)} \) | |
| \( - \) | \( \arctan (y/x) - \pi \) | \( - \pi / 2\) | \( \arctan (y/x) + \pi \) | |
| Cartésien | Vectoriel | ||
|---|---|---|---|
| droite | \[ d: \] | \[ y = ax + b \quad\red{\not\Leftrightarrow}\quad ax + by + c = 0 \] | \[ P + \lambda \vec{v} \] |
| plan | \[ \pi : \] | \[ z = - \frac{ax + by + d}{c} \quad\green{\Leftrightarrow}\quad ax + by + cz + d = 0 \] | \[ P + \lambda \vec{u} + \delta{v} \] |
| Wedge Product / Produit Extérieur | |||
|---|---|---|---|
| \[ \mathbb{R}^n\] | \[ \vec{u} \wedge \vec{v} = \sum_{1 \leq i \leq j \leq n} (u_iv_j - u_jv_i) e_i \wedge e_j \\[1em] \gray{ = \sum_{i=1}^n \sum_{j=1}^n (u_iv_j - u_jv_i) e_i \wedge e_j } \] | ||
| Exemples | lien | termes | |
| \[ \orange{\mathbb{R}} \] | \[ (3) \wedge (2) = 3 \cdot 2 - 2 \cdot 3 = 0 \\ \] | Toujours \( 0 \) | \[ C_2^1 = 1 \] |
| \[ \orange{\mathbb{R}^2} \] | \[ \binom{2}{3} \wedge \binom{ \orange{4} }{ \blue{1} } = \gray{ (2 \cdot 1 - 3 \cdot 4) e_1 \wedge e_2 = } -10 e_1 \wedge e_2 \] | \[ \binom{2}{3} \cdot \binom{ \blue{1} }{ \orange{4} } = -10 \] | \[ C_2^2 = 1 \] |
| \[ \orange{\mathbb{R}^3} \] | \[ \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} \wedge \begin{pmatrix} 3 \\ 2 \\ 4 \end{pmatrix} = \\[1em] \gray{ (1 \cdot 2 - 0 \cdot 3) e_1 \wedge e_2 + (0 \cdot 4 - 2 \cdot 2) e_2 \wedge e_3 + (1 \cdot 4 - 2 \cdot 3) e_1 \wedge e_3 = } \\[1em] \orange{2} (e_1 \wedge e_2) \green{-2} (e_1 \wedge e_3) \blue{-4} (e_2 \wedge e_3) \] | \[ \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} \times \begin{pmatrix} 3 \\ 2 \\ 4 \end{pmatrix} = \begin{pmatrix} \blue{-4} \\ \red{+}\green{2} \\ \orange{2} \end{pmatrix} \] | \[ C_2^3 = 3 \] | \[ \orange{\mathbb{R}^4} \] | \[ \begin{pmatrix} 1 \\ 0 \\ 1 \\ 0 \end{pmatrix} \wedge \begin{pmatrix} 2 \\ -1 \\ 3 \\ 4 \end{pmatrix} = \\[1em] \begin{matrix} \gray{0} && +3 (e_1 \wedge e_2) && -1 (e_1 \wedge e_3) && +4 (e_1 \wedge e_4) \\[1em] \gray{\times} &&\gray{0} && -3 (e_2 \wedge e_3) && +0 (e_2 \wedge e_4) \\[1em] \gray{\times} && \gray{\times} && \gray{0} && +4 (e_3 \wedge e_4) \\[1em] \gray{\times} && \gray{\times} && \gray{\times} && \gray{0} && \end{matrix} \] | \[ C_2^4 = 6 \] |