Mathematical Foundations of Data Science
ASSIGNMENT 4 -
1 .
Given : A = i -2
D
O I
Solution : Let A = a
b
-d -
= a bab Lab abt-
?
then A =
Equating equ's ① and ② we
get
[azb ab =
This
gives us the
following system of equations
a th =
4
ab + bd =
-2
cated =
0
-
③
ch + d2 =
1
from equ
c (a+ d) =
0
c =
0 ,
a = -
d .
I
When c =
o ,
the equations equate to
attbc =
4 -
ab + bd =
-2
-
⑤
ca+ dc = 0 -
ch + d2 =
1 ,
-
from equ@
at + b(0) =
4
a2 = 4 = a = 12
from eqn ⑦
ch + d2 =
1
(old + d2 = 1 ,
=
) d =
11
Case , I
when a= 2 ,
d = 1 ,
c =
0
ab + bd =
-2
23]
-
(21b b(1)
-
+ = -
2 => 2
3b =
-
2 O I
b -
=
2/3
Case 2 ,
when a =
2 ,
d = -
1 ,
c =
0
ab + bd =
-2 -
-
(2)b + b) 1) - = -
2 => 2 -
b =
-
2 0-1
Case 3 : a = -
2 ,
d =
1 ,
c= 0
ab + bd = -
2b + b(i) =
2 => 22
J
-
-
-
b = -
2 O I
b =
2
Case 4 : a = -
2 ,
d = - 1 , c =
0
ab + bd = -
(2)b
-
+
3b
b(
=
1)
-
2
=
2
=
[-4]
b
23
=
When condition ,
a = -d
,
Equ's reduce to
,
attbc =
4
ab + bd =
-2 - ⑧
ca+ dc = 0
ch + d2 =
1
considering equ ⑧
,
ab + bd = -2
ab + b( a) - = -
2
0 -2 ,
no solution
I
: ] [ =] [i] :
-
. . .
Hence the matrices above the
,
are
only possible
solutions matrix .
for
A
.
2 Given
,
w" (x + 142) /
+
X has 3 columns let X be makin size (nX3)
,
so
of
where is the number
x
of .
lowes
similarly
,
Y has
I columns , (yX4)
2 has 5 columns ,
12 X51 .
the matrices
where y ,
I are rows
of given .
YZ is
defined if number
of columns
of
Y
equals
number
of sones
of I
Hence ,
z =
4
multiplication of
matrices Y & Z yield us a matrix
of size (pX5)
i . .
e
yz (pX5) is
(y2)T is (5Xp)
(Y2)"
T
X+ is
defined if X & (42) have the
same dimensions
,
Therefore x =
p
= 5 ,
y
= 3
W"(X + (42)T) is
defined only ifW is a
matsin with the number
of
square same sows as
X + (y2)T T . e . 5x5
Therefore the sizes matrices
,
of the are
,
W is (5x5)
X is (5x3)
Y is (3x4)
2 is (4X5)
3 . Given
,
n1 + Suc =
10
-
①
n 2xc
=
) -
②
S is
whese some unknown
paramete
.
Sa .
When 8 =
4 :
Egns D and ② become
n, +
4k =
10
-
⑬
11 -
212 =
4 => x1 =
4 + 242
-
Substituting in we
get
4 + 2x2 + 4x2 = 10
4 + 622 = 10
6x2 = 6
1
xc =
Substituting value
of 12 in equ ,
we
get,
H =
4 + 2x2
x1
=
4 +2
x1 =
6
Therefore ,
when S-4 ,
the solution
of the system is
(x ,, xc) =
(6 1) ,
3b .
For a system to have no solutions ,
the limes
represented by the
equations must be
parallel
but not identical .
This and is
happens if the
coefficients of , are
proportional ,
but the constants are not ,
i . .
e
if
a, n + bly + c =
0
acc + beytc = o ,
then
=b 22
For the
given equations
,
x, + Suc =
10
x1
-
212 = S.
↑= ,
then S =
-
substituting S =
-2 ,
in
equ D and ② we
get
n,
-
2nz = 10 -
n1-
2x =
2 -
the equ's ③ & are
of
the
form antbytc =
0
taking the
ratio's
of this
co-efficients , we
get
t=
Hence ,
the above calculation proves that the
system has solution 8=-2
no
for
3C .
Given , = = 3
then ,
equ D & become
,
xi + f(3) =
10 = x , + 38 = 10
-
6
n
,
-
2(3) = S = x1 -
5 =
6 = 41
=
6+ 5 -
substituting eqn ⑤ in we
get
6 + S + 38 = 10
6+ 45 = 10
43 =
4
8 =
1 , x) = 6+ 1
x1 = 7 ,
8 =
1
C
4 .
x
DA .
10
DB-
N2
T
A
7 x3
A
C
3
au
Uj
2
D
* 8
-
Given ,
at junction (A B C D)
each , , ,
of traffic entering equal to
amount is amount
of
traffic leaving,
At
junction A ,
x
,
= 10 + 7 +
4
At junction B , x2
= 10 + 3 +
x3
At junction c , 7 =
1sth5
At junction D , 2+
Hy + h5
=
8+ 3
Rearranging the above equations ,
we
get,
17
x,
x4
-
=
=
13
n2 kz
-
xz + 25
=
7
24 + 15
=
9
substituting the values in the
form of Ax = b , we
get
-
- - - -
100-1 O x1 17
+ O U2 13
01 0 =
00 10 I 43 F
00 O 11 Us 9
- - -
-
25
- -