In mathematics, the quaternions are a number system that extends the complex numbers. They were first described by Irish mathematician Sir William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. A striking feature of quaternions is that the product of two quaternions is noncommutative, meaning that the product of two quaternions depends on which factor is to the left of the multiplication sign and which factor is to the right. Hamilton defined a quaternion as the quotient of two directed lines in a three-dimensional space or equivalently as the quotient of two vectors. Quaternions can also be represented as the sum of a scalar and a vector. Read more