向量,又叫矢量,係有方向嘅量,由距離同方向組成,尤見於數學與物理。相反無方向嘅量,就叫標量或純量。向量 a {\displaystyle a} 表示做 a → {\displaystyle {\vec {a}}} 。由 A {\displaystyle A} 點射到 B {\displaystyle B} 點嘅向量寫做 A B → {\displaystyle {\vec {AB}}} 。
距離係1嘅向量又叫單位向量。向量 a {\displaystyle a} 嘅單位向量記做 a ^ {\displaystyle {\hat {a}}} 。
x , y {\displaystyle x,y} 座標入面,通常用 i ^ {\displaystyle {\hat {i}}} 代表向右移動一格;用 j ^ {\displaystyle {\hat {j}}} 代表向上移動一格。所以一個二維向量可以寫做 a → = x i ^ + y j ^ {\displaystyle {\vec {a}}=x{\hat {i}}+y{\hat {j}}} 。
設: