Maths Unit-1 BCA
Maths Unit-1 BCA
4.3 Let u. u, andwbe the vectors of Problem 4.2. Find: (a) 3u - 4v and (b)2u + 3u-5w.
| First perform the scalar multiplication and then the vector addition.
(a) 3u - 4u = 3(2,-7, 1) 4-3, 0,4) =(6, -21, 3) + (12, 0, -16) = (18, -21, -13)
(b) 2u + 3u - 5w = 2(2, -7, 1) + 3(-3, 0, 4) - 5(0, 5, -8)
= (4, -14, 2) + (-9, 0, 12) + (0, -25, 40)
=(4-9+0, -14 +0- 25, 2+12 +40) =(-5, -39, 54)
4.4 Let s = (2, 3, -4) and v = (1, -5, 8). Find: (a) utu, @) Su, and (c) -u.
I(a) u+u= (2+ 1, 3-5, -4 +8) =(3,-2,4)
(6) Su =(5"2, 5"3, 5"(-4)) = (10, 15, -20)
(c -y=-1+ (1, -5, 8)=(-1, 5, -8)
4.5 Let u and v be the vectors in Problem 4.4. Find: (a) 2u -3u and (b) 3u +Su.
I (a) 2u -3v =(4, 6, -8) +(-3, 15, -24) =(1, 21, -32)
(6) 3u+5v= (6,9, -12) + (5, -25, 40) = (11, -16, 28)
4.6 Let u = (3, -2, 1, 4) and v= (7, 1, -3, 6). Find: (a) u +v, (6) 4u, and (c) 2u - 3u.
I (a) u +v=(3+7, -2+ 1, 1-3, 4+6) =(10, -1, -2, 10)
(6) 4u =(4.3, 4-(-2), 4" 1, 4"4)=(12, -8, 4, 16)
(c) 2u - 3u = (6, -4, 2, 8)+ (-21, -3, 9, -18)= (-15, -7, 11, -10)
4.7 Define the zero vector 0 in R".
Ine Zero vector is the vector whose components are all zero., i.e..0 =(0,0,. ) 115
CHAPTER4
vectors and row vectors, with examples.
betweencofumn
components are writen
116
Erplainthe
ditterence
vetor u is
2
vector whose vertically, ez,
AColwmm
4
and
Coapute
components:
corresponding
I(a) Add
4.10 Compute:
(a)
4.11
(6)
0-949(9-(00-0
Find zand yif (x, 3) =(2, x+y).
17
19
Since the two vectors are equal, the correspondingcomponents are equal to each otner:
X=2, 3=x+y
Substitutex =2 into the second equation to obtain y=1.
4.12
Thus x=2 and y= .
Find x and y if (4, y) = x(2, 3).
Multiply by the scalar xto obtain (4, y) =x(2, 3) =(2r, 3x). Set the corresponding components cqualto cach
other: 4 = 2r,y =3x.
Solve the linear equations for xand
4.13
Find x, y, and z if (2x, 3. y) = y:x=2and y o.
(4, x + z, 2z).
VECTORS AND MATRICES 0 117
I Set corresponding components cqual to cach other to obtain the system of cquations
2x = 4, 3= xt z, y=2z
and y =2.
Then x= 2, z = 1,
-1) = (1, 4).
4.14 Find x and y if x(1, 1) + y(2,
and y and then add:
First multiply by the scalars x
x(1, 1) +y(2, -1) =(, x)+ (2y, -9)= (x +2y, x - y) = (1.4)
to each other to obtain
Now set corresponding components cqual
x+ 2y = 1, x-y=4
-1.
Solve the system of equations to find x =3 and y
4.15
Evalain what it means for one vector to be a linear combinationof other vectors
Avector v is a linear combination of vectors u,, uz, ...,um if there exist
U= 4,u, t a,u,+ + amum: Scalars a1, a2, : a,, such that
4.16 Wite v =(1,4) as a linear combination of u,= (1, 1) and u, =(2, -1).
We want to express v in the form
V= Xu,t yu
with x and y as yet unknown. Thus we require
(1, 4) = x(1, 1)+ y(2, -1)
From Problem 4.14, x=3 and y= -1. Thus,substituting into (1),we have v=3u. -u
4.17 Write the vector v= (1, -2, 5) as a linear combination of the vectors u, = (1, 1, 1), u,= (1.2 3) and
u, = (2, -1, 1).
We want to express v in the form v = Xu, t yuz t Zu, With x, y, and z as yet unknown. Thus we have
O-0-049-:
x+ y+2z\
x+2y - Z
\x+3y + z/
(It is more convenient to write the vectors as columns when forming linear combinations.) Setting
corresponding components equal to each other we obtain
x+ y t 2z = 1 xty+2z = 1 x+y+2z = 1
x+2y - z=-2 y-3z =-3 y-3z= -3
x+ 3y + z= 5 2y - z = 4 5z = 10
The unique solution of the triangular system is x = -6, y =3, z =2; thus v = -6u, + 3u, +2u,.
4.18 Write v =(2, 3, -5) as a linear combination of u, = (1, 2, -3), u, = (2, -1, -4), and u, =(1, 7, -5).
Find the equivalent system of equations and then solve. Thus
x+2y +z
2r -y+7z
|-3x -4y -5z)
4.29 Campute u- vwhere (a) u=(2, -3,6), v=(8, 2, -3);(6) u=(1, -8, 0, 5), v= (3,6, 4).
I(a) Multiply corresponding components and add:
u"v=(2)(8) + (-3)(2) + (6)(-3) = 16-6- 18 =-8
(b) The dot product is not defined between vectors with different numbers of components
4.30 Compute u"vwhere: (a) u=(3, -5,2, 1), v= (4,1, -2, 5);(6) u= (1, -2,3, -4), v=(6.7.1. -2).
I Multiply corresponding components and add:
(a) u"v= (3)(4) + (-5)(1)+ (2)(-2) + (1)(5)= 12-5-4+5 =8
(6) u"v =6-14 +3+8=3
4.31 Let u =(2, -7, 1), v=(-3, 0, 4), and w=(0, 5, -8). Find: (a) u"u, (b) u "w, and (c) v" w.
= u (0, 1= product
(1,
+(-2)' of Then = agrees
u
where30. =
and W
= v, multiple 109 w the+
=9+1+4+Jull'=1'+k'+normalizing
(-2)+5' =
-5). 25+16
û w
as and of 49 be dotangle w
*uby v
13.
component
of
+
V39 k'=
that v.) since
Show
(6)
direction obtain
-4);||v|=y"y=
w"w=42 -3). +9=
4),
sum +
+1=V4=5
R.
to
saidthethe
This and
1),
4, vector obtain -1/4).positive
8, 64 Vg9 physICsV=0.
||u|=
u =V169 V102. -2,
1,(-3,
=lu|| vector. same
-3, to
13 = to
(6, + =(-3,0,
= ||12v||2=36 of +0+16=
the V25
= in are is
64 vectors
-4,
a12
l22
\aml \amn
its columns.
(6) Since A has m rows and n columns, it is said to be an m
by n matrix, written m Xn. The pair of
numbers m and n is called the size of the matrix.
(c) To matrices A and B are equal, written A = B, if theyhave the same size and if their corresponding
elements are equal.
4.57 The notation A = (a) is used to denote the matrix in
Problem 4.56 (or A = (a)mxn if the size is not
understood). What is the significance of the first subscript, i, and the second
subscript, ?
ITne scalar a, is the element of A in row iand columni Thus the frst subscript tells the row of the eiem
and the second subscript tells the
column.
4.58
Find the rows, columns,and size of the 2
matrix A= 5 6/
The rows of Aare the horizontal lines of numbers; there are two of them: (1, 2. 3) and(4, 5,6). The
columns of Aare the
vertical lines of numbers; there are three of them:
9
the
Whichof c-(i D-G).
B=F
only
Thus
entries.
coesponding
=(a,)is the m
Xn matrix -A=(-a,). Find the negatives of
matrix A
an mXn
4.62 The negative of 1 -3 4
-5 0 -8/
eachelement:
Take the negative of 3 -4 -7)
-(-3) -4
-(-5) -0 -(-8)/ 0 -a-()
frequently denoted bu
matrx or a row vector and is
matrix Awith only one row is called a row with onlv one
it must be one. Analogously, a matrix B
4.63 A
A=la,a, . .. ,a,); we omit its first subscript since
vector and is frequentlydenoted by
column is called a column matri or a column
b,
B=
(nere we omit the second subscript since, again, it must be one). Discuss the difference, if any between the
following
u= (1,2, 3) and
IViewed as
vectors in u
they have different sizes.R', and v may be considered equal. However, as matrices, they cannot be equal,for
Matrix Addition and Scalar
This
B= (b)subsect
are
ion considers Multiplication
the following
matrices with operations of
the same size and k matrix addition and scalar multiplication where A=(4,) and
is a
a tbu aytb2 scalar:
A+B= ain t bin ka,
az2t b kat kaiz
kaz.
kaz1 kaz
the \amitm Qm2t bm2 and kA =
That is, A+ Bis
amn t b.m
multiplying each entry of Abyobtk.ained by adding
matrix \kami ka,m2
corresponding entries from Aand Band kA is the matrix obtained by
VECTORS AND MATRICES 0 125
3 0 2
and 2
where: -4
Find A+ B
1+3 -2+0
entries: A + B =
3+2\ 4 -2
corresponding 5+1 -6+8)
Ic) Add since the matrices have different sizes.
is not defined,
(6) The sum
5
and D=( 3 1 -1) and D=((3 -S
0 -2
IAdd coresponding elements:
1+1 2+(-1) 3+2
(a) C+D=0 5+3 6+(-5)/
(1+3 2+(-5) (-3) +6 4+(1) -3 3
-2
4.66 FiFd 3A and -54, where A= 5
4.67
Compute: (0) ).0-2 -3
-2)"1 (-2)·7
(-2)"2
\(-2)-0 (-2)"(-1) / 0 2/
4.68 The difference, A -B, of two matrices Aand B of the same size is defined by A-
B=A+(-B), Find A-B if
" and (2 -3
B= -2
-5 -?
A- B=A t(-B)=
2 3 2
respectively:
-1 -8 -10
-8 -10\
*0 -s+0
1+0 -2 +0 1 -2 -5
To obtain the third row of the product matrix AB, multiply the third row of A by each column of R
respectively:
-1 -8 -10 -1 -8 -10\
1 -2 -5 1 -2
-3 \-3+12 6+16 15+0/ 9 22 15
Thus
-1 -8 -10
AB= 1 -2 -5
9 22 15)
4.81 Find the product BA where A and B are
the
matrices of Problem 4.80.
I Since b is 2X3 and Ais 3 x 2, the
multiply the first row of Bby each product BA is defned as a 2 X2 matrix. To obtain the first
column of A, respectively: roWOT De
/1 -2
3
To obtain the
second row of BA, multiply the second row of B by each column of A, respectively:
-21
Thus -3+0+0)-0)
Find AB
where A=( -2
3
and B=
2
1
-1 0 6
-5
+
ACis
matrix A
/-entryofthe
ase,(anba, tauca) (1)
lHencethe 2
matrixAD-A(B
+ C) is
/-entryof the
otherhand,
the
S and, a,(b,a t e,) (2)
Onthe
ofthe distributive lawin the scalar field; this proves (ii).
equalbyvirtue
are
sides of ( )and(2)
Theright BA + CA.
4.6(ii):(3 +CA between left and right multiplication in the fheld of
ProveThcorem 4.90.(Thereis no distinction
4.91 Problem
The proof is as in
|
sCalars.)
k(AB) - (kA)B- A(kB),
4.6(iv):
Prove Theorem
4.92
NSPOSE OF A MATRIX
4.4 TRA on matrices
where the transpose of a matrix A, written A, is the matrix
considers the transpose operationcolumns:
Thussection as
rows of 4, in order,
obtained by writing the a, b, C
b, a, b, Cz
b, b,
\C
C. b, C,
I Rewrite the rows as columns in (a) and the columns as rows in (b):
-4 5\
(a) (6) 2 -4 6
3 -4 7,
4.95
Find u', v', w' for the row yectors u = (2. 4). =(1.3. 5), and w =(6, 6, 0).
I Thetranspose of a row
vector will be a column vector:
w=6
132 D CHAPTER4
The
transposesof
the column
vectors u=
.-)-)--)
transposeof a columnvector will be arow vector: u =(1, 1), v' =(2,4, 6), w' =(-5,-6.1
the
Find
A'A,whereA=( -1
FindA4and Aas
columns:
4.98
rewritingtherows of
IObtainA'by 1 3
whence AA-(1 -
Find (AB)".
4.99 14) 39
AB= / 20+14)
15 +24 0- 28/
-( -28)
and so
(a)'-( 14 -28
Problem 4.99.
the matrices in
4.100 Find AB for
We have 5+0 -6+21)
and B=() and so A'B'=10+0 -12- 28/ \10 -40/
Note that (AB) *ATB".
4.101 Find B'A for the matrices in Problem 4.99.
15 + 24 39\
/5- 12
\0+ 14 0- 28/ )-67 14 -28/
-3,5)
(2,
=
omit
to
the
on
diag =A, =A, denoted
-7,2),
i.e.,
i.e.,triangular
if
a,
following OF
SQUARE
by
square the
B
is of A'
inversion
Hence then
(A,A,A,A,1)t'h=eor(eAm ,A, induction
there and if exists. kAholds
1/k that prove isbyis
it the
is
'A '4
(6) -6
0
matrix
nlMgorithm
blocks
-70
0 3
diagonal, (4,
-5),
if
AA' a,= itsif =
D
inverse invertible,exists only
is
Then
invertible
is
for
true inverse
for on (B
A,A,A, 0 00 (( to
and 0 diag I Ce
B
patterns
or 20
0 and A'A al
foelements
r matrices:
MATRICES
(d,,, of
and a if
A' (kA)(k
n
+ n+1. n.
AB,
(4B)X(B
of
'A is and
)
= with matrix is 1. For
diag Os
diag =1. i
and d,...
below
transposition
that
A'; with
invertible. Accordingly, Using n=is, (AB)
when that invertible
'A 0 0|3 row
(7,4, of elsewhere: (6, j. inverse such B -'A-)= 1, )=
4 2
reduce 6
k 4)
Os -3,0, (A
(above) ,
is #0,A,)A,.J= part (AB) we B(A == B (A,A,and 6
6). as is d,.), B=(A'). B". that (kk (a), have A(BB)A' , cchelon
form: to
in skew-symmetric commute; withtheoremthen. B-'A-!.'=
the 1). if The AB 'A)B
the its )(AA)=1"l=1. inverse A,=A.Suppose wen 0
third nondiagonal
diagonal converse BA = A,(A,A,. have = -
0\
/6 But that B A,)A,'.
B'IAlA=
matrx.) = k holds \00
-3 or B=A; is, follows(AB)' Then
I.
=
'A-!.
antisymmetric are (A")= ·A,)=A,.A, for
-B= AA
2
0 elementsall every
zero, hence from inverseHence >1 =| A. A,'
(A-'). positive and I
i.e., are (A-') the k'Ais k
(BA)" = the
if al fact theorem
A* ifzero. that
a, = the
=-A.) = (A A,'A; holds
0 (aT and
when so
i<j
D CHAPTER4
matrices of. orders 2.,3, and 4.
142 lowertriangular
generic diagonal:
Exhibitthe abovethe
put0s
4.148
cachcase
n |bin
b1 b2 C Cn
Cy C2 C
\Ca CA). Cay
Matrices Cu
Skew-Symmetric
and ifcachofthefollowing matrices is symmetric or skew-symmetric:
Simmetric
Determine
5 -2 4 -7 1
4.149
3 (6) B= -7 3
(a) A = -5
2-3 0 2
(a)
symmetric.
D; hence D is
D'#=tE.
(b) ByWeinspection
I(a) see that E' Accordingly, Eis neither symmetric nor skew-symmetric.
hence Fis skew-symmetric.
(c) By inspection, F' = -F;when 0 is square.
(d) Both, since 0' =0= -0
/S 2
| Equate symmetricelements (mirror images in the diagonal) to obtain x =4, y =2, t= -3. The unkn
on the diagonal, is indeterminate.
4 x+2
4.152 Find x and Bif B =
\2r-3 x+1, is symmetric.
ISet the symmetric elements x+2and 2r+3equal to each 4
M) A A A')
Theorem 4
Prove
4.IS6
Theorem 4
ni)
A-# Candthat ny muiple
4. I67
Prove
toltow thefct that
fromsymmetric)
I The proof (ekew
symmetric
mattix is symmetre utist
um of a symmetrie matrix Mand a skew
Write A- asthe
4.158
ICalulate
Then
A" is symmetic
symmnetric. Show that A' and, in general,
Suppose Ais
4.150
A'. Alo, by induction, (A")'-AA"
(A)'-(AA)' A'A'-AA
matrix and P any n m matrix, Show that P'APis alo ymmetric.
n-square symmetric
4.160 Let Abe an
- P'AP.
I P'AP)' - P'A'(P'y'
OrthogonalMatrices
/1/9 8/9 -4/9
of vectors in R".
4.162 Define an orthogonal set and an orthonormal set
orthogonal set of vectors if the vectors are pairwise orthogonal, that s,S,
an that
I The vectors u,, uz, ..., u, form orthonormal set if they are orthogonal and if they are also unit vectors,
4, 4, =O for ij. They form an Kronecker delta., the condition for orthonormality is 4, 4
Oy
if u, u, = 1 for each i. In terms of the
b, ba b orthonormal
C2 Cs form an
and u, (C,,Cz, C,)
is orthogonal if and only if its rows u, =(a,, 4z, 4). uz =(b, b,, bi),
set.
AA = b, b, b,
C2 C,/
b,
b, C/
\o ) -
14 definitionof
The
general
det (A)=)*sgn (o)
TOlows:
Remark2: 4y4
over all
permutations o
number of. (i,:aren} of {1, 2,.
wherethe
sum is
taken
even oranodd interchanges rcquired to chanoe
,n). Here
one
accordingas an
bricllytreatsuch determinantslaterinthesection.) Permutations are introduced in Chapter 8. sg(o) eawalh
whose proofs lie
theorems, beyond the scope of
The
followingtwo this tex,
Remark3: play an
theory.
Theorem4.10:
Forany
two
n-square matrices AIand B, we have
The determinant is equal to the product of the elements along the plus-labeled arrow minus the product n
clements along the minus-labeled arrow. [There is an analogous scheme (Problem 4.185) for determinant
order three, but not for higher-order determinants.]
4.175 Compute the determinant of each matrix:
(c) 13
(b) Li-26)
-4 - (1)N-4) =12+4= 16
15+8=23
4.176 Compute the
determinant of
4
4.177
Find the determinant öf: (a) A
=(O a Q+
a
I(a) det
(A) =
a+ b =(a -
b)(a + b) -((a)(a) = -b²
(b) det (B) |-5
=\1 +3=(- 5)(+ 3) +7=2-15
+7=-2 -8