Skip to main content

Linear algebra

Definition. Let M={1,2,…,m} and N={1,2,…,n}. A map equation, A(i,j)=(aij)i=1,m‾j=1,n‾A(i,j)={{\left( {{a}_{ij}} \right)}_{\begin{smallmatrix} i=\overline{1,m} \\ j=\overline{1,n} \end{smallmatrix}}} is called a matrix of type (m,n);(m,n); with m rows and n columns:

A=(a11 a12...a1na21 a22...a2n... ... ... ...am1 am2...amn)A=\left( \begin{aligned} & {{a}_{11}}\text{ }{{a}_{12}} ... {{a}_{1n}} \\ & {{a}_{21}}\text{ }{{a}_{22}} ... {{a}_{2n}} \\ & ...\text{ }...\text{ }...\text{ }... \\ & {{a}_{m1}}\text{ }{{a}_{m2}} ... {{a}_{mn}} \\ \end{aligned} \right) and we write equation for the set of matrices of type (m,n)(m,n) with complex entries.

If equation then the matrix is called square of order nn, and the set of such matrices is written Mn(C){{M}_{n}}(\mathbb{C}).

Operations with matrices:

  1. Addition

Let equation, then C=A+B∈Mm,n(C)C=A+B\in {{M}_{m,n}}(\mathbb{C}) where equation equation is their sum.

Properties, (∀)A,B,C∈Mm,n(C)(\forall )A,B,C\in {{M}_{m,n}}(\mathbb{C}):

  • equation (commutativity);

  • equation (associativity);

  • A+O=O+A=AA+O=O+A=A (the identity element is the zero matrix OO);

  • A+(−A)=(−A)+A=OA+(-A)=(-A)+A=O (the opposite of equation is equation).

  1. Multiplication by scalars

Let equation and equation, then B=λ⋅A∈Mm,n(C)B=\lambda \cdot A\in {{M}_{m,n}}(\mathbb{C}), where bij=λ⋅aij{{b}_{ij}}=\lambda \cdot {{a}_{ij}} equation is the product of the matrix A with the scalar equation.

Properties, (∀)A,B∈Mm,n(C)(\forall )A,B\in {{M}_{m,n}}(\mathbb{C}) and λ,μ∈C\lambda ,\mu \in \mathbb{C}:

  • 1⋅A=A1\cdot A=A;

  • equation;

  • λ⋅(A+B)=λ⋅A+λ⋅B\lambda \cdot \left( A+B \right)=\lambda \cdot A+\lambda \cdot B;

  • equation;

    1. The transpose of a matrix A=equation with m rows and n columns is a matrix written tA=(bij)i=1,nj=1,m{}^{t}A={{\left( {{b}_{ij}} \right)}_{\begin{smallmatrix} i=1,n \\ j=1,m \end{smallmatrix}}} with n rows and m columns, where bij = aij, (∀)i=1,n‾,j=1,m‾.(\forall ) i=\overline{1,n}, j=\overline{1,m}\text{.}

    2. Matrix multiplication

Let equation and B∈Mn,p(C)B\in {{M}_{n,p}}(\mathbb{C}), then equation, where cij=∑k=1naik⋅bkj\displaystyle {{c}_{ij}}=\sum\limits_{k=1}^{n}{{{a}_{ik}}\cdot {{b}_{kj}}}, equation is their product.

Properties:

  • (A⋅B)⋅C=A⋅(B⋅C)\left( A\cdot B \right)\cdot C=A\cdot \left( B\cdot C \right) (associativity);

  • A⋅In=In⋅AA\cdot {{I}_{n}}={{I}_{n}}\cdot A (identity element). The identity matrix In=(1 0⋯00 1⋯0⋯⋯⋯0 0⋯1){{I}_{n}}=\left( \begin{aligned} & 1\text{ }0 \cdots 0 \\ & 0\text{ }1 \cdots 0 \\ & \cdots \cdots \cdots \\ & 0\text{ }0 \cdots 1 \\ \end{aligned} \right) in Mn(C){{M}_{n}}(\mathbb{C});

  • (A+B)⋅C=A⋅C+B⋅C;\left( A+B \right)\cdot C=A\cdot C+B\cdot C;

  • A⋅(B+C)=A⋅B+A⋅CA\cdot \left( B+C \right)=A\cdot B+A\cdot C.

Determinants

Let Mn(C){{M}_{n}}(\mathbb{C}) be the set of square matrices of order n with entries in C\mathbb{C}: A=(a11 a12⋯a1na21 a22⋯a2n⋯ ⋯ ⋯ ⋯an1 an2⋯ann)A=\left( \begin{aligned} & {{a}_{11}}\text{ }{{a}_{12}} \cdots {{a}_{1n}} \\ & {{a}_{21}}\text{ }{{a}_{22}} \cdots {{a}_{2n}} \\ & \cdots \text{ }\cdots \text{ }\cdots \text{ }\cdots \\ & {{a}_{n1}}\text{ }{{a}_{n2}} \cdots {{a}_{nn}} \\ \end{aligned} \right), A∈Mn(C).A\in {{M}_{n}}(\mathbb{C}).

The determinant of the order-2 matrix (a11a12a21a22)\left( \begin{matrix} {{a}_{11}} & {{a}_{12}} \\ {{a}_{21}} & {{a}_{22}} \\ \end{matrix} \right) is Δ=∣a11a12a21a22∣\Delta =\left| \begin{matrix} {{a}_{11}} & {{a}_{12}} \\ {{a}_{21}} & {{a}_{22}} \\ \end{matrix} \right|=a11a22 – a12a21.

The determinant of the order-3 matrix A=(a11a12a13a21a22a23a31a32a33)\left( \begin{matrix} {{a}_{11}} & {{a}_{12}} & {{a}_{13}} \\ {{a}_{21}} & {{a}_{22}} & {{a}_{23}} \\ {{a}_{31}} & {{a}_{32}} & {{a}_{33}} \\ \end{matrix} \right) is the number

Δ=det⁡A=∣a11a12a13a21a22a23a31a32a33∣\Delta =\det A=\left| \begin{matrix} {{a}_{11}} & {{a}_{12}} & {{a}_{13}} \\ {{a}_{21}} & {{a}_{22}} & {{a}_{23}} \\ {{a}_{31}} & {{a}_{32}} & {{a}_{33}} \\ \end{matrix} \right|=a11a22a33+a21a12a13+a31a12a23−a31a22a13−a32a23a11−a33a21a12{{a}_{11}}{{a}_{22}}{{a}_{33}}+{{a}_{21}}{{a}_{12}}{{a}_{13}}+{{a}_{31}}{{a}_{12}}{{a}_{23}}-{{a}_{31}}{{a}_{22}}{{a}_{13}}-{{a}_{32}}{{a}_{23}}{{a}_{11}}-{{a}_{33}}{{a}_{21}}{{a}_{12}}.

The rule of minors, or expanding the determinant along a row or column.

Choose a row or a column and multiply each entry aij of that row or column by the lower-order determinant obtained by deleting row i and column j, and by (-1)i+j; adding the resulting products gives the value of the determinant. ∣a11a12a13a21a22a23a31a32a33∣=(−1)1+1a11∣a22a23a32a33∣+(−1)1+2a12∣a21a23a31a33∣+(−1)1+3a13∣a21a22a31a32∣==−a21∣a12a13a32a33∣+a22∣a11a13a31a33∣−a23∣a11a12a31a32∣=...\begin{aligned} & \left| \begin{matrix} {{a}_{11}} & {{a}_{12}} & {{a}_{13}} \\ {{a}_{21}} & {{a}_{22}} & {{a}_{23}} \\ {{a}_{31}} & {{a}_{32}} & {{a}_{33}} \\ \end{matrix} \right|={{(-1)}^{1+1}}{{a}_{11}}\left| \begin{matrix} {{a}_{22}} & {{a}_{23}} \\ {{a}_{32}} & {{a}_{33}} \\ \end{matrix} \right|+{{(-1)}^{1+2}}{{a}_{12}}\left| \begin{matrix} {{a}_{21}} & {{a}_{23}} \\ {{a}_{31}} & {{a}_{33}} \\ \end{matrix} \right|+{{(-1)}^{1+3}}{{a}_{13}}\left| \begin{matrix} {{a}_{21}} & {{a}_{22}} \\ {{a}_{31}} & {{a}_{32}} \\ \end{matrix} \right|= \\ & =-{{a}_{21}}\left| \begin{matrix} {{a}_{12}} & {{a}_{13}} \\ {{a}_{32}} & {{a}_{33}} \\ \end{matrix} \right|+{{a}_{22}}\left| \begin{matrix} {{a}_{11}} & {{a}_{13}} \\ {{a}_{31}} & {{a}_{33}} \\ \end{matrix} \right|-{{a}_{23}}\left| \begin{matrix} {{a}_{11}} & {{a}_{12}} \\ {{a}_{31}} & {{a}_{32}} \\ \end{matrix} \right|=... \\ \end{aligned}

Properties of determinants:

  1. The determinant of a matrix equals the determinant of its transpose.

det⁡(A)=det⁡(tA)\det \left( A \right)=\det \left( {}^{t}A \right)

  1. A matrix with a row (or column) whose entries are all 0 has determinant 0.

  2. If all entries of a row (or column) of a matrix are multiplied by a number, the value of the determinant is multiplied by that number.

  3. If to all entries of a row (respectively column) we add the corresponding entries of another row (respectively column) multiplied by a number, the value of the determinant does not change.

  4. If a matrix has two proportional rows (respectively columns), then the determinant is zero.

  5. If two rows (or two columns) of a square matrix are interchanged, the value of the determinant is multiplied by -1.

  6. The determinant of the product of two matrices of the same order equals the product of the determinants of those matrices.

det⁡(A⋅B)=det⁡(A)⋅det⁡(B)\det \left( A\cdot B \right)=\det \left( A \right)\cdot \det \left( B \right)

  1. If a row (respectively column) of the determinant of a matrix is a linear combination of the other rows (respectively columns), that determinant is zero.

The value Δ\Delta of the determinant of the matrix associated with a system determines whether the system is consistent: if Δ\Delta≠0, the system is consistent with a unique solution; if Δ\Delta=0, then the system may be inconsistent or consistent and indeterminate.

Linear systems

We write aij{{a}_{ij}} for the coefficients, xi{{x}_{i}} for the unknowns, bi{{b}_{i}} for the constant terms, mm for the number of equations, nn for the number of unknowns, r for the rank of the matrix A or the rank of the system, and A‾\overline{\text{A}} for the augmented matrix.

A system is consistent with a unique solution if:

  1. r=m=n and det⁡A=Δ≠0\det A=\Delta \ne 0;

  2. r=n<m rangA‾=rrang\overline{\text{A}}=r.

A system is consistent and indeterminate if:

  1. r=m<n;

  2. r<min(m,n) and rangA‾=rangA=r.rang\overline{\text{A}}=rang\text{A}=r.

A system is inconsistent if r≤min(m,n)\text{r}\le \text{min}(m,n) and rangA‾=r+1.rang\overline{\text{A}}=r+1.

Cramer's method.

Let S be a linear system with unknowns xi and Δ\Delta its determinant. Suppose Δ\Delta≠0 and r=m=n. Write Δxi{{\Delta }_{{{x}_{i}}}} for the determinant obtained from Δ\Delta by replacing the column of coefficients of the unknown xi with the column of constant terms.

The solution of the linear system {a11x1+a12x2=b1a21x1+a22x2=b2\left\{ \begin{aligned} & {{a}_{11}}{{x}_{1}}+{{a}_{12}}{{x}_{2}}={{b}_{1}} \\ & {{a}_{21}}{{x}_{1}}+{{a}_{22}}{{x}_{2}}={{b}_{2}} \\ \end{aligned} \right. is x1 =Δx1Δ\frac{{{\Delta }_{x1}}}{\Delta } and x2=Δx2Δ\frac{{{\Delta }_{{{x}_{2}}}}}{\Delta }.

A=(a11a12a21a22)A=\left( \begin{matrix} {{a}_{11}} & {{a}_{12}} \\ {{a}_{21}} & {{a}_{22}} \\ \end{matrix} \right), A‾=(a11a12b1a21a22b2)\overline{\text{A}}=\left( \begin{matrix} {{a}_{11}} & {{a}_{12}} & {{b}_{1}} \\ {{a}_{21}} & {{a}_{22}} & {{b}_{2}} \\ \end{matrix} \right)

The solution of the linear system {a11x1+a12x2+a13x3=b1a12x1+a22x2+a23x3=b2a13x1+a23x2+a33x3=b3\left\{ \begin{aligned} & {{a}_{11}}{{x}_{1}}+{{a}_{12}}{{x}_{2}}+{{a}_{13}}{{x}_{3}}={{b}_{1}} \\ & {{a}_{12}}{{x}_{1}}+{{a}_{22}}{{x}_{2}}+{{a}_{23}}{{x}_{3}}={{b}_{2}} \\ & {{a}_{13}}{{x}_{1}}+{{a}_{23}}{{x}_{2}}+{{a}_{33}}{{x}_{3}}={{b}_{3}} \\ \end{aligned} \right. is x1=Δx1Δ\frac{{{\Delta }_{x1}}}{\Delta }, x2=Δx2Δ\frac{{{\Delta }_{{{x}_{2}}}}}{\Delta } and x3=Δx3Δ\frac{{{\Delta }_{{{x}_{3}}}}}{\Delta }.

The solution of the system {a11x1+a12x2+a13x3+a14x4=b1a12x1+a22x2+a23x3+a24x4=b2a13x1+a23x2+a33x3+a34x4=b3a14x1+a24x2+a34x3+a44x4=b4\begin{aligned} & \left\{ \begin{aligned} & {{a}_{11}}{{x}_{1}}+{{a}_{12}}{{x}_{2}}+{{a}_{13}}{{x}_{3}}+{{a}_{14}}{{x}_{4}}={{b}_{1}} \\ & {{a}_{12}}{{x}_{1}}+{{a}_{22}}{{x}_{2}}+{{a}_{23}}{{x}_{3}}+{{a}_{24}}{{x}_{4}}={{b}_{2}} \\ & {{a}_{13}}{{x}_{1}}+{{a}_{23}}{{x}_{2}}+{{a}_{33}}{{x}_{3}}+{{a}_{34}}{{x}_{4}}={{b}_{3}} \\ & {{a}_{14}}{{x}_{1}}+{{a}_{24}}{{x}_{2}}+{{a}_{34}}{{x}_{3}}+{{a}_{44}}{{x}_{4}}={{b}_{4}} \\ \end{aligned} \right. \\ & \\ \end{aligned} is x1=Δx1Δ\frac{{{\Delta }_{{{x}_{1}}}}}{\Delta }, x2=Δx2Δ\frac{{{\Delta }_{{{x}_{2}}}}}{\Delta }, x3=Δx3Δ\frac{{{\Delta }_{{{x}_{3}}}}}{\Delta } and x4=Δx4Δ\frac{{{\Delta }_{{{x}_{4}}}}}{\Delta }.

A homogeneous linear system has all determinants Δxi{{\Delta }_{{{x}_{i}}}} zero; it therefore always admits at least the zero solution (x1,x2,x3)=(0,0,0). Such a system also admits non-zero solutions if Δ\Delta=0.

Systems of homogeneous equations

Such a system has the form:

{a1x2+b1xy+c1y2=d1a2x2+b2xy+c2y2=d2\left\{ \begin{aligned} & {{a}_{1}}{{x}^{2}}+{{b}_{1}}xy+{{c}_{1}}{{y}^{2}}={{d}_{1}} \\ & {{a}_{2}}{{x}^{2}}+{{b}_{2}}xy+{{c}_{2}}{{y}^{2}}={{d}_{2}} \\ \end{aligned} \right.

Suppose d1≠0 i d2≠0{{d}_{1}}\ne 0\text{ i }{{d}_{2}}\ne 0; in this case we multiply the first equation and add it to the second so as to obtain an equivalent system of the form:

{a1x2+b1xy+c1y2=d1a3x2+b3xy+c3y2=0\left\{ \begin{aligned} & {{a}_{1}}{{x}^{2}}+{{b}_{1}}xy+{{c}_{1}}{{y}^{2}}={{d}_{1}} \\ & {{a}_{3}}{{x}^{2}}+{{b}_{3}}xy+{{c}_{3}}{{y}^{2}}=0 \\ \end{aligned} \right.

Since d1≠0{{d}_{1}}\ne 0 the system does not have the solution x=0x=0 and y=0y=0. We divide the second equation by x2{{x}^{2}} and obtain the second-degree equation in yx\frac{y}{x}: a3+b3yx+c3(yx)2=0{{a}_{3}}+{{b}_{3}}\frac{y}{x}+{{c}_{3}}{{\left( \frac{y}{x} \right)}^{2}}=0 which, by the substitution yx=t\frac{y}{x}=t, gives: c3t2+b3t+a3=0{{c}_{3}}{{t}^{2}}+{{b}_{3}}t+{{a}_{3}}=0. Solving this equation generally gives two values t1 i t2{{t}_{1}}\text{ i }{{t}_{2}}, that is yx=t1\frac{y}{x}={{t}_{1}} and yx=t2\frac{y}{x}={{t}_{2}}.

Solving the original system is equivalent to solving the following two systems:

{y=t1xa1x2+b1xy+c1y2=d1\left\{ \begin{aligned} & y={{t}_{1}}x \\ & {{a}_{1}}{{x}^{2}}+{{b}_{1}}xy+{{c}_{1}}{{y}^{2}}={{d}_{1}} \\ \end{aligned} \right. and {y=t2xa1x2+b1xy+c1y2=d1\left\{ \begin{aligned} & y={{t}_{2}}x \\ & {{a}_{1}}{{x}^{2}}+{{b}_{1}}xy+{{c}_{1}}{{y}^{2}}={{d}_{1}} \\ \end{aligned} \right.

Systems of symmetric equations

An equation in two unknowns is called symmetric if replacing xx by yy and yy by xx leaves the equation unchanged.

{xy+x+y=39x2−xy+y2=63\left\{ \begin{aligned} & xy+x+y=39 \\ & {{x}^{2}}-xy+{{y}^{2}}=63 \\ \end{aligned} \right.

Systems of symmetric equations are solved as follows: introduce the auxiliary unknowns ss and pp given by the relations s=x+ys=x+y and p=x⋅yp=x\cdot y.

By introducing these new unknowns ss and pp, in very many cases the original system reduces to a system consisting of one first-degree equation and one second-degree equation in the unknowns ss and pp.

Once the unknowns ss and pp have been found, one forms the equation t2−s⋅t+p=0{{t}^{2}}-s\cdot t+p=0

Since the system considered is symmetric in xx and yy, the solution set of the system is:

S={(t1,t2);(t2,t1)}S=\{({{t}_{1}},{{t}_{2}});({{t}_{2}},{{t}_{1}})\} if t1≠t2{{t}_{1}}\ne {{t}_{2}}, or S={(t1,t2)}S=\{({{t}_{1}},{{t}_{2}})\} if t1=t2{{t}_{1}}={{t}_{2}}.

The inverse of a matrix

Let A∈Mn(C)\in {{\Mu }_{n}}(\mathbb{C}) be a square matrix of order n with coefficients in C\mathbb{C}. The matrix A is invertible if and only if detA≠0. The inverse of the matrix A is A-1=1det⁡AA∗\frac{1}{\det A}{{A}^{*}}, where A* is obtained by replacing each entry of the transposed matrix tA{}^{t}A with its cofactor δij=(−1)i+jdij{{\delta }_{ij}}={{(-1)}^{i+j}}{{d}_{ij}}, 1*≤i≤n,* 1*≤j≤m*, where dij{{d}_{ij}} is the minor of the entry aij{{a}_{ij}} of tA{}^{t}A (the determinant obtained from tA{}^{t}A by deleting row i and column j).

A⋅A−1=In,A\cdot {{A}^{-1}}={{I}_{n}}, In∈Mn(C),{{I}_{n}}\in {{\Mu }_{n}}(\mathbb{C}), In{{I}_{n}} - the identity matrix.

Matrix equations

A linear system can be expressed in matrix form as: AX=B, where A is the matrix of coefficients of the unknowns, X is the matrix of unknowns (a column matrix) and B is the matrix of constant terms (a column matrix). If the matrix is invertible we have

X=A-1B.

If the matrix A∈Mm,n(C)\in {{\Mu }_{m,n}}(\mathbb{C}) is not zero, there is a natural number r≤min{m,n} such that at least one minor of order r (formed at the intersection of r rows and r columns of the matrix) is non-zero, while all determinants of order greater than r (if any) are zero. This number r is called the rank of the matrix.

The rank of a matrix is unchanged if:

  • A multiple of one row (column) is added to another row (column);

  • Rows (columns) are interchanged.

The Kronecker–Capelli theorem. A system of linear equations is consistent if and only if the rank of the system matrix equals the rank of the augmented matrix, formed from the system matrix with the column of constant terms added.

Rouché's theorem. A system of linear equations is consistent if and only if all the characteristic determinants are zero. The characteristic determinants are obtained by adding a row and a column from the augmented matrix to a minor with non-zero determinant.

The matrix of rotations in the plane.

Let θ∈[0,2π)\theta \in [0,2\pi ). The rotation with centre O through an angle of measure θ\theta is the geometric transformation Rθ:P→P,Rθ(0)=0{{R}_{\theta }}:P\to P, {{R}_{\theta }}(0)=0, and Rθ(M)=M′{{R}_{\theta }}(M)={M}', (∀)M∈P(\forall )M\in P with the property that OM=OM′OM=O{M}' and the measure of the angle MOM′⌢\overset\frown{MO{M}'} is θ\theta.

The analytic description of the rotation is given by the relations:

{x′=xcos⁡(θ)−ysin⁡(θ)y′=xsin⁡(θ)+ycos⁡(θ)\left\{ \begin{aligned} & {x}'=x\cos (\theta )-y\sin (\theta ) \\ & {y}'=x\sin (\theta )+y\cos (\theta ) \\ \end{aligned} \right..

With these, the rotation Rθ{{R}_{\theta }} is the function Rθ:R2→R2{{R}_{\theta }}:{{\mathbb{R}}^{2}}\to {{\mathbb{R}}^{2}}, Rθ((x,y))=(x′,y′){{R}_{\theta }}((x,y))=({x}',{y}') where x′,y′{x}', {y}' are given by the relations above. The matrix associated with the linear map Rθ{{R}_{\theta }} is:

A=(cos⁡(θ)−sin⁡(θ)sin⁡(θ)cos⁡(θ))A=\left( \begin{matrix} \cos (\theta ) & -\sin (\theta ) \\ \sin (\theta ) & \cos (\theta ) \\ \end{matrix} \right)