CALCULATE

CALCULATE

** 2x2 matrix addition and subtraction calculator** uses two $2\times 2$ matrices $A$ and $B$ and calculates both their sum $A+B$ and their difference $A-B$. It is an online math tool specially programmed to perform matrix addition and subtraction between the two $2\times 2$ matrices.

It is necessary to follow the next steps:

- Enter two $2\times2$ matrices in the box. Elements of matrices must be real numbers.
- Press the "
**GENERATE WORK**" button to make the computation; - 2x2 matrix addition and subtraction calculator will give the sum of two $2\times2$ matrices and the difference between the first matrix and the second matrix.

The sum of two matrices $A=[a_{ij}]_{2\times2}$ and $B=[a_{ij}]_{2\times2}$ is determined by the following formula
$$\begin{align}&\left(
\begin{array}{cc}
a_{11} & a_{12} \\
a_{21} & a_{22} \\
\end{array}
\right)+
\left(
\begin{array}{cc}
b_{11} & b_{12} \\
b_{21} & b_{22} \\
\end{array}
\right)= \left(\begin{array}{ccc}
a_{11}+b_{11}& a_{12}+b_{12} \\
a_{21}+b_{21} &a_{22}+b_{22}\\
\end{array}\right)\end{align}$$

The difference between $A=[a_{ij}]_{2\times2}$ and $B=[a_{ij}]_{2\times2}$ is determined by the following formula
$$\begin{align} &\left(
\begin{array}{cc}
a_{11} & a_{12} \\
a_{21} & a_{22} \\
\end{array}
\right)-
\left(
\begin{array}{cc}
b_{11} & b_{12} \\
b_{21} & b_{22} \\
\end{array}
\right)= \left(\begin{array}{ccc}
a_{11}-b_{11}& a_{12}-b_{12} \\
a_{21}-b_{21} &a_{22}-b_{22}\\
\end{array}\right)\end{align}$$

Matrices are a powerful tool in mathematics, science and life. Matrices are everywhere and they have significant applications. For example, spreadsheet such as Excel or written a table represents a matrix. The word "matrix" is the Latin word and it means "womb". This term was introduced by J. J. Sylvester (English mathematician) in 1850.
The first need for matrices was in the studying of systems of simultaneous linear equations.

A matrix is a rectangular array of numbers, arranged in the following way
$$A=\left(
\begin{array}{cccc}
a_{11} & a_{12} & \ldots&a_{1n} \\
a_{21} & a_{22} & \ldots& a_{2n} \\
\ldots &\ldots &\ldots&\ldots\\
a_{m1} & a_{m2} & \ldots&a_{mn} \\
\end{array}
\right)=\left[
\begin{array}{cccc}
a_{11} & a_{12} & \ldots&a_{1n} \\
a_{21} & a_{22} & \ldots& a_{2n} \\
\ldots &\ldots &\ldots&\ldots\\
a_{m1} & a_{m2} & \ldots&a_{mn} \\
\end{array}
\right]$$
There are two notation of matrix: in parentheses or box brackets. The terms in the matrix are called its entries or its elements.
Matrices are most often denoted by upper-case letters, while the corresponding lower-case letters, with two subscript indices, are the elements of matrices.
For examples, matrices are denoted by $A,B,\ldots Z$ and its elements by $a_{11}$ or $a_{1,1}$, etc. The horizontal and vertical lines of entries in a matrix are called rows and columns, respectively.

The size of a matrix is a Descartes product of the number of rows and columns that it contains. A matrix with $m$ rows and $n$ columns is called an $m\times n$ matrix. In this case $m$ and $n$ are its dimensions. If a matrix consists of only one row, it is called a row matrix}. If a matrix consists only one column is called a column matrix. A matrix which contains only zeros as elements is called a zero matrix.

Matrices $A$ and $B$ can be added if and only if their sizes are equal. Such matrices are called **commensurate** for addition or
subtraction. Their sum is a matrix $C=A+B$ with elements
$$c_{ij}=a_{ij}+b_{ij}$$
The matrix of sum has the same size as the matrices $A$ and $B$.
This means, each element in $C$ is equal to the sum of the elements in $A$ and $B$ that are located in corresponding places. For example,
$c_{12}=a_{12}+b_{12}$. If two matrices have different sizes, their sum is not defined.
It is easy to prove that $A+B=B+A$, in other words the addition of matrices is commutative operation.

A $2\times 2$ matrix has $2$ columns and $2$ rows. For example, the sum of two $2\times 2$ matrices $A$ and $B$ is a matrix $C$ such that
$$\begin{align} &C=\left(
\begin{array}{cc}
a_{11} & a_{12} \\
a_{21} & a_{22} \\
\end{array}
\right)+
\left(
\begin{array}{cc}
b_{11} & b_{12} \\
b_{21} & b_{22} \\
\end{array}
\right)= \left(\begin{array}{ccc}
a_{11}+b_{11}& a_{12}+b_{12} \\
a_{21}+b_{21} &a_{22}+b_{22}\\
\end{array}\right)\end{align}$$
For example, let us find the sum for
$$A=\left(
\begin{array}{cc}
5 & 8 \\
3 & 8 \\
\end{array}
\right)\quad\mbox{and}\quad B=\left(
\begin{array}{cc}
3 & 8 \\
8 & 9 \\
\end{array}
\right)$$
Using the matrix addition formula, the sum of the matrices $A$ and $B$ is the matrix
$$A+B=\left(
\begin{array}{cc}
5+3 & 8+8 \\
3+8 & 8+9 \\
\end{array}
\right)=\left(
\begin{array}{cc}
8 & 16 \\
11 & 17 \\
\end{array}
\right)$$

Matrices $A$ and $B$ can be subtracted if and only if their sizes are equal. The difference $A-B$ of two $m\times n$ matrices is equal to the sum $A + (-B)$,
where $-B$ represents the additive inverse of the matrix $B$. So, the difference a matrix $C=A-B$ with elements
$$c_{ij}=a_{ij}+(-b_{ij})=a_{ij}-b_{ij}$$
The matrix $C$ has the same size as the matrices $A$ and $B$.This means, each element in $C$ is equal to the difference between the elements of $A$ and $B$ that are located in corresponding places. For example,$c_{12}=a_{12}-b_{12}$. If two matrices have different sizes, their difference is not defined.
The subtraction of matrices is non-commutative operation, i.e $A-B\ne B-A$. Subtracting two matrices is very similar to adding matrices with the only difference being subtracting corresponding elements.

A $2\times 2$ matrix has $2$ columns and $2$ rows. For example, the difference between two $2\times 2$ matrices $A$ and $B$ is a matrix $C$ such that
$$\begin{align} C=&\left(
\begin{array}{cc}
a_{11} & a_{12} \\
a_{21} & a_{22} \\
\end{array}
\right)-
\left(
\begin{array}{ccc}
b_{11} & b_{12} \\
b_{21} & b_{22} \\
\end{array}
\right)= \left(\begin{array}{ccc}
a_{11}-b_{11}& a_{12}-b_{12} \\
a_{21}-b_{21} &a_{22}-b_{22}\\
\end{array}\right)\end{align}$$
Let us apply the $2\times 2$ matrix subtraction formula for finding the difference $A-B$ for
$$A=\left(
\begin{array}{cc}
5 & 8 \\
3 & 8 \\
\end{array}
\right)\quad\mbox{and}\quad B=\left(
\begin{array}{cc}
3 & 8 \\
8 & 9 \\
\end{array}
\right)$$
Therefore, the difference between the matrices $A$ and $B$ is the matrix
$$A-B=\left(
\begin{array}{cc}
5-3 & 8-8 \\
3-8 & 8-9 \\
\end{array}
\right)=\left(
\begin{array}{cc}
2 & 0 \\
-5 & -1 \\
\end{array}
\right)$$
The $2\times 2$ Matrix Addition and Subtraction work with steps shows the complete step-by-step calculation for finding the sum and difference of two $2\times2$ matrices $A$ and $B$ using the matrix addition and subtraction formulas. For any other matrices, just supply elements of $2$ matrices whose elements are real numbers and click on the GENERATE WORK button. The grade school students may use this $2\times 2$ Matrix Addition and Subtraction to generate the work, verify the results of addition and subtracting matrices derived by hand, or do their homework problems efficiently. This calculator can be of interest for solving linear equations and some other mathematical and real life problems.

Transformations in two-dimensional Euclidean plane can be represented by $2\times 2$ matrices, and ordered pairs (coordinates) can be represented by $2 \times 1$ matrices. Dilation, translation, axes reflections, reflection across the $x$-axis, reflection across the $y$-axis, reflection across the line $y=x$, rotation, rotation of $90^o$ counterclockwise around the origin, rotation of $180^o$ counterclockwise around the origin, etc, use $2\times 2$ matrix operations.

**Practice Problem 1 : **

Find the sum $A+B$ and difference $B-A$ of matrices $$A=\left(
\begin{array}{cc}
2 & 10 \\
15 & -6 \\
\end{array}
\right)\quad\mbox{and}\quad B=\left(
\begin{array}{cc}
-13 & -4 \\
13 & 0 \\
\end{array}
\right)$$
**Practice Problem 2 : **

Translate the vertex matrix $\left(
\begin{array}{cc}
1 & 3 \\
5 & -6 \\
\end{array}
\right)$ by the matrix $\left(
\begin{array}{cc}
-1 & 2 \\
-1 & 2 \\
\end{array}
\right)$.

The 2x2 matrix addition and subtraction calculator, formula, example calculation (work with steps), real world problems and practice problems would be very useful
for grade school students (K-12 education) to understand the addition and subtraction of two or more matrices. Using this concept they can be able
to look at real life situations and transform them into mathematical models.