Vector Addition
Add and subtract vectors by combining entries in matching positions while preserving their order and dimensions.
Combine corresponding entries
A vector is an ordered list of numbers. Add two vectors only when they have the same shape, then combine the first entries, the second entries, and so on. Each position in the answer comes from that same position in the original vectors.
[[3], [−1], [2]] + [[1], [4], [−3]]Subtract signed components
Subtraction also works one position at a time. Subtract the entire entry in the second vector, including its sign. Fractions follow the same rule, so find a common denominator only within the entry being calculated.
[[5], [1/2], [−2]] − [[2], [1/3], [−1]]Add row vectors
A row vector keeps its single row when added to another row vector of the same length. Do not turn the result into a column or change the entry order. The dimensions and the position of every entry are part of the answer.
[[2, −3, 1/2]] + [[−5, 4, 1/3]]Practice
Practice: problems like this one, made and checked in your browser.
Recap
- Vector addition and subtraction require matching dimensions.
- Combine corresponding entries and preserve their order.
- A row vector stays a row, and a column vector stays a column.