Vectors can be represented algebraically using ordered pairs. The magnitude of a vector can be found using the Pythagorean theorem by treating the horizontal and vertical components as the legs of a right triangle. Vectors can be added and subtracted by adding or subtracting their corresponding components, and multiplied by a scalar by multiplying each component by the scalar. A unit vector has a magnitude of 1 and vectors can be expressed as the sum of unit vectors in the x and y directions.