Interactive · 2 questions
We know how to add numbers, right? Let's test you. Which of following quantities equals ?
Okay, we're good with addition! Now let's say we had a bunch of numbers in an array, or as we will call it, a matrix, like so: And let's say we had another one! These two matrices are just numbers arranged in a nice format. But they are still numbers! Math is nice, so what it tells us is that, if we wanted to "add" these two matrices, we could treat them the same way we would treat numbers. In other words, we could just add the individual elements: Wasn't that easy? Just add the corresponding elements in the matrices!
What do you think happens if the matrices we are trying to add are not of the same size?
Right! Adding matrices is illegal when the sizes are not the same. We can use matrix addition to add vectors they are just like coordinates. Matrices can also be used in many other contexts; e.g. linear algebra. Be sure you understand how to add matrices correctly you move on the more advanced operations.