Courses

Friday, December 22, 2023

Matrix and Determinant

Matrix-Originated by Chinese mathematician around 200 AD. However Determinant-Originated by Japanese mathematician around 600BC. Formal origin-at the age of Gauss
In general, Matrix is arrangement of mathematical objects in terms of row and column.
It can be used to

  1. describe two-variable phenomenon using cross-tabs
  2. projec of three-dimensional image into a two-dimensional screen
  3. express sequence of numbers in a binary format



Definition of Matrix

A matrix is rectangular arrangement of numbers arranged into a fixed number of rows and columns.

Matrices are usually named using upper case letters. For example,
\( A=\begin{bmatrix} 1&2&3\\4&5&6\\7&8&9\end{bmatrix} \) is a matrix.

In this example, each element in the arrangement in A is called an entry or an element of the matrix A. The elements are written based on the place value system as
\( A=\begin{bmatrix} a_{11}&a_{12}&a_{13}\\ a_{21}&a_{22}&a_{23} \\a_{31}&a_{32}&a_{33} \end{bmatrix}\)

For example,
\( \begin{bmatrix} a_{11}& a_{12} &a_{13} \end{bmatrix}\) is first row of A
\( \begin{bmatrix} a_{11}\\a_{21}\\a_{31} \end{bmatrix}\) is first column of A.

यहाँ सदस्यहरूलाई a11,a12,a13,... रूपमा प्रस्तुत गर्दा मेट्रिक्सका कुनै पनि सदस्यको पङक्ति र लहर सजिलै पत्ता लगाउन सकिन्छ
a 11 पहिलो पङ्क्ति र पहिलो लहरमा पर्छ ।
a21 दोस्रो पङ्क्ति र पहिलो लहरमा पर्छ, त्यस्तै
a23 दोस्रो पङ्क्ति र तेस्रो लहरमा पर्छ ।
यसरी मेट्रिक्सका सदस्यहरूलाई amnका रूपमा लेख्ने गरिन्छ, जहाँ m पङ्क्ति र n लहरको सङ्ख्या हो ।

Note

  1. The individual numbers in a matrix are called the elements.
  2. A horizontal arrangement of the numbers in a matrix is called a row.
  3. A vertical arrangement of the numbers in a matrix is called a column.
  4. The number of rows and the number of columns in a matrix is called the dimensions of a matrix.



Order and Size of Matrix

The number of rows and columns in a Matrix is called order of the Matrix. It is also called size, index, or dimension of the Matrix.

If a matrix A has m rows and n column then order of A is written as m x n and read as m by n.

If a matrix A is given by
\( A=\begin{bmatrix} 1&2&3\\4&5&6\\7&8&9\end{bmatrix} \)
Then, the order of a matrix A is
3 by 3.

Example 1

Construct a 2 x 2 Matrix A where \( a_{ij} =\frac{(i+j)^2}{2}\)

Solution
We know that, the 2 x 2 Matrix is of the form
\( A=\begin{bmatrix} a_{11}&a_{12}\\a_{21}&a_{22}\end{bmatrix}\)
Here \( a_{ij} =\frac{(i+j)^2}{2}\), therefore, the elements are
\( a_{11}=\frac{(1+1)^2}{2}= 2\)
\( a_{12}=\frac{(1+2)^2}{2}=9/2 \)
\( a_{21}=\frac{(2+1)^2}{2}=9/2 \)
\( a_{22}=\frac{(2+2)^2}{2}=8 \)
Therefore, the required Matrix is
\( A=\begin{bmatrix} 2&9/2\\9/2&8\end{bmatrix}\)




Types of Matrix

  1. Singleton Matrix
    A matrix with only one element is called Singleton Matrix.
    For example,
    A=[23].
    The order of such matrix is 1 x 1.
  2. Row matrix
    A row matrix has only one row but any number of columns. A matrix is said to be a row matrix if it has only one row.
    For example,
    \(A=\begin{bmatrix} -1&2&√5&23\end{bmatrix} \)
    is a row matrix of order 1 x 4 .
    In general, row matrix has order 1 x n.
  3. Column Matrix
    A column matrix has only one column but any number of rows. A matrix is said to be a column matrix if it has only one column.
    For example,
    \( A=\begin{bmatrix} 0 \\ 3 \\-11 \\ 2 \end{bmatrix} \)
    is a column matrix of order 4 x 1.
    In general, column matrix has order m x 1.
  4. Rectangular Matrix
    A matrix is said to be a rectangular matrix if the number of rows is not equal to the number of columns.
    For example,
    \( A=\begin{bmatrix} 33&2&47\\2&-1&√3\\2&3&2\\1&-1&-5\end{bmatrix} \)
    is a matrix of the order 4 x 3
  5. Square matrix
    A square matrix has the number of columns equal to the number of rows. A matrix in which the number of rows is equal to the number of columns is said to be a square matrix.
    Thus an m x n matrix is said to be a square matrix if m = n and is known as a square matrix of order n.
    For example,
    \( A=\begin{bmatrix} 33&2&4\\1&3&23\end{bmatrix} \)
    is a square matrix of order 3.
    In general, square matrix has order m.
  6. Diagonal Matrix
    A square matrix \( B = \begin{bmatrix} bij \end{bmatrix}_{m \times m}\) is said to be a diagonal matrix if all its non-diagonal elements are zero, that is a matrix \( B =\begin{bmatrix} bij\end{bmatrix}_{m\times m}\) is said to be a diagonal matrix if \( bij = 0\) , when \( i \ne j\) .
    For example,
    \( A=\begin{bmatrix} 4 \end{bmatrix} \)
    \( B=\begin{bmatrix}-1&0\\0&2\end{bmatrix} \)
    \( C=\begin{bmatrix} 3&0&0\\0&-5&0\\0&0&2\end{bmatrix}\)
    are diagonal matrices of order 1, 2, 3 respectively.
  7. Scalar Matrix
    A diagonal matrix is said to be a scalar matrix if all the elements in its principal diagonal are equal to some non-zero constant. That is, a diagonal matrix is said to be a scalar matrix if its diagonal elements are equal, that is,
    a square matrix \( B = \begin{bmatrix} bij\end{bmatrix}_{n \times n}\) is said to be a scalar matrix if \( bij = 0\), when \( i \ne j\) and \( bij = k\) , when \( i = j\) , for some constant k .
    For example,
    \( A=\begin{bmatrix} 4\end{bmatrix} \)
    \( B= \begin{bmatrix} -1&0\\0&-1\end{bmatrix} \)
    \( C= \begin{bmatrix} 3&0&0\\0&3&0\\0&0&3\end{bmatrix} \)
    are scalar matrices of order 1, 2 and 3 respectively.
  8. Unit Matrix
    If a square matrix has all elements 0 and each diagonal elements are 1, it is called identity matrix and denoted by I .
    For Example,
    \( A=\begin{bmatrix} 1\end{bmatrix} \)
    B=\( \begin{bmatrix} 1&0\\0&1\end{bmatrix}\)
    C= \( \begin{bmatrix} 1&0&0\\0&1&0\\0&0&1\end{bmatrix} \)
    are all zero matrices of the order 1, 2 and 3 respectively.
    Observe that a scalar matrix is an identity matrix when k = 1.
    Here, every identity matrix is clearly a scalar matrix, but the converse may not be true.
  9. Zero Matrix
    A matrix is said to be zero matrix or null matrix if all its elements are zero.
    For Example,
    \( A=\begin{bmatrix} 0\end{bmatrix} \)
    B= \( \begin{bmatrix} 0&0\\0&0\end{bmatrix}\)
    C= \( \begin{bmatrix} 0&0&0\\0&0&0\\0&0&0\end{bmatrix}\)
    are all zero matrices of the order 1, 2 and 3 respectively.
  10. Triangular Matrix
    There are two types of triangular Matrix.
    Upper Triangular Matrix:
    A square matrix in which all the elements below the diagonal are zero is known as the upper triangular matrix.
    For example,
    \( A=\begin{bmatrix} 3&0&0\\-5& 4& 0\\7& 0& 9\end{bmatrix} \)
    Lower Triangular Matrix:
    A square matrix in which all the elements above the diagonal are zero is known as the upper triangular matrix.
    For example,
    \( A=\begin{bmatrix} 3&0&-5\\0&4&7\\0&0&9\end{bmatrix}\)
  11. Symmetric Matrix
    A matrix is symmetric only if it is square. If the transpose of a matrix is equal to the itself. More precisely, a matrix is said to be skew symmetric if A'=A. Also, for the matrix,\( a_{ji} = a_{ij}\) (for all the values of i and j.
    Some examples of symmetric matrices are:
    \( P=\begin{bmatrix} 5&1\\1&−3\end{bmatrix} \)
    \( Q=\begin{bmatrix}−5&12&57\\12&6&23\\57&23&78\end{bmatrix} \)
  12. Skew-Symmetric Matrix
    A matrix is skew symmetric only if it is square. If the transpose of a matrix is equal to the negative of itself. More precisely, a matrix is said to be skew symmetric if A'=-A. Also, for the matrix,\( a_{ji} = -a_{ij}\) for all the values of i and j. The diagonal elements of a skew symmetric matrix are equal to zero.
    Some examples of skew symmetric matrices are:
    \( P=\begin{bmatrix} 0&8\\-8&0\end{bmatrix} \)
    \( Q=\begin{bmatrix}0&12&57\\-12&0&23\\-57&-23&0\end{bmatrix} \)



Matrix Multiplication

We know that, dividing 3 by 7 is the same as multiplying 3 by \(\frac{1}{7}\), the inverse of 7. In symbols, 3 ÷ 7 = 3 × \(\frac{1}{7}\), or 3 × \(7^{-1}\) are same
In order to understandm division in Matrix, we need to discuss multiplicative inverse, \( A^{−1}\) of a matrix A.
However, multiplication of real numbers is commutative, \(\frac{3}{7}= 3 \times 7^{−1}= 7^{−1} \times 3\), in the matrices, multiplication is NOT commutative

Context 1

A school has following students in its grade.

School
Grade 8 20
Grade 9 10
Grade 10 8

The school receive Rs4000, Rs 5000, and Rs 6000 fee from grade 8,9 and 10 respectively. Use matrix multiplication to find the total amount generated by students.

Context 2

A contractor builds three kinds of houses, models A,B,C with choice of two styles; structure(S) and prefab(P). Matrix A shows the number of each kind of houses planed for 100 new home subdivision.
A=\( \begin{matrix} \text{Model A} \\ \text{Model B}\\ \text{Model C} \end{matrix} \begin{bmatrix} \overset{\text{S}} {0} & \overset{\text{P}}{30}\\10&20\\20&20 \end{bmatrix}\)
The amount for each of the materials are shown in matrix B (Concrete, Cement, Brick, Decoration.
B=\( \begin{matrix} \text{S} \\ \text{P}\end{matrix} \begin{bmatrix} \overset{\text{Concrete}} {100} &\overset{\text{Cement}} {1000} &\overset{\text{Brick}} {40000} &\overset{\text{Decoration}} {2000} \\ 5&50&0&1000 \end{bmatrix}\)
Matrix C gives the cost for each kind of materials.
C=\(\begin{matrix} \text{Concrete}\\ \text{Cement}\\ \text{Brick}\\ \text{Decoration}\end{matrix} \begin{bmatrix} \overset{\text{Cost per Unit}} {10000} \\ 1000\\25\\25 \end{bmatrix}\)

Now, what is the contractor's total cost for materials required for various types of model homes?
Matrix Multiplication will be used to answer this question.

Multiplication of Matrices

In mathematics, matrix multiplication of A and B is defined only if the number of column in A is equal to the number of row in B.

Means, if A is an m x n matrix and B is an n x p matrix, then only the product AB is defined to be a new matrix AB with n x p order.

For example, if we have
\( A=\begin{bmatrix} a_{11}&a_{12}&a_{13} \\a_{21}&a_{22}&a_{23}\\ a_{31}&a_{32}&a_{33}\\a_{41}&a_{42}&a_{43} \end{bmatrix}_{4 \times 3}\) and
\( B=\begin{bmatrix} b_{11}&b_{12}\\ b_{21}&b_{22}\\b_{31}&b_{32}\end{bmatrix}_{3 \times 2}\)
Then we get
\( AB=\begin{bmatrix} ab_{11}&{ab}_{12}\\{ab}_{21}&{ab}_{22}\\ {ab}_{31}&{ab}_{32}\\ {ab}_{41}&{ab}_{42} \end{bmatrix}_{4 \times 2} \)

Here, each i, j entry in AB is obtained by multiplying the entries
\( A_{ik}\) (row i of A) by the entries \( B_{kj}\) (column j of B), for k = 1, 2, ..., m , and summing the results.

For example,
\(ab_{11}\) entry in AB is obtained by
multiplying the entries \( A_{1k}\) ( row 1 of A) by the entries \( B_{k1}\) ( column 1 of B )

Key points of Matrix Multiplication

  1. Multiplication of matrices is NON-commutative ; \( A \times B \ne B\times A\)
  2. Multiplication of matrices is associative , \( A\times (B\times C) = (A\times B)\times C\) provided the multiplication is defined.
  3. The order of matrix AB computed from A of order mxn and B of order nxp is mxp



Example 1

Multiply the matrices \( A=\begin{bmatrix} 1&−1\\3&0\end{bmatrix}\) and \( B=\begin{bmatrix} 2&−1&1\\2&1&4\end{bmatrix}\)

Solution
Here, the multiplication of two matrix A and B is possible because the first matrix contains 2 columns and the second contains 2 rows.
Therefore, the product is
\( AB=\begin{bmatrix} 1 \times 2+(−1)\times2&1\times(−1)+(−1)\times1&1\times1+(−1)\times4\\ 3\times2+0\times2&3\times(−1)+0\times1&3\times1+0\times4\end{bmatrix} =\begin{bmatrix} 0&−2&-3\\6&-3&3\end{bmatrix} \)




Determinant

The determinant of a square matrix is a real number or a function of the elements of the matrix which will represent area about the matrix. It determines also whether the system has a unique solution and whether the matrix is singular or not.
Thus, the determinant is a scalar value computed from the elements of a square matrix.

Let \(\vec{p}=(a,b)\) and \(\vec{q}=(c,d)\) are two vectors then the area of a parallelogram determined by the vectors \(\vec{p}\) and \(\vec{q}\) is represented by the matrix given by
\( M=\begin{pmatrix} a & c \\ b& d \end{pmatrix} \)
It is given by the formula
\( |M|=ad-bc \)

Drag the point p and q

The proof is given as
|M|= Area of parallelogram determined by \(\vec{p}\) and \(\vec{q}\)
or \(|M|= (a+c). (b+d) -\) area(red, blue and yellow regions)
or \(|M|= (ab+ad+cb+cd) -\) area(red)-area(blue)-area(yellow)
or \( |M|= (ab+ad+cb+cd) - 2bc-ab-cd \)
or |M|= ad-bc

Meaning of Determinant

Determinant एक स्केलर मान हो जसलाई सन्दर्भको आधारमा विभिन्न रूपमा व्याख्या गर्न सकिन्छ। यहाँ केहि ज्यामितीय व्याख्याहरू छन्:
  1. Area and Volume:
    2x2 म्याट्रिक्सको determinant ले क्षेत्रफल जनाउदछ। यदि determinant positive छ भने, orientation सुरक्षित गर्दछ; यदि determinant negative भने, orientation लाई प्रतिबिम्बित गर्दछ।
    3x3 म्याट्रिक्सको लागि, determinant ले 3D स्पेसमा भोल्युमलाई प्रतिनिधित्व गर्दछ।
  2. linear transformation:
    linear transformation को सन्दर्भमा, determinant ले scale दिन्छ जसद्वारा transformation हरू विस्तार वा संकुचित हुन्छ। 1 ले भोल्युममा कुनै परिवर्तन गर्दैन, 0 ले स्थानान्तरणलाई तल्लो-आयामी सबस्पेसमा vanish गर्छ भनेर संकेत गर्छ।
  3. Inversion:
    The absolute value of the determinant of a square matrix is related to whether the matrix is invertible. If the determinant is non-zero, the matrix is invertible, and the absolute value of the determinant represents the volume scaling factor. If the determinant is zero, the matrix is singular, and the transformation collapses space.
  4. Orientation: The sign of the determinant can indicate the orientation change caused by a linear transformation. Positive determinants preserve orientation, while negative determinants imply a reversal of orientation.



Determinants of 2x2 and 3x3 matrix

The determinant of a matrix A is denoted det(A), det A, or |A|.
There are number of ways to compute determinants of matrices. Some of them are basketweave method, butterfly method, Sarrus’ method etc. The simplest among these methods is the basketweave method which could be stated as the combination of butterfly method for determinant computation of 2x2 matrices and Sarrus’ rule for determinant computation of 3x3 matrices.

A 2×2 matrix is written as
\( A=\begin{bmatrix} a_{11}& a_{12}\\ a_{21}& a_{22}\\ \end{bmatrix}\)

In order to find the determinant of the 2x2 matrix, we carry out the diagonal products, then subtract the non-diagonal product (right to left) from leading diagonal product (left to right) as as follows:
\( |A|=\begin{vmatrix} a_{11}& a_{12}\\a_{21}& a_{22}\\\end{vmatrix}\)
or \( |A|=a_{11} \times a_{22}- a_{21} \times a_{12}\)

Example 1

Find the determinant of a matrix \( A=\begin{bmatrix} 1 & -4 \\ 6 & 1 \\ \end{bmatrix} \)

Solution
The determinant of the matrix A is
\( det(A)=1 \times 1-(-4) \times 6=27 \)

NOTE

The determinant can be found based on the formal definition including the term minor, cofactor, adjoint.This is described as below.

Minors

In Matrix, minor of the entry in the i-th row and j-th column is the determinant of the submatrix formed by deleting the i-th row and j-th column.

This number is often denoted by \( M_{ij}\).

In the matrix below, the Minor of 1 is the determinant of the matrix

Cofactor

In Matrix, cofactor of the entry in the i-th row and j-th column is the product of
\( (-1)^{i+j} M_{ij}\)

Adjoint

Adjoint of matrix is the transpose of cofactor matrix

Determinant

Determinant of matrix A is denoted by det(A) or |A| and defined by
det(A)=Adjoint x Cofactor




Inverse of Matrix

Inverse matrix is used to solve the system of linear equations. It is frequently used to encrypt message codes. Matrices are used by programmers to code or encrypt letters. A message is made up of a series of binary numbers that are solved using coding theory for communication and then an inverse matrix is used to decrypt the encoded message.

Inverse of Matrix

Three brands of fertilizer are available that provide nitrogen, phosphoric acid, and soluble potash to the soil. One bag of each brand provides the following units of each nutrient.
Nutrient \( \begin{pmatrix}&Brand A&Brand B&Brand C\\ Nitrogen&1&2&3\\ Phosphoric acid&3&1&2\\ Potash&2&0&1\end{pmatrix}\)
For ideal growth, the soil on a Farmer's farm needs 18 units of nitrogen, 23 units of phosphoric acid, and 13 units soluble potash per ropani.
Now, How many bags of each brand of fertilizer should be used per ropani for ideal growth of the Farmer's farm?

Inverse Matrix and its Multiplication will be used to answer this question.

For a square matrix A, the inverse is written \( A^{-1}\) When A is multiplied by \( A^{-1}\) the result is the identity matrix I. Non-square matrices do not have inverses.

Inverse of A is denoted by \( A^{-1}\) and defined by \( A^{-1}=\frac{1}{D} Adj(A)\) which satisfy:
\( A \times A^{-1} = A^{-1} \times A = I\)

Note:
Not all square matrices have inverses. A square matrix which has an inverse is called invertible or nonsingular, and a square matrix without an inverse is called non-invertible or singular matrix.

We can calculate the Inverse of a Matrix by:

  1. Calculate Determinant
  2. Calculating the Matrix of Minors
  3. Calculating the Matrix of Cofactors
  4. Calculating Adjoint
  5. Find inverse



Example

Find inverse of a matrix \( A=\begin{bmatrix} 4 & 3 \\ 3 & 2 \\ \end{bmatrix} \) 

Solution
Step 1: Calculate the Matrix of Minors
Minors is
Minor of \( \begin{bmatrix} 4 & 3 \\ 3 & 2 \\ \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 3 & 4 \\ \end{bmatrix} \)
For example, the minor of 4 = 2, is a determinant by canceling 1st row and 1st column from A

Step 2: Calculate the Matrix of Cofactors,
Cofactor of A is
cofactor of A=\(\begin{bmatrix} 2 & 3 \\ 3 & 4 \\ \end{bmatrix} =\begin{bmatrix} 2 & -3 \\ -3 & 4 \\ \end{bmatrix} \)
For example, the cofactor of 4 =\( (-1)^{1+1} . 2 =2\) , is a minor element.\( (-1)^{i+j}\)

Step 3: Calculate Adjoint
Adjoint of A is
Adj of \( \begin{bmatrix} 2 & -3 \\ -3 & 4 \\ \end{bmatrix} =\begin{bmatrix} 2 & -3 \\ -3 & 4 \\ \end{bmatrix} \)
For example, the adjoint is a new matrix obtained by interchanging row and column.

Step 4: Find Determinant.
The det A is
det A=\( \begin{bmatrix} 2 & -3 \\ -3 & 4 \\ \end{bmatrix} =-1\)
For example, the determinant is 2x4 - (-3)x(-3) = -1

Step 5: Find inverse.
The inverse of A is
\( A^{-1} =\frac{1}{D} \begin{bmatrix} 2 & -3 \\ -3 & 4 \\ \end{bmatrix} =\begin{bmatrix} -2 & 3 \\ 3 & -4 \\ \end{bmatrix} \)




Properties of the inverse matrix

The following are the properties of the inverse matrix:
  1. If A and B are square matrices with the order n and their product is an identity matrix, i.e., AB=I=BA, then \(B=A^{–1}\).
  2. If a square matrix A has an inverse (non-singular), then the inverse matrix is unique.
  3. A square matrix A has an inverse matrix if and only if the determinant is not zero, i.e., |A|≠0. Similarly, the matrix A is singular (has no inverse) if and only if its determinant is zero, i.e., |A|=0.
  4. If a square matrix A has an inverse, then the determinant of an inverse matrix is the reciprocal of the matrix determinant. i.e., \( |A^{–1}|=\frac{1}{|A|}\).
  5. If a square matrix A has an inverse, for a scalar k≠0 then the inverse of a scalar multiple is equal to the product of their inverse, i.e., \( (kA)^{–1}=\frac{1}{k}A^{–1}\).
  6. If a square matrix A has an inverse, then the transpose of an inverse matrix is equal to the inverse of the transposed matrix. i.e., \( (A^{–1})T=(AT)^{–1} \).
  7. If A and B are square non-singular matrices both with the order n then the inverse of their product is equal to the product of their inverse in reverse order, i.e., \((AB)^{–1}=(B)^{–1}(A)^{–1}\)
  8. Let A and B are square matrices with the order n. If AB=O then either A=O or B=O or both A and B are singular matrices with no inverse.



Cramer's rule

In linear algebra, Cramer's rule is an explicit formula for the solution of a system of linear equations with as many equations as unknowns, valid whenever the system has a unique solution.

It expresses the solution in terms of the determinants of the (square) coefficient matrix and of matrices obtained from it by replacing one column by the column vector of right-hand-sides of the equations. It is named after Gabriel Cramer (1704–1752), who published the rule for an arbitrary number of unknowns in 1750.

Given the system of equations
\( a_1 x+b_1 y=c_1 \)
\( a_2 x+b_2 y=c_2 \)
Solving, we can write
\( x=\frac{ \begin{vmatrix} c_{1} & b_{1} \\ c_{2} & b_{2} \\ \end{vmatrix} }{ \begin{vmatrix} a_{1} & b_{1} \\ a_{2} & b_{2} \\ \end{vmatrix} }\) and \( y=\frac{ \begin{vmatrix} a_{1} & c_{1} \\ a_{2} & c_{2} \\ \end{vmatrix} }{ \begin{vmatrix} a_{1} & b_{1} \\ a_{2} & b_{2} \\ \end{vmatrix} }\)
Suppose,
\( D=\begin{vmatrix} a_{1} & b_{1} \\ a_{2} & b_{2} \\ \end{vmatrix} \)
\( D_x =\begin{vmatrix} c_{1} & b_{1} \\ c_{2} & b_{2} \\ \end{vmatrix} \) and \( D_y = \begin{vmatrix} a_{1} & c_{1} \\ a_{2} & c_{2} \\ \end{vmatrix} \)
Then
\( x=\frac{D_x }{D},y=\frac{D_y }{D}\)

Solution

Given the system of equations
\( a_1 x+b_1 y=c_1 \)
\( a_2 x+b_2 y=c_2 \)
We can write
\( x \begin{bmatrix} a_1 \\ a_2 \\ \end{bmatrix} +y \begin{bmatrix} b_1 \\ b_2 \\ \end{bmatrix} = \begin{bmatrix} c_1 \\ c_2 \\ \end{bmatrix} \)

The area of a parallelogram determined by \( \begin{bmatrix} a_1 \\ a_2 \\ \end{bmatrix} \) and \( \begin{bmatrix} b_1 \\ b_2 \\ \end{bmatrix} \) is given by
\( \begin{vmatrix} a_{1} & b_{1} \\ a_{2} & b_{2} \\ \end{vmatrix} \) (1)

The area of the parallelogram determined by \( x \times \begin{bmatrix} a_1 \\ a_2 \\ \end{bmatrix} \) and \( \begin{bmatrix} b_1 \\ b_2 \\ \end{bmatrix} \) is given by
\( \begin{vmatrix} xa_{1} & b_{1} \\ xa_{2} & b_{2} \\ \end{vmatrix} \) (2)

The area of the parallelogram determined by \( \begin{bmatrix} x a_1 \\ x a_2 \\ \end{bmatrix} + \begin{bmatrix} y b_1 \\ y b_2 \\ \end{bmatrix} \) and \( \begin{bmatrix} b_1 \\ b_2 \\ \end{bmatrix} \) is given by
\( \begin{vmatrix} xa_{1}+ y b_1& b_{1} \\ xa_{2} +y b_2 & b_{2} \\ \end{vmatrix} \) (3)

By Cavalieri's principle, the area of both parallelogram given by (2) and (3) is same.

Thus, equating the areas of this parallelograms, we get
\( \begin{vmatrix} xa_{1} & b_{1} \\ xa_{2} & b_{2} \\ \end{vmatrix} = \begin{vmatrix} xa_{1}+ y b_1& b_{1} \\ xa_{2} +y b_2 & b_{2} \\ \end{vmatrix} \)
or \( x \begin{vmatrix} a_{1} & b_{1} \\ a_{2} & b_{2} \\ \end{vmatrix} = \begin{vmatrix} c_1& b_{1} \\ c_2 & b_{2} \\ \end{vmatrix} \)
or \( x=\frac{ \begin{vmatrix} c_{1} & b_{1} \\ c_{2} & b_{2} \\ \end{vmatrix} }{ \begin{vmatrix} a_{1} & b_{1} \\ a_{2} & b_{2} \\ \end{vmatrix} }\)

Similarly, we can find
\( y=\frac{ \begin{vmatrix} c_{1} & a_{1} \\ c_{2} & a_{2} \\ \end{vmatrix} }{ \begin{vmatrix} a_{1} & b_{1} \\ a_{2} & b_{2} \\ \end{vmatrix} }\)
This is the Cramer's rule.

Example

A group of students took a trip on a bus, at Rs30 per child and Rs32 per adult for a total of Rs1184. They took the Taxi back at Rs35 per child and Rs36 per adult for a total of Rs1352. How many children, and how many adults?

Solution

This is just like
XA = B
or \( \begin{bmatrix} x & y \end{bmatrix} \begin{bmatrix} {30} & {35} \\ {32} & {36} \\ \end{bmatrix} = \begin{bmatrix} 1184 & 1352 \end{bmatrix} \)
Now we have the inverse we can solve using:
\( X = BA^{-1} \)
or \( \begin{bmatrix} x & y \end{bmatrix} = \left [\begin{matrix} {30} & {35} \\ {32} & {36} \\ \end{matrix} \right ] ^{-1} \begin{bmatrix} 1184 & 1352 \end{bmatrix} \)

Wednesday, December 20, 2023

Vector

Vector and Scalar

In physics (and mathematics), quantities can be classified into 2 main categories; Scalars and Vectors.

  1. Certain quantities such as mass, time, temperature, volume, density etc. can be adequately represented just by a numerical value, an amount or a magnitude. Such quantities are called Scalars.
  2. Certain other quantities such as force, velocity, displacement, acceleration etc. cannot be adequately represented by a numerical value alone. The only way to meaningfully represent such quantities is by considering them as having a direction in addition to the magnitude. Such quantities that have a magnitude as well as a direction are called Vectors.

Vectors are represented by a directed line segment, basically arrows. The length of the line segment denotes the magnitude and the arrowhead indicates the direction of the vector.

For example,
\( \overrightarrow{OA} \) or \( \textbf{OA}\) or \( \vec{a}\) or \( \textbf{a}\)

Magnitude of a Vector

Let \( \vec{a}=(x,y)\) be a vector, then its magnitude is denoted by \( | \vec{a} |\) and defined by
\( | \vec{a} |=\sqrt{x^2 +y^2 }\)
The magnitude of a is also called the norm of a and denoted ||a||.
Note that \(a·a = a^2 =||a||^2\) so that
\( ||a|| = \sqrt{a.a}\)

Direction of a Vector

Let \( \vec{a}=(x,y)\) be a vector, then its direction is denoted by \( \tan \theta \) and defined by
\( \tan \theta =\frac{y}{x}\)

Example 1

If \( \vec{a}=(3,4)\) then find its magnitude and direction.
Solution
Here,
\( \vec{a}=(3,4)\)
This means,x=3,y=4
Now, magnitude of vector is
\( | \vec{a} |=\sqrt{x^2 +y^2 }=\sqrt{3^2 +4^2 }=5\)
Next, the direction of vector is
\( \tan \theta =\frac{y}{x}=\frac{4}{3}\)
or \( \theta =\tan ^{-1}( \frac{4}{3} )\)




Types of Vector

  1. Unit Vector
    A vector with magnitude 1 is called unit vector.
    The example of unit vectors are \( (0,1), (-1,0),(1,0), \left (\frac{3}{5},\frac{4}{5} \right)\)
  2. Zero Vector
    If magnitude of a vector is zero, then it is called zero vector. The starting point and terminal point of such vector coincides.
    The magnitude of the zero vector is zero.
    The direction of zero vector is indeterminate.
    The example of zero vectors is (0,0)
  3. Position Vector
    A vector whose initial point is at origin is called position vector.
    If a point P has coordinate P(x,y), then its position vector is written as \( \vec{p}=(x,y)\)
  4. Equal Vector
    Two vectors whose magnitudes and direction both are equal (same), are called equal vector.
    The examples of equal vector are \( \vec{p}=(3,4) \) and \(\vec{q}=(3,4)\)
  5. Negative Vector
    Two vectors whose magnitudes are equal and directions are opposite are called negative vector.
    Example: In the Figure the vector \( \vec{a}=(3,4)\) and \(\vec{b}=(-3,-4)\) are negative vector.
  6. Like and Unlike Vector
    The vectors having same direction are called like vectors and those having opposite directions are called as unlike vectors.
    In the Figure two vectors \( \vec{a}\) and \(\vec{b}\) are like vector.
    In the Figure ,two vectors \( \vec{a}\) and \(\vec{c}\) are unlike vector.
  7. Coinitial Vector
    Two vectors whose initial points are same are called co-initial vectors. In the Figure,two vectors \( \vec{a}\) and \(\vec{b}\) are co-initial vectors.
  8. Resolution Vector
    One big advantage of using vectors is that they can be resolved into any no. of components. In the simplest case, a vector can be resolved into 2 component vectors lying in the same plane.
    Shown below is a vector OA, if we draw its projections onto any 2 perpendicular axes in its plane (for convenience we have picked the x and y axes), we get a set of 2 new vectors OU and OV. These 2 new vectors are called the components of vector OA.
    We can take this one step further and resolve a vector into 3 components in 3 dimension. What is the advantage of doing this? For one, resolving vectors into perpendicular components allows us to express them in terms of the Cartesian coordinates, which we are familiar with.



Triangle law of Vector Addition

Let \( \vec{a}\) and \( \vec{b}\) are two vector, then the method of adding \( \vec{a}\) and \( \vec{b}\) by head-to-tail construction is called triangle law of vector addition.

In this method, the sum of \( \vec{a}\) and \( \vec{b}\) is the third side of the triangle formed by the segment of \( \vec{a}\) and \( \vec{b}\) as adjacent sides




Parallelogram law of Vector Addition

Let \( \vec{a}\) and \( \vec{b}\) are two vector, then the method of adding \( \vec{a}\) and \( \vec{b}\) by head-to-head (or tail to tail) construction is called parallelogram law of vector addition.

In this method, the sum of \( \vec{a}\) and \( \vec{b}\) is the is the diagonal of parallelogram formed by the segment of \( \vec{a}\) and \( \vec{b}\) as adjacent sides




Vector product

Products of vectors can be defined in many ways, however, two definitions are physically of significant. These are called dot and the vector products. A third kind of product, called geometric product, unifies dot and vector products (but we dont include it in this text)
Thus, in this text, two types of product are entertained. They are

  1. Dot product
  2. Vector product

Dot Product (Scalar Product or Inner Product)

Given two vectors \(\vec{a}\) and \(\vec{b}\) their dot product is denoted by \(\vec{a}.\vec{b}\), whose value is a scalar.
For Geometrical intrepretation, the dot product is fundamentally a projection.

Thus, the dot product of \(\vec{a}\) and \(\vec{b}\) is the product of the projection of \(\vec{a}\) on the direction defined by \(\vec{b}\) with the magnitude of \(\vec{b}\), given by
\(\vec{a}. \vec{b}= (|\vec{a}| \cos \theta) . |\vec{b}|\)
which is the same as the product of the projection of \(\vec{b}\) on the direction defined by \(\vec{a}\) with the magnitude of \(\vec{a}\), given by
\(\vec{a}. \vec{b}= (|\vec{b}|\cos \theta) . |\vec{a}|\)
This demonstrates the obvious symmetry of the result
\(\vec{a}. \vec{b}= \vec{b}.\vec{a}\)
This shows that the dot product is commutative .

In Summary, as shown in figure below, the dot product of \(\vec{a}\) and \(\vec{b}\) is the projection of \(\vec{b}\) in the direction given by \(\vec{a}\) times the magnitude of \(\vec{a}\). This leads to the geometric formula
\( \vec{a} · \vec{b} = |\vec{a} ||\vec{b} | \cos \theta \) (1)

An immediate consequence of (1) is that the dot product of a vector with itself gives the square of the length, that is
\( \vec{a} · \vec{a} = |\vec{a}|^2 \)
In particular, taking the “square” of any unit vector yields 1, for example
\( \vec{i} · \vec{i} = 1 \)
where \( \vec{i}\) as usual denotes the unit vector in the x direction.

The dot product of two vectors can be positive, can be zero, or can be negative.

  1. If \( \vec{a}.\vec{b}=0\) then angle between them is 90 (right angle)
  2. If \( \vec{a}.\vec{b} < 0\) then angle between them greater than 90 (obtuse angle)
  3. If \( \vec{a}.\vec{b}>0\) then angle between them less than 90 (acute angle)

The Geometry of Dot Produst_M1

Let \( \vec{a}\) and \( \vec{b}\) are two vectors and \( \theta \) is angle between them, then
a geometric interpretation of the dot product explains that
\( \vec{a}.\vec{b}= OP. |\vec{a}| \)
or \( OP= \frac{\vec{a}.\vec{b}}{|\vec{a}|} \) (2)

Using the notion of right angled triangle, it explains that
\( OP=|\vec{b}| \cos \theta \) (3)
It is the trigonometric ratio based on the reference angle \( \theta\)
Using (2) and (3), we get
\( \frac{\vec{a}.\vec{b}}{|\vec{a}|} = |\vec{b}| \cos \theta\)
or \( \cos \theta = \frac{\vec{a}.\vec{b}}{|\vec{a}| |\vec{b}|} \)

The Geometry of Dot Produst_M2

Let \( \vec{OA}=\vec{a} ,\vec{OB}=\vec{b},\vec{AB}=\vec{c}\)
Then
According to the cosine law, we can write
\( \vec{c}^2=\vec{a}^2+\vec{b}^2-2|\vec{a}||\vec{b}| \cos \theta\) (1)
Also
\( \vec{c}^2= (\vec{b}-\vec{a})^2\)
or\( \vec{c}^2= \vec{a}^2+\vec{b}^2-2\vec{a}.\vec{b} \) (2)
Using (1) and (2), we get
\(\vec{a}.\vec{b}=|\vec{a}||\vec{b}| \cos \theta\)

The Geometry of Dot Produst_M3

Let \( \vec{OA}=\vec{a}=(a_1,a_2) ,\vec{OB}=\vec{b}=(b_1,b_2)\)
Then
According to basic trigonometry, we can assume that
\(\vec{OA}\) has magnitude \(r_1\) and direction \(\alpha\), then
\( a_1=r_1 \cos \alpha, a_2=r_1 \sin \alpha \) (1)
Also, we can assume that
\(\vec{OB}\) has magnitude \(r_2\) and direction \(\beta\), then
\( b_1=r_2 \cos \beta, b_2=r_2 \sin \beta \) (2)
Here, we can assume that \(\theta\) is the angle between \( \vec{a}\) and \( \vec{b}\), then
\(\vec{a}.\vec{b}=|\vec{a}||\vec{b}| \cos \theta\)
or \(\vec{a}.\vec{b}=r_1 r_2 \cos (\beta -\alpha ) \)
or \(\vec{a}.\vec{b}=a_1 b_1+a_2 b_2 \)




Cross Product

Given two vectors \( \vec{a}\) and \( \vec{b}\) are given then their vector or cross product is a vector whose direction is perpendicular to the plane spaned by \( \vec{a}\) and \( \vec{b}\) and magnitude is the area of parallelogram spaned by \( \vec{a}\) and \( \vec{b}\). Thus, the magnitude of the vector \( \vec{a} \times \vec{b}\) is the the area of the parallelegram with adjacent sides \( \vec{a}\) and \( \vec{b}\).
Note that
Vector product is NOT commutative




Cross Product: Geometry_1

Let \( \vec{a}\) and \( \vec{b}\) are two vectors and \( \theta \) is angle between them, then
\( |\vec{a}\times \vec{b}|=\) Area of the Parallelogram made by \( \vec{a}\) and \( \vec{b}\)
It is the area of parallelogram made by \( \vec{a}\) and \( \vec{b}\)
Thus, we get
\( |\vec{a}\times \vec{b}|=\) base . height
or \(| \vec{a}\times \vec{b}|= | \vec{a} |.( | \vec{b} |\sin \theta )\)
or \( |\vec{a}\times \vec{b}|= | \vec{a} |.| \vec{b} |\sin \theta \)
or \( \sin \theta =\frac{|\vec{a}\times \vec{b}|}{| \vec{a} |.| \vec{b} |}\)

An immediate consequence of which is that
\( \vec{a} || \vec{b} \Leftrightarrow \vec{a} \times \vec{b} = 0\)
The direction of the cross product is given by the right-hand rule, so that
\( \vec{a} \times \vec{b} =- \vec{b} \times \vec{a} \)
Another important property of the cross product is that
\( \vec{a} \times \vec{a} = 0 \)
In terms of the standard orthonormal basis, the geometric formula is
\( \vec{i} \times \vec{j} = \vec{k}\)
\( \vec{j} \times \vec{k} = \vec{i}\)
\( \vec{k} \times \vec{i} = \vec{j}\)

Cross Product: Geometry_2

Let \( \vec{OA}=\vec{a}=(a_1,a_2) ,\vec{OB}=\vec{b}=(b_1,b_2)\)
Then
According to basic trigonometry, we can assume that
\(\vec{OA}\) has magnitude \(r_1\) and direction \(\alpha\), then
\( a_1=r_1 \cos \alpha, a_2=r_1 \sin \alpha \) (1)
Also, we can assume that
\(\vec{OB}\) has magnitude \(r_2\) and direction \(\beta\), then
\( b_1=r_2 \cos \beta, b_2=r_2 \sin \beta \) (2)
Here, we can assume that \(\theta\) is the angle between \( \vec{a}\) and \( \vec{b}\), then
\(|\vec{a} \times \vec{b}|=|\vec{a}||\vec{b}| \sin \theta\)
or \(|\vec{a}\times \vec{b}|=r_1 r_2 \sin (\beta -\alpha ) \)
or \(|\vec{a} \times \vec{b}|=a_1 b_2-a_2 b_1\)




Vector Geometry

Vector is useful topic to use in Geometry. Some of the basic applications of Vector geometry are as follows

  1. Mid-point theorem
    If A and B are two points with position vector \( \vec{a}\) and \( \vec{b}\) then the position vector of midpoint of the segment AB is \( \frac{\vec{a}+\vec{b}}{2}\)

    Let \( \vec{OA}=\vec{a}, \vec{OB}=\vec{b}\) and \( \vec{OP}=\vec{p}\)
    Then
    \( \vec{OP}=\vec{OA}+\vec{AP}\) (1)
    \( \vec{OP}=\vec{OB}+\vec{BP}\) (2)
    Adding (1) and (2), we get
    \( 2 \vec{OP}=\vec{OA}+\vec{AP}+\vec{OB}+\vec{BP}\)
    or\( 2 \vec{OP}=\vec{OA}+\vec{OB}\) \(\vec{AP}=-\vec{BP}\)
    or\( \vec{OP}=\frac{\vec{OA}+\vec{OB}}{2}\)
    or\( \vec{p}=\frac{\vec{a}+\vec{b}}{2}\)
    This completes the proof

  2. Triangle midpoint theorem
    In a triangle ABC , prove that the line joining midpoint of any two sides is parallel and half of third side.

    The proof is given as
    \( \vec{PQ}=\vec{PA}+\vec{AQ}\) (1)
    \( \vec{PQ}=\vec{PB}+\vec{BC}+\vec{CQ}\) (2)
    Adding (1) and (2), we get
    \( 2 \vec{PQ}=\vec{PA}+\vec{AQ}+\vec{PB}+\vec{BC}+\vec{CQ}\)
    or\( 2 \vec{PQ}=\vec{AQ}+\vec{BC}+\vec{CQ}\) br> \(\vec{PA}=-\vec{PB}\)
    or\( 2 \vec{PQ}=\vec{BC}\) \(\vec{AQ}=-\vec{CQ}\)
    or\( \vec{PQ}=\frac{1}{2} \vec{BC}\)
    This completes the proof

  3. Quadrilateral midpoint theorem
    Show that line joining the mid points of a quadrilateral is a parallelogram.

    The proof is given as
    \( \vec{SR}=\frac{1}{2} \vec{AC}\)
    \( \vec{PQ}=\frac{1}{2} \vec{AC}\)
    Using both relations, we get
    \( \vec{SR}=\vec{PQ}\)
    Thus, PQRS is a parallelogram
    This completes the proof

  4. Pythagoras theorem
    Prove the Pythagoras theorem

    Given that triangle ABC is a right angled triangle whose right angle is at C
    Thus
    \( \vec{AC}. \vec{BC}=0\) (1)
    Now
    \( \vec{AB}=\vec{AC}+\vec{CB}\)
    Squaring gives
    \( \vec{AB}^2=\vec{AC}^2+\vec{CB}^2+2\vec{AC}.\vec{CB} \) (2)
    Using both relations (1) and (2), we get
    \( \vec{AB}^2=\vec{AC}^2+\vec{CB}^2 \)
    or\( AB^2=AC^2+CB^2 \)
    Thus, square of hypoteneus is the sum of the square of two legs
    This completes the proof

  5. Semi-circle theorem
    Prove that angle at semi-circle is right angle.

    Let \( \vec{OA}=\vec{r}\) then \( \vec{BO}=-\vec{r}\)
    Thus
    \( \vec{AP}=\vec{AO}+\vec{OP}\) (1)
    Again
    \( \vec{BP}=\vec{BO}+\vec{OP}\) (2)
    NOw
    \( \vec{AP}. \vec{BP}=(\vec{AO}+\vec{OP}).(\vec{BO}+\vec{OP}) \)
    Using both relations (1) and (2), we get
    \( \vec{AP}. \vec{BP}=(\vec{r}+\vec{OP}).(-\vec{r}+\vec{OP}) \)
    or\( \vec{AP}. \vec{BP}=\vec{OP}^2-\vec{r}^2 \)
    or\( \vec{AP}. \vec{BP}=r^2-r^2 \) \( \vec{OP}\) is also radius
    or\( \vec{AP}. \vec{BP}=0 \)
    Thus, angle at P is right angle
    This completes the proof

Solved Examples
  1. Double intercept formula
    Show that equation of straight line in double intercept form by vector method.

    Here
    \( \vec{AP}=k\vec{AB}\)
    or\( \vec{OP}-\vec{OA}=k \vec{OB}-\vec{OA}\) \)
    or\( (x-a,y)=k (-a,b) \)
    or x-a=k and y=kb
    or \( \frac{x}{a}+k=1\) and \( k=\frac{y}{b}\)
    or \( \frac{x}{a}+\frac{y}{b}=1\)
    This completes the proof

  2. IF ABCD is a parallelogram, and G is point of intersection of its diagonals then show that \( \vec{OA}+\vec{OB}+\vec{OC}+\vec{OD}=4\vec{OG}\)

    Here
    \( \vec{OG}=\frac{\vec{OB}+\vec{OD}}{2}\)(1)
    \( \vec{OG}=\frac{\vec{OA}+\vec{OC}}{2}\)(1)
    Ading (1) and (2), we get
    \( 2 \vec{OG}=\frac{\vec{OA}+\vec{OC}}{2} +\frac{\vec{OA}+\vec{OC}}{2} \)
    or\( 4 \vec{OG}=\vec{OA}+\vec{OC}+\vec{OB}+\vec{OD} \)
    This completes the proof

  3. If ABCD is a quadrilateral, show that \( \vec{AB}+\vec{AD}+\vec{CB}+\vec{CD}=4\vec{PQ}\) where P and Q are mid points of AC and BD respectively.

    Here
    \( \vec{OP}=\frac{\vec{OA}+\vec{OC}}{2}\)(1)
    \( \vec{OQ}=\frac{\vec{OB}+\vec{OD}}{2}\)(1)
    Ading (1) and (2), we get
    \( \vec{PQ}=\vec{OQ}-\vec{OP} \)
    or\( \vec{PQ}=\frac{\vec{OB}+\vec{OD}}{2}-\frac{\vec{OA}+\vec{OC}}{2}\)
    or\( 2 \vec{PQ}=\vec{OB}+\vec{OD}-\vec{OA}-\vec{OC}\)
    or\( 4 \vec{PQ}=(2\vec{OB}+\vec{OD}-\vec{OA}-\vec{OC})\)(A)
    Similarly, we get
    \( \vec{AB}=\vec{OB}-\vec{OA} \)(3)
    \( \vec{AD}=\vec{OD}-\vec{OA} \)(4)
    \( \vec{CB}=\vec{OC}-\vec{OB} \)(5)
    \( \vec{CD}=\vec{OD}-\vec{OB} \)(6)
    Ading (3) - (6), we get
    \( \vec{AB}+\vec{AD}+\vec{CB}+\vec{CD}= (2\vec{OB}+\vec{OD}-\vec{OA}-\vec{OC})\) (B)
    Using (A) and (B), we establish the result
    This completes the proof

  4. If AC and BD are the diagonals of a parellelogram ABCD, show that \( \vec{AC}+ \vec{BD}=2 \vec{BC}\) and \( \vec{AC}- \vec{BD}=2 \vec{AB}\)
  5. If ABCDEF is a regular hexagon , show that \( \vec{AB}+\vec{AC}+\vec{AD}+\vec{AE}+\vec{AF}=6\vec{AO}\) where O is the center of the hexagon
  6. ABC is any triangle and D,E,F are the middle points of BC, CA and AB respectively. Show that \( \vec{AD}+\vec{BE}+\vec{CF}=0\)



Application of vectors in Trigonometry

Vector is useful topic to use in Trigonometry. Some of the basic applications are as follows

\( \sin (A+B)= \sin A \cos B+ \cos A \sin B\)

Proof
Let A be a point with coordinate \( A(r_1 \cos A, r_1 \sin A)\) which makes an angle A with X-axis and whose length is \( r_1\) from origin O.
Therefore,
\( \vec{OA}=( r_1 \cos A,r_1 \sin A )\) and \( | \vec{OA} |=r_1 \)
Also let B be another point with coordinate \( B(r_2 \cos B, - r_2 \sin B)\) which makes an angle (-B) with X-axis and whose length is \( r_2\) from origin O.
Therefore,
\( \vec{OB}=( r_2 \cos ( -B ),r_2 \sin ( -B ) )\) and \( | \vec{OB} |=r_2 \)
or \( \vec{OB}=( r_2 \cos B,-r_2 \sin B \) and \( | \vec{OB} |=r_2 \)

Now, angle between OA and OB is (A+B)
Therefore,
\( \sin (A+B)=\frac{\vec{OB}\times \vec{OA}}{| \vec{OB} |.| \vec{OA} |}\)
or \( sin(A+B)=\frac{( r_2 \cos B,-r_2 \sin B )\times ( r_1 \cos A,r_1 \sin A )}{| ( r_2 \cos B,-r_2 \sin B ) |.| ( r_1 \cos A,r_1 \sin A ) |}\)
or \( \sin (A+B)= \sin A CosB+ CosA \sin B\)

\( \sin (A-B)= \sin A \cos B- \cos A \sin B\)

Proof
Let A be a point with coordinate \( (r_1 \cos A, r_1 \sin A)\) which makes an angle A with X-axis and whose length is \( r_1\) from origin O.
Therefore,
\( \vec{OA}=( r_1 \cos A,r_1 \sin A )\) and \( | \vec{OA} |=r_1 \)
Also let B be another point with coordinate \( (r_2 \cos B, r_2 \sin B)\) which makes an angle B with X-axis and whose length is \( r_2\) from origin O.
Therefore,
\( \vec{OB}=( r_2 \cos B,r_2 \sin B )\) and \( | \vec{OB} |=r_2 \)

Now, angle between OA and OB is (A-B) .
Therefore,
\( \sin (A-B)=\frac{\vec{OB}\times \vec{OA}}{| \vec{OB} |.| \vec{OA} |}\)
or \( sin(A-B)=\frac{( r_2 \cos B,r_2 \sin B )\times ( r_1 \cos A,r_1 \sin A )}{| ( r_2 \cos B,r_2 \sin B ) |.| ( r_1 \cos A,r_1 \sin A ) |}\)
or \( \sin (A-B)= \sin A CosB- CosA \sin B\)

\( \cos (A-B)= \cos A \cos B+ \sin A \sin B\)

Proof
Let A be a point with coordinate \( (r_1 \cos A, r_1 \sin A)\) which makes an angle A with X-axis and whose length is \( r_1\) from origin O.
Therefore,
\( \vec{OA}=( r_1 \cos A,r_1 \sin A )\) and \( | \vec{OA} |=r_1 \)
Also let B be another point with coordinate \( (r_2 \cos B, r_2 \sin B)\) which makes an angle B with X-axis and whose length is \( r_2\) from origin O.
Therefore,
\( \vec{OB}=( r_2 \cos B,r_2 \sin B )\) and \( | \vec{OB} |=r_2 \)

Now, angle between OA and OB is (A-B).
Therefore,
\( \cos (A-B)=\frac{\vec{OA}.\vec{OB}}{| \vec{OA} |.| \vec{OB} |}\)
or\( \cos (A-B)=\frac{( r_1 \cos A,r_1 \sin A ).( r_2 \cos B,r_2 \sin B )}{| ( r_1 \cos A,r_1 \sin A ) |.| ( r_2 \cos B,r_2 \sin B ) |}\)
or \( \cos (A-B)= \cos A \cos B + \sin A \sin B\)

\( \cos (A+B)= \cos A \cos B- \sin A \sin B\)

Proof
Let A be a point with coordinate \( (r_1 \cos A, r_1 \sin A)\) which makes an angle A with X-axis and whose length is \( r_1\) from origin O.
Therefore,
\( \vec{OA}=( r_1 \cos A,r_1 \sin A )\) and \( | \vec{OA} |=r_1 \)
Also let B be another point with coordinate \( (r_2 \cos B, -r_2 \sin B)\) which makes an angle B with X-axis and whose length is \( r_2\) from origin O.
Therefore,
\( \vec{OB}=( r_2 \cos B,-r_2 \sin B )\) and \( | \vec{OB} |=r_2 \)

Now, angle between OA and OB is (A+B).
Therefore,
\( \cos (A+B)=\frac{\vec{OA}.\vec{OB}}{| \vec{OA} |.| \vec{OB} |}\)
or\( \cos (A+B)=\frac{( r_1 \cos A,r_1 \sin A ).( r_2 \cos B,-r_2 \sin B )}{| ( r_1 \cos A,r_1 \sin A ) |.| ( r_2 \cos B,-r_2 \sin B ) |}\)
or \( \cos (A+B)= \cos A \cos B - \sin A \sin B\)




Solution of triangles

A triangle has six parts : three angles and three sides. These are called the elements of Triangle.

If any three out of six elements, if at least one side are given them the remaining three elements can be determined by the use of trigonometric functions and their tables. This process of finding the elements of triangle is called the solution of the triangle.

Therefore, solution of triangles is the trigonometric problem of finding the characteristics of a triangle (angles and sides), when some of these are known.

Sine Law

In a triangle ABC, prove that \( \frac{a} {\sin A} =\frac{b}{\sin B}=\frac{c}{\sin C}\)

Proof
Let ABC be a triangle in which the length of the sides opposite to A, B, C are a ,b , and c respectively.

Here,
\( \vec{a}+\vec{b}+\vec{c}=0\)
or \( \vec{a}\times ( \vec{a}+\vec{b}+\vec{c} )=0\)
or \( \vec{a}\times \vec{b}=\vec{c}\times \vec{a}\) (1)
Similarly, we get
\( \vec{b}\times \vec{c}=\vec{c}\times \vec{a} \) (2)
Hence, from (1) and (2) we have
\( \vec{a}\times \vec{b}=\vec{b}\times \vec{c}=\vec{c}\times \vec{a} \)
Using the formula, we get
\( a b \sin C=bc \sin A=ca \sin B \)
or \( \frac{a} {\sin A} =\frac{b}{\sin B}=\frac{c}{\sin C}\)

Cosine law

In a triangle ABC , prove that \( a^2 =b^2 +c^2 -2bc\cos A\)

Let ABC be a triangle in which the length of the sides opposite to A, B, C are a ,b, and c respectively.

Here,
\( \vec{BC}+\vec{CA}+\vec{AB}=0\)
or \( \vec{a}+\vec{b}+\vec{c}=0\)
or \( \vec{a}=-\vec{b}-\vec{c}\)
Squaring both side, we get
\( \vec{a} ^ 2={{( -\vec{b}-\vec{c} )}^2}\)
or \( \vec{a} ^ 2=( \vec{b}+\vec{c} )^2\)
or \( a^2 =\vec{b} ^ 2+2\vec{b}\vec{c}+\vec{c} ^ 2\)
or \( a^2 =b^2 +c^2 +2\vec{b}\vec{c}\)
Using the formula , we get
\( a^2 =b^2 +c^2 +2( -bc\cos A )\)
or \( a^2 =b^2 +c^2 -2bc\cos A\)
Similarly, we can prove that

  1. In a triangle ABC, prove that \( c^2 =a^2 +b^2 -2ab\cos C\)
  2. In a triangle ABC, prove that \( b^2 =c^2 +a^2 -2ca\cos B\)

Projection Law

In a triangle ABC, prove that \( a=b\cos C+c\cos B\)

Let ABC be a triangle in which the length of the sides opposite to A, B, C are a ,b , and c respectively.

Here,
\( \vec{BC}+\vec{CA}+\vec{AB}=0\)
or \( \vec{a}+\vec{b}+\vec{c}=0\)
or \( \vec{a}=-\vec{b}-\vec{c}\)
Taking dot product on both side by \( \vec{a}\) , we get
\( \vec{a}.\vec{a}=-\vec{b}.\vec{a}-\vec{c}.\vec{a}\)
Using the formula , we get
\( a^2 =-( -ba\cos C )-( -ca\cos B )\)
or \( a^2 =ba\cos C+ca\cos B\)
or \( a=b\cos C+c\cos B\)
Similarly, we can prove that

  1. In a triangle ABC, prove that \( b=c\cos A+a\cos C\)
  2. In a triangle ABC, prove that \( c=a\cos B+b\cos A\)