Unit -4
Matrices and Linear Algebra
Example 1:
Find the unit vector in the direction of vector
=
Magnitude of
Unit vector in the direction of
Thus ,unit vector in the direction of
Example 2:
Find the unit vector in the direction of the sum of the vectors,
= 4 +3
Let =(
4 +3
Magnitude of
=
Example 3:
,then show that the vectors and are
Perpendicular.
Solution:
Two vectors are said to be perpendicular if their scalar product is zero
Ie.
=
=
=
= 0
Thus are perpendicular.
Example 1: Test whether the vectors (1,-1,1),(2,1,1) and (3,0,2) are linearly dependent. Ifso write the relationship for the vectors.
Solution:
Let the given vectors be,
Now we have to write the given vectors in the form
1
-1
1
From the second equation
Now we substitute this value in equation (1)
Now substituting and in the third equation
....(4)
Equation (4) is true for any value of . So that let us assume and
Values of
Therefore we can say that given vectors are linearly dependent.
Now the relationship is given by
Applying the values in the equation we will get
Example:1 Let u = Find the basis of u
Solution:
If u= then u= and so one of such
Basis of u is
To verify this set of vectors is a basis of U we must show that U=span((2,1,0),(0,0,1)) and that {(2,1,0),(0,0,1)} is a linearly independent vectors in V.let x=(.Then we have that ,
X=
So U = span((2,1,0),(0,0,1)).now consider the following vector equation for
=0
is a linearly independent set of vectors in R3
Thus,
{(2,1,0),(0,0,1)} is a basis of U.
Example 2:
Let U= {( be a subspace of R5.Findd basis of U.
Solution :
U=
Therefore we have that is a basis of U.To verify this,
( then we have that:
( =
So U = span((2,1,0,0,0),(0,0,4,1,2)) .Now consider the following vector equation for
The equation above implies that
Thus and so is a linearly independent set of vectors in U.
Thus is a basis of U.
Let be the vector space over R consisting of all polynomials wit real co-efficient of degree 2 or less.
Let B = be a basis of the vector space .
For each linear transformation T: defined below,find the matrix representation of T w.r.to the basis B.For f(x), define T as follows
(1) T(f(x)) =
(2) T(f(x)) =
(3) T(f(x))=
Solution (1):
Given, T(f(x)) =
Since the derivative constant function x is zero,we have
T(1)=0
Since the second derivative of the function x is zero, we have
T(x)=-3
Finally we calculate T(x2) = 2-6x
There with respect to the basis { , the matrix for T is
(2) given,
T(f(x)) =
We compute,
T(f(x)) =
=
Then we have,
T(1) =
T(x) = -
T(x2) =
Here we calculated the integrals
=2,
Therefore the matrix for the linear transformation with respect to the basis B=
(iii) .given,
T(f(x))=
By product rule for derivatives we have
T(f(x))=
= -f(x)+
Thus we have,
T(1) = 1
T(x) = -x+1
T(x2) =-x2 + 2x
Hence the matrix for the linear transformation T w.r.to., the basis B is,
Example 2:
Define two functions and by
T
Determine whether T,S and the composite S o T are linear transformation.
Solution:
We will prove that T and S o T are linear transformation.
X = , Y =
Then we have
T(x+y) = T =
=
Note ,for any scalar ,we hace
T(rx) = T
Hence T is a linear transformation.
Example 1:
Perform the following column transformations on A in given order
A =
Solution:
=
Example 2:
Perform row operations for the following matrix
A =
Applying row operations
The equivalent matrix is a row echelon matrix having three non-zero rows
Rank of A is
Example 3:
Reduce the given matrix into a row-echelon form
Solution:
Given matrix is,
,now we perform row operation to reduce into echelon form,
This is also a row-echelon form of the given matrix
Example 4:
Reduce the given matrix in a row-echelon form
Solution:
Example 1:
Determine bases for when
A = and then determine rank and nullities of the matrices A and ATA
Solution :
We will first compute AT
AT = and ATA==
Next,we will find reducing [0]:
Thus the solution to Ax = 0 is given by
X=
Thus N(A) =
Therefore,
is a basis for N(A)
Similarily,we will compute N(ATA) by row reducing
Since the row reduced matrices for are identical, we can immediately conclude that
N(ATA) = span is a basis for N(ATA)
It follows that the nullities of A and ATA are both 1
The rank-nulity theorem tells
Rank of A +nullity of A =3
Hence the rank of A is 2. Similarily ,the rank of ATA is 2.
Example 2:
Let T: R23 be a linear transformation such that,
T
(a). Find the matrix representation of T(w.r.to standard basis of R3)
(b).Determine the rank and nullity of T.
Solution:
The matrix representation A of the linear transformation is given by
A=[T(e1),T(e2)]
Where
T(e1)= T
= 3T
= 3
Similarly, we compute T(e2) as follows
Let e2 =
This can be written as
Hence,we obtain
And c=-4,d=-3
Hence
And we have,
T(e2) = T
=-4T
= -4
(b).Determine the rank and nullity of T
Note that the rank and nullity of T are the same as those of the matrix representation A of T in part (a), we obtained
A=
Let us first determine the rank of A.
We have
Hence the reduced echelon form matrix of A has two non-zero rows.
So the rank of A is 2
By the rank-nullity theorem,we know that ,
(rank of A)+(nullity of A)=2
Example 1:
Solve the following system of equations
2x-y+3z=9
X+y+z=6
x-y+z=2
Solution:
Here
By cramer’s rule
Example 2:
For what values of p and q the system of equations 2x+py+6z=8, x+2y+qz=5,x+y+3z=4 has (i) no solution (ii) a unique solution (iii) infinetly many solutions.
Solution:
Here
= pq-2q-3p+6=(p-2)(q-3),also
= 48-8q-15p+4pq-18=4pq-18=4pq-8q-15p+30=4q(p-2)-15(p-2)=(4q-15)(p-2),
And,
Case 1: when ie. p2,q3,given system of equation has a unique solution
Case 2 when =0,ie. P=2 or q=3
When p=2,,,,
given system of equations has infinetly many solutions.
When q=3,p 2,D=0, ,Then the system of equations has no solution.
Example 3:
Find the characterstic equation of the following matrix
Where A =
Solution:
The required equation to get the characterstic equation is,
(A-I ) =0 Where I is the identity matrix and must be 2 because A is a 22 matrix.
Det=0
Det=0
Det =0
(1-)(2-)-(3)(4)=0
=
In linear algebra, the Cayley–Hamilton theorem (termed after the mathematicians Arthur Cayley and William Rowan Hamilton) says that every square matrix over a commutative ring (for instance the real or complex field) satisfies its own characteristic equation. If A is a provided as n×n matrix and In is the n×n identity matrix, then the distinctive polynomial of A is articulated as:
P(x) = det (xIn – A)
Where the determinant operation is ‘det’ and for the scalar element of the base ring, the variable is taken as x. As the entries of the matrix are (linear or constant) polynomials in x, the determinant is also an n-th order monic polynomial in x.
Example 1:
Verify the Cayley-Hamilton theorem for A=
Solution:
The characterstic equation of A is
P() = =
=
Therefore cayley-hamilton theorem is verified.
Example 2:
Verify cayley-hamilton theorem for the following matrix:
A = for
Solution:
=
=
=-6 + 2
=
Hence theorem verified.
Eigen values, Eigen vectors of Real and complex Numbers:
Let A be a square matrix of order n. A number an eigenvalue of A if for some non-zero column vector . When this is the case we call an eigenvector of A corresponding to .
The eigenvalues and eigenvectors can be found using the following property:
A number is an eigenvalue of the matrix A if and only if | A −λ I |= det(A −λ I) = 0 This equation is called the characteristic equation of A and is a polynomial of degree n in .
To verify this, note that λ is an eigenvalue of A
⇔ Av = λ for some nonzero
⇔ (A −λ I) = 0 for some nonzero
⇔ | A −λ I |= 0
For if | A −λ I | 0 then A −λ I is invertible and =
Example:1 Find the eigenvalues and eigenvectors of the matrix A=
Solution: We have
A −λ I= λ
So | A −λ I |=0
⇔ ()()-18=0
⇔
⇔ (λ-1) (λ+8) =0
⇔
Hence the eigenvalues of A are 1 and -8. To find the eigenvectors we consider each eigenvalue in turn.
If (x, y) is an eigenvector corresponding to the eigenvalue 1
⇔
⇔
⇔y=2x
Hence any nonzero vector of the form (x,2x) or equivalently any nonzero multiple of (1,2) is an eigenvector corresponding to the eigenvalue 1
If (x, y) is an eigenvector corresponding to the eigenvalue 8
⇔
⇔
⇔y=-x
Hence any nonzero vector of the form (x, -x) or equivalently any nonzero multiple of (1, -1) is an eigenvector corresponding to the eigenvalue -8.
Quadratic Forms: Definition : An expression of the form, where constants is called quadratic form in n variables
.
If the constants are real numbers, it is called quadratic form.
The second order homogenous expression in n variables is called quadratic form.
Procedure for solving Quadratic form:
Step 1: Write the coefficient matrix A associated with the given quadratic form.
Step 2: Find the eigen values of A.
Step 3: Write the canonical form using
Step 4: Form a matrix P containing the normalized eigen vectors of A. Then X=PY gives the required orthogonal transformation, which reduces Quadratic form to canonical form.
Example1: Consider the function .Determine whether q(0,0) is the global minimum.
Solution: Based on matrix technique
Rewrite the above equation
=
Note that we split the contribution -4 equally among the two components.
More succinctly, we can write
Or
The matrix A is symmetric by construction. By the spectral theorem, there is an orthonormal eigen basis
With associated eigenvalues .
Let can express the value of the function as follows:
Therefore, is the global minimum if the function.
Example 2: The matrix A= has row vectors.
Solution: ,
Orthogonal matrix: An orthogonal matrix is the real specialization of a unitarymatrix, and thus always a normal matrix. Although we consider only real matrices here, the definition can be used for matrices with entries from any field.
Suppose A is a square matrix with real elements and of n x n order and AT is the transpose of A. Then according to the definition, if, AT = A-1 is satisfied, then,
A AT = I
Where ‘I’ is the identity matrix, A-1 is the inverse of matrix A, and ‘n’ denotes the number of rows and columns.
Example 3: prove Q= is an orthogonal matrix
Solution: Given Q =
So, QT = …..(1)
Now, we have to prove QT = Q-1
Now we find Q-1
Q-1 =
Q-1 =
Q-1 =
Q-1 = …(2)
Now, compare (1) and (2) we get QT = Q-1
Therefore, Q is an orthogonal matrix.
Application of matrix to cryptography: One of the important applications of inverse of a non-singular square matrix is in cryptography. Cryptography is an art of communication between two people by keeping the information not known to others. It is based upon two factors, namely encryption and decryption. Encryption means the process of transformation of an information (plain form) into an unreadable form (coded form). On the other hand, Decryption means the transformation of the coded message back into original form. Encryption and Decryption require a secret technique which is known only to the sender and the receiver.
Example1: Let the encoding matrix be A=
Let the message to be sent by the sender be “WELCOME”.
Since the key is taken as the operation of post-multiplication by a square matrix of order 3, the message is cut into pieces (WEL),(COM),(E), each of length 3, and converted into a sequence of row matrices of numbers:
[23 5 12], [3 15 13], [5 0 0]
Note that, we have included two zeros in the last row matrix. The reason is to get a row matrix with 5 as the first entry.
Next, we encode the message by post-multiplying each row matrix as given below:
Uncoded row matrix Encoding matrix Coded row matrix
So the encoded message is [45 -28 -23] [46 -18 3] [5 -5 5]
The receiver will decode the message by the reverse key, post-multiplying by the inverse of A.
So the decoding matrix is
The receiver decodes the coded message as follows:
Coded row matrix Decoding matrix Decoded row matrix
So, the sequence of decoded row matrices is [23 5 12], [3 15 13], [5 0 0]
Thus, the receiver reads the message as “WELCOME”
Matrix application in discrete mathematics:
Here we use Boolean operation in discrete mathematics and solve the following matrices
Example 1: A = B=
Solution: We use two Boolean operations Join (
A=
Example 2: Find the Boolean product of A and B, where
A = , B =
Solution:
Compartmental Models: A Compartment is a group of tissues with similar blood flow and drug affinity. A compartment is physiologic or anatomic region.
Compartment is the traditional and most widely used approach to pharmacokinetic characterization of drug. These models simply interpolate the experimental data and allow on empirical formula to estimate drug concentration with time.
Applications of compartment Modelling:
It is a simple and flexible approach and is widely used.
It gives a visual representation of various rate processes involved in drug disposition.
It is useful in predicting drug concentration time profile in both normal and pathological conditions.
It is useful in relating plasma drug levels in therapeutic and toxic effects in body.
Its simplicity allows for easy tabulation of
Stability of matrix: In engineering and stability theory, a square matrix is called a stable matrix if every eigenvalue of has strictly negative real part, that is, for each eigenvalue. Is also called a stability matrix.
Hurwitz stability criterion:
Given a real polynomial
P(z) = + then nn square matrix is given by
Is called a Hurwitz matrix corresponding to the polynomial p.
A real polynomial with a0> 0 is stable if and only if all the leading principal minors of the matrix H(p) are positive.
And so on.. The minors are called Hurwitz determinants. Similarly, if then the polynomial is stable if and only if the principal minors have alternating signs starting with a negative one.