matrices pratice

1. Add the following matrices:

Matrix A:
| 1 2 |
| 3 4 |

Matrix B:
| 5 6 |
| 7 8 |

Solution:
Matrix A + Matrix B =
| 1+5 2+6 |
| 3+7 4+8 |
=
| 6 8 |
| 10 12 |

2. Subtract the following matrices:

Matrix C:
| 9 10 |
| 11 12 |

Matrix D:
| 4 3 |
| 2 1 |

Solution:
Matrix C - Matrix D =
| 9-4 10-3 |
| 11-2 12-1 |
=
| 5 7 |
| 9 11 |

3. Multiply the following matrices:

Matrix E:
| 2 3 |
| 4 5 |

Matrix F:
| 1 2 |
| 3 4 |

Solution:
Matrix E * Matrix F =
| 2*1+3*3 2*2+3*4 |
| 4*1+5*3 4*2+5*4 |
=
| 2+9 4+12 |
| 4+15 8+20 |
| 11 16 |
| 19 28 |