SlideShare a Scribd company logo
1 of 11
For any Assignment related queries, Call us at:- +1 (315) 557-6473
You can mail us at info@mathsassignmenthelp.com or
reach us at: https://www.mathsassignmenthelp.com/
Linear Algebra
Problem Set 6 Solutions
https://mathsassignmenthelp.com/
� �
� �
2
� �
Section 4.3. Problem 4: Write down E = � A x − b � 2 as a sum of four s
q
u
a
r
e
s
–
the last one is (C + 4D − 20)2. Find the derivative equations ∂E/∂C = 0 and
∂E/∂D = 0. Divide by 2 to obtain the normal equations AT Ax = AT b.
Solution (4 points)
Observe
⎛
0
⎞
⎛
1
0
⎞
A =
1 1
1 3
⎜
⎟
⎝
⎠
, b=
8
8
⎜
⎟
⎝
⎠
, and define x =
C
D
.
1 4 2
0
Then ⎛
C
C +D −8
⎜
⎜
⎝
⎟
⎟
⎠
Ax −b= ,
C +3D − 8
C + 4D −20
and
2 2 2 2 2
� A x − b � = C + (C + D − 8) + (C + 3D − 8) + (C + 4D −20) .
The partial derivatives are
∂E/∂C = 2C +2(C +D −8)+2(C +3D −8)+2(C +4D −20) = 8C +16D −72,
∂E/∂D = 2(C + D − 8) + 6(C + 3D − 8) + 8(C + 4D − 20) = 16C + 52D − 224.
On the other hand,
T
A A = T 3
6
, A b= .
4 8
8 26
11
2
Thus, AT Ax = AT b yields the equations 4C + 8D = 36, 8C + 26D = 112. Multiply
ing by 2 and looking back, we see that these are precisely the equations ∂E/∂C =
0 and ∂E/∂D = 0.
Section 4.3. Problem 7: Find the closest line b = Dt, through the origin, to the
same four points. An exact fit would solve D ·0 = 0, D ·1 = 8, D ·3 = 8, D ·4 = 20.
Find the 4 by 1 matrix A and solve AT Ax = AT b.Redraw figure 4.9a showing the
�
best line b= Dt and the e’s.
Solution (4 points) Observe
⎛
0
⎞
⎛
0
⎞
A =
1
3
⎜
⎟
⎝
⎠
, b=
8
8
⎜
⎟
⎝
⎠
, AT
A = (26), AT
b= (112).
4 20
Thus, solving AT Ax =AT b,we arrive at
D = 56/13.
Here is the diagram analogous to figure 4.9a.
Section 4.3. Problem 9: Form the closest parabola b= C +Dt +Et2 to the same
four points, and write down the unsolvable equations Ax = bin three unknowns
3
4
x = (C, D, E). Set up the three normal equations AT Ax = AT b(solution not
�
required). In figure 4.9a you are nowfittinga parabola to 4 points–what is
happening in Figure 4.9b?
Solution (4 points)
Note ⎛
1
0
⎞ ⎛
0
⎞
0 ⎛
⎞
1 1 1 8
C
⎜ ⎟ ⎜
⎟
⎝
⎠
A = , b= , x = D .
⎝
⎠
⎝
⎠
E
1 3 9 8
1 4 16
2
0
Then multiplying out Ax = byields the equations
C = 0, C + D + E = 8, C + 3D + 9E = 8, C + 4D + 16E = 20.
Take the sum of the fourth equation and twice the second equation and subtract
the sum of the first equation and two times the third equation. One gets 0 = 20.
Hence, these equations are not simultaneously solvable.
Computing, we get
8 26
⎞
⎛
4
⎛
36
⎞
T T
⎝ ⎠ ⎝
⎠
A A = 8 26 92 , A b= 112 .
26 92 338 400
Thus, solving this problem is the same as solving the
system ⎛
26
⎞ ⎛
C
⎞ ⎛
36
⎞ 4 8
8 26
92
⎝ ⎠ ⎝ ⎠ ⎝
⎠
D = 112 .
26 92 338 E 400
The analogue of diagram 4.9(b) in this case would show three vectors a1 = (1, 1, 1,
1), a2 = (0, 1, 3, 4), a3 = (0, 1, 9, 16) spanning a three dimensional vector subspace
of R4. It would also show the vector b = (0, 8, 8, 20), and the projection p =
Ca1+Da2+Ea3 of binto the three dimensional subspace.
Section 4.3. Problem 26: Find the plane that gives the best fit to the 4 values b=
(0, 1, 3, 4) at the corners (1, 0) and (0, 1) and (−1, 0) and (0, −1) of a square. The
equations C + Dx + Ey = bat those 4 points are Ax = b with 3 unknowns x = (C,
D, E). What is A? At the center (0, 0) of the square, show that C +Dx+Ey is the
average of the b’s.
Solution (12 points)
5
that contains the n given points x = 0,a1, . . . , an−1.
be exactly one plane containing 0, a1, a2 unless
exactly one hyperplane in Rn?
(Example for n=3: Therewill
.) What is the test tohave
Solution (12 points)
Note ⎞
⎛
A =
⎜
⎜
⎝
1 1 0
1 0 1
1 −1 0
⎟
⎟
⎠ .
1 0 −1
To find the best fit plane, we must find x such that Ax −bis in the left nullspace of
A.
Observe
Ax −b= ⎜
⎝
C +D
C +E −1
C −D −3
⎛ ⎞
⎜
⎟
⎟
⎠ .
C − E −4
Computing, we find that the first entry of AT (Ax − b) is 4C − 8. This is zero
when C = 2, the average of the entries of b. Plugging in the point (0,0), we get
C + D(0) + E(0) = C = 2 as desired.
Section 4.3. Problem 29: Usually there will be exactly one hyperplane in Rn
The sentence in paranthesis can be completed a couple of different ways.
One could write “There will be exactly one plane containing 0, a1, a2 unless these
three points are colinear”. Another acceptable answer is “There will be exactly
one plane containing 0, a1, a2 unless the vectors a1 and a2 are linearlydependent”.
In general, 0, a1, . . . , an−1 will be contained in an unique hyperplane unless
all of the points 0, a1, . . . , an−1 are contained in an n − 2 dimensional subspace.
Said another way, 0, a1, . . . , an−1 will be contained in an unique hyperplane
unless the vectors a1, . . . , an−1 are linearly dependent.
Section 4.4. Problem 10: Orthonormal vectors are automatically linearly inde
pendent.
(a)Vector proof: When c1q1 + c2q2 + c3q3 = 0, what dot product leads to c1 = 0?
Similarly c2 = 0 and c3 = 0. Thus, the q’s areindependent.
(b)Matrix proof: Show that Qx = 0 leads to x = 0. Since Q may be rectangular,
you can use QT but not Q−1.
� �
6
Solution (4 points) For part (a): Dotting the expression c1q1 + c2q2 + c3q3 with
q1, we get c1 = 0 since q1 · q1 = 1, q1 · q2 = q1 · q3 = 0. Similarly, dotting the
expression with q2yields c2 = 0 and dotting the expression with q3yields c3 = 0.
Thus, {q1, q2, q3} is a linearly independentset.
For part (b): Let Q be the matrix whose columns are q1, q2, q3. Since Q has
orthonormal columns, QT Q is the three by three identity matrix. Now, multiplying
the equation Qx = 0 on the left by QT yields x = 0. Thus, the nullspace of Q is the
zero vector and its columns are linearly independent.
Section 4.4. Problem 18: Find the orthonormal vectors A, B, C by Gram-
Schmidt from a, b,c:
a= (1, −1,0,0) b= (0, 1,−1,0) c =(0, 0, 1, −1).
Show {A, B, C} and {a,b,c} are bases for the space of vectors perpendicular to
d= (1, 1, 1,1).
Solution (4 points) We apply Gram-Schmidt to a, b,c. Wehave
a 1 −1
A = = √
2
, √
2
, 0,0 .
� a �
Next, � � �
B = = 2 2
1 1
b− (b· A)A ( , , − 1,0) 1 1 2
2 2
1 1
� b − (b· A ) A �
� ( , ,
−
1,0)� 6 6
= √ , √ , − , 0 .
3
Finally,
c − (c · A)A − (c · B)B
� √
1 1 1 3
�
C = =
� c − (c · A)A − (c · B)B� 2 3 2 3 2 3
√ , √ , √ , −
2
.
Note that {a, b,c} is a linearly independent set. Indeed,
x1a + x2b + x3c = (x1, x2 − x1, x3 − x2, −x3) = (0,0,0,0)
implies that x1 = x2 = x3 = 0. Wecheck a·(1,1,1,1) = b·(1,1,1,1) = c·(1, 1,1,1) =
0. Hence, all three vectors are in the nullspace of (1, 1, 1, 1). Moreover, the
dimension of the column space of the transpose and the dimension of the
nullspace sum to the dimension of R4. Thus, the space of vectors perpendicular
to (1, 1, 1, 1) is three dimensional. Since {a, b, c} is a linearly independent set in
this space, it is a basis.
Since {A, B, C} is an orthonormal set, it is a linearly independent set by problem
10. Thus, it must also span the space of vectors perpendicular to (1, 1, 1, 1), and
it is also a basis of this space.
Section4.4. Problem 35: Factor[Q, R] = qr(A) forA = eye(4)−diag([111], −1). You
are orthogonalizing the columns (1, −1, 0, 0), (0, 1, −1, 0), (0, 0, 1, −1), and (0, 0, 0,
1) of A. Can you scale the orthogonal columns of Q to get nice integer
components?
Solution (12 points) Here is a copy of the matlab code
√ √
7
Note that scaling the first column by 2, the second column by 6, the third
√
column by 2 3, and the fourth column by 2 yields
⎛
1
⎞
⎜ 1
1
1 1 1
−1 1 1
0 −2 1
0 0 −3 1
⎜
⎝
⎟
⎠ .
8
��
Section 4.4. Problem 36: If A is m by n, qr(A) produces a square A and zeroes
below R: The factors from MATLAB are (m by m)(m by n)
�R
A =
�
Q Q
1 2 .
0
The n columns of Q1 are an orthonormal basis for which fundamental subspace?
The m−n columns of Q2 are an orthonormal basis for which fundamental
subspace?
Solution (12 points) The n columns of Q1 form an orthonormal basis for the
column space of A. The m−n columns of Q2 form an orthonormal basis for the left
nullspace
of A.
Section 5.1. Problem 10: If the entries in every row of A add to zero, solve Ax =
0 to prove det A = 0. If those entries add to one, show that det(A − I) = 0. Does
this mean det A =I?
Solution (4 points) If x = (1, 1, . . . , 1), then the components of Ax are the sums of
the rows of A. Thus, Ax = 0. Since A has non-zero nullspace, it is not invertible
and detA = 0. If the entries in every row of A sum to one, then the entries in every
row of A −I sum to zero. Hence, A−I has a non-zero nullspace and det(A−I) = 0.
This does not mean that det A = I. For exampleif
� �
A =
0 1
1 0
,
then the entries of every row of A sum to one. However, det A = −1.
Section 5.1. Problem 18: Use row operations to show that the 3 by 3 “Vander
monde determinant” is
a
⎡
1 a2
⎤
det 1 b b2
⎣ ⎦ = (b− a)(c − a)(c − b).
1 c c2
Solution (4 points) Doing elimination, we get
⎛
1
⎞
a2
⎞ ⎛
1
⎛
1
⎞
a a a2
a a2
⎝
det 1 2⎠
⎝
b b = det 0 b−a 2 2⎠
⎝
b − a = (b− a)det 0 ⎠
1 b+ a =
1 c c2
0 c − ac2 − a2 0 c − ac2 − a2
⎛
1
⎝
a
= (b− a)det 0 1
a2
⎞
b+ a ⎠ = (b− a)(c − a)(c − b).
0 0 (c − a)(c −b)
Section 5.1. Problem 31: (MATLAB) The Hilbert matrix hilb(n) has i, j entry
equal to 1/(i + j − 1). Print the determinants of hilb(1), hilb(2), . . . , hilb(10).
Hilbert matrices are hard to work with! What are the pivots of hilb(5)?
Solution (12 points) Here is the relevant matlab code.
Note that the determinants of the 4th through 10th Hilbert matrices differ from
zero by less than one ten thousandth. The pivots of the fifth Hilbert matrix are 1,
.0833, −.0056, .0007, .0000 up to four significant figures. Thus, we see that there
is even a pivot of the fifth Hilbert matrix that differs from zero by less than one ten
thousandth.
9
Section 5.1. Problem 32: (MATLAB) What is the typical determinant (exper
imentally) of rand(n) and randn(n) for n = 50, 100, 200, 400? (And what does
“Inf” mean in MATLAB?)
Solution (12 points) This matlab code computes some examples for rand.
As you can see, rand(50) is around 105, rand(100) is around 1025, rand(200) is
around 1079, and rand(400) is around 10219.
This matlab code computes some examples for randn.
10
Note that randn(50) is around 1031, randn(100) is around 1078, randn(200) is
around 10186, and randn(400) is just too big for matlab.
11

More Related Content

Similar to Linear Algebra Assignment help

IIT JEE - Mathematics 2009 i
IIT JEE  - Mathematics  2009  iIIT JEE  - Mathematics  2009  i
IIT JEE - Mathematics 2009 iVasista Vinuthan
 
MATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docx
MATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docxMATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docx
MATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docxwkyra78
 
Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107Dennis Almeida
 
Linear Algebra Gauss Jordan elimination.pptx
Linear Algebra Gauss Jordan elimination.pptxLinear Algebra Gauss Jordan elimination.pptx
Linear Algebra Gauss Jordan elimination.pptxMaths Assignment Help
 
Class 10 mathematics compendium
Class 10 mathematics compendiumClass 10 mathematics compendium
Class 10 mathematics compendiumAPEX INSTITUTE
 
Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02MasfuahFuah
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment HelpMaths Assignment Help
 
Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007 Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007 MD Kutubuddin Sardar
 
Differential Equations Homework Help
Differential Equations Homework HelpDifferential Equations Homework Help
Differential Equations Homework HelpMath Homework Solver
 
Math 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxMath 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxandreecapon
 

Similar to Linear Algebra Assignment help (18)

IIT JEE - Mathematics 2009 i
IIT JEE  - Mathematics  2009  iIIT JEE  - Mathematics  2009  i
IIT JEE - Mathematics 2009 i
 
MATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docx
MATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docxMATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docx
MATH 270 TEST 3 REVIEW1. Given subspaces H and K of a vect.docx
 
Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107
 
Aieee aieee-maths-2009
Aieee aieee-maths-2009Aieee aieee-maths-2009
Aieee aieee-maths-2009
 
Linear Algebra Gauss Jordan elimination.pptx
Linear Algebra Gauss Jordan elimination.pptxLinear Algebra Gauss Jordan elimination.pptx
Linear Algebra Gauss Jordan elimination.pptx
 
Aieee Mathematics 2006
Aieee Mathematics   2006Aieee Mathematics   2006
Aieee Mathematics 2006
 
Aieee mathematics- 2010
Aieee mathematics- 2010Aieee mathematics- 2010
Aieee mathematics- 2010
 
Class 10 mathematics compendium
Class 10 mathematics compendiumClass 10 mathematics compendium
Class 10 mathematics compendium
 
Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
 
Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007 Nbhm m. a. and m.sc. scholarship test 2007
Nbhm m. a. and m.sc. scholarship test 2007
 
Calculus Homework Help
Calculus Homework HelpCalculus Homework Help
Calculus Homework Help
 
Differential Equations Homework Help
Differential Equations Homework HelpDifferential Equations Homework Help
Differential Equations Homework Help
 
Calculus Assignment Help
Calculus Assignment HelpCalculus Assignment Help
Calculus Assignment Help
 
Plano numerico
Plano numericoPlano numerico
Plano numerico
 
Math 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxMath 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docx
 
Maths Assignment Help
Maths Assignment HelpMaths Assignment Help
Maths Assignment Help
 
Maths Assignment Help
Maths Assignment HelpMaths Assignment Help
Maths Assignment Help
 

More from Maths Assignment Help

Unlock Your Academic Success with Expert Math Assignment Help!
Unlock Your Academic Success with Expert Math Assignment Help!Unlock Your Academic Success with Expert Math Assignment Help!
Unlock Your Academic Success with Expert Math Assignment Help!Maths Assignment Help
 
13 Introduction To Probability And Statistics.pptx
13 Introduction To Probability And Statistics.pptx13 Introduction To Probability And Statistics.pptx
13 Introduction To Probability And Statistics.pptxMaths Assignment Help
 
Calculus with Theory, Problem Set Solutions 4.pptx
Calculus with Theory, Problem Set Solutions 4.pptxCalculus with Theory, Problem Set Solutions 4.pptx
Calculus with Theory, Problem Set Solutions 4.pptxMaths Assignment Help
 
Calculus with Theory, Problem Set Solutions 1.pptx
Calculus with Theory, Problem Set Solutions 1.pptxCalculus with Theory, Problem Set Solutions 1.pptx
Calculus with Theory, Problem Set Solutions 1.pptxMaths Assignment Help
 
Introduction to Stochastic Processes, Solution 4.pptx
Introduction to Stochastic Processes, Solution 4.pptxIntroduction to Stochastic Processes, Solution 4.pptx
Introduction to Stochastic Processes, Solution 4.pptxMaths Assignment Help
 
matrix theory and linear algebra.pptx
matrix theory and linear algebra.pptxmatrix theory and linear algebra.pptx
matrix theory and linear algebra.pptxMaths Assignment Help
 
Linear Algebra Communications Assignment Help.pptx
Linear Algebra Communications Assignment Help.pptxLinear Algebra Communications Assignment Help.pptx
Linear Algebra Communications Assignment Help.pptxMaths Assignment Help
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment HelpMaths Assignment Help
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpMaths Assignment Help
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpMaths Assignment Help
 

More from Maths Assignment Help (20)

Unlock Your Academic Success with Expert Math Assignment Help!
Unlock Your Academic Success with Expert Math Assignment Help!Unlock Your Academic Success with Expert Math Assignment Help!
Unlock Your Academic Success with Expert Math Assignment Help!
 
Maths Assignment help
Maths Assignment helpMaths Assignment help
Maths Assignment help
 
Maths Assignment Help
Maths Assignment HelpMaths Assignment Help
Maths Assignment Help
 
13 Introduction To Probability And Statistics.pptx
13 Introduction To Probability And Statistics.pptx13 Introduction To Probability And Statistics.pptx
13 Introduction To Probability And Statistics.pptx
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
 
Calculus with Theory, Problem Set Solutions 4.pptx
Calculus with Theory, Problem Set Solutions 4.pptxCalculus with Theory, Problem Set Solutions 4.pptx
Calculus with Theory, Problem Set Solutions 4.pptx
 
Calculus with Theory, Problem Set Solutions 1.pptx
Calculus with Theory, Problem Set Solutions 1.pptxCalculus with Theory, Problem Set Solutions 1.pptx
Calculus with Theory, Problem Set Solutions 1.pptx
 
Introduction to Stochastic Processes, Solution 4.pptx
Introduction to Stochastic Processes, Solution 4.pptxIntroduction to Stochastic Processes, Solution 4.pptx
Introduction to Stochastic Processes, Solution 4.pptx
 
matrix theory and linear algebra.pptx
matrix theory and linear algebra.pptxmatrix theory and linear algebra.pptx
matrix theory and linear algebra.pptx
 
linear algebra.pptx
linear algebra.pptxlinear algebra.pptx
linear algebra.pptx
 
NUMBER THEORY ASSIGNMENT HELP
NUMBER THEORY ASSIGNMENT HELPNUMBER THEORY ASSIGNMENT HELP
NUMBER THEORY ASSIGNMENT HELP
 
Linear Algebra Communications Assignment Help.pptx
Linear Algebra Communications Assignment Help.pptxLinear Algebra Communications Assignment Help.pptx
Linear Algebra Communications Assignment Help.pptx
 
Online Maths Assignment Help
Online Maths Assignment HelpOnline Maths Assignment Help
Online Maths Assignment Help
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
 
Numerical Analysis Assignment Help
Numerical Analysis Assignment HelpNumerical Analysis Assignment Help
Numerical Analysis Assignment Help
 
Complex Variables Assignment Help
Complex Variables Assignment HelpComplex Variables Assignment Help
Complex Variables Assignment Help
 
Math Homework Help
Math Homework HelpMath Homework Help
Math Homework Help
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
 
Calculus Assignment Help
Calculus Assignment HelpCalculus Assignment Help
Calculus Assignment Help
 

Recently uploaded

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 

Recently uploaded (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 

Linear Algebra Assignment help

  • 1. For any Assignment related queries, Call us at:- +1 (315) 557-6473 You can mail us at info@mathsassignmenthelp.com or reach us at: https://www.mathsassignmenthelp.com/ Linear Algebra Problem Set 6 Solutions https://mathsassignmenthelp.com/
  • 2. � � � � 2 � � Section 4.3. Problem 4: Write down E = � A x − b � 2 as a sum of four s q u a r e s – the last one is (C + 4D − 20)2. Find the derivative equations ∂E/∂C = 0 and ∂E/∂D = 0. Divide by 2 to obtain the normal equations AT Ax = AT b. Solution (4 points) Observe ⎛ 0 ⎞ ⎛ 1 0 ⎞ A = 1 1 1 3 ⎜ ⎟ ⎝ ⎠ , b= 8 8 ⎜ ⎟ ⎝ ⎠ , and define x = C D . 1 4 2 0 Then ⎛ C C +D −8 ⎜ ⎜ ⎝ ⎟ ⎟ ⎠ Ax −b= , C +3D − 8 C + 4D −20 and 2 2 2 2 2 � A x − b � = C + (C + D − 8) + (C + 3D − 8) + (C + 4D −20) . The partial derivatives are ∂E/∂C = 2C +2(C +D −8)+2(C +3D −8)+2(C +4D −20) = 8C +16D −72, ∂E/∂D = 2(C + D − 8) + 6(C + 3D − 8) + 8(C + 4D − 20) = 16C + 52D − 224. On the other hand, T A A = T 3 6 , A b= . 4 8 8 26 11 2 Thus, AT Ax = AT b yields the equations 4C + 8D = 36, 8C + 26D = 112. Multiply ing by 2 and looking back, we see that these are precisely the equations ∂E/∂C = 0 and ∂E/∂D = 0. Section 4.3. Problem 7: Find the closest line b = Dt, through the origin, to the same four points. An exact fit would solve D ·0 = 0, D ·1 = 8, D ·3 = 8, D ·4 = 20.
  • 3. Find the 4 by 1 matrix A and solve AT Ax = AT b.Redraw figure 4.9a showing the � best line b= Dt and the e’s. Solution (4 points) Observe ⎛ 0 ⎞ ⎛ 0 ⎞ A = 1 3 ⎜ ⎟ ⎝ ⎠ , b= 8 8 ⎜ ⎟ ⎝ ⎠ , AT A = (26), AT b= (112). 4 20 Thus, solving AT Ax =AT b,we arrive at D = 56/13. Here is the diagram analogous to figure 4.9a. Section 4.3. Problem 9: Form the closest parabola b= C +Dt +Et2 to the same four points, and write down the unsolvable equations Ax = bin three unknowns 3
  • 4. 4 x = (C, D, E). Set up the three normal equations AT Ax = AT b(solution not � required). In figure 4.9a you are nowfittinga parabola to 4 points–what is happening in Figure 4.9b? Solution (4 points) Note ⎛ 1 0 ⎞ ⎛ 0 ⎞ 0 ⎛ ⎞ 1 1 1 8 C ⎜ ⎟ ⎜ ⎟ ⎝ ⎠ A = , b= , x = D . ⎝ ⎠ ⎝ ⎠ E 1 3 9 8 1 4 16 2 0 Then multiplying out Ax = byields the equations C = 0, C + D + E = 8, C + 3D + 9E = 8, C + 4D + 16E = 20. Take the sum of the fourth equation and twice the second equation and subtract the sum of the first equation and two times the third equation. One gets 0 = 20. Hence, these equations are not simultaneously solvable. Computing, we get 8 26 ⎞ ⎛ 4 ⎛ 36 ⎞ T T ⎝ ⎠ ⎝ ⎠ A A = 8 26 92 , A b= 112 . 26 92 338 400 Thus, solving this problem is the same as solving the system ⎛ 26 ⎞ ⎛ C ⎞ ⎛ 36 ⎞ 4 8 8 26 92 ⎝ ⎠ ⎝ ⎠ ⎝ ⎠ D = 112 . 26 92 338 E 400 The analogue of diagram 4.9(b) in this case would show three vectors a1 = (1, 1, 1, 1), a2 = (0, 1, 3, 4), a3 = (0, 1, 9, 16) spanning a three dimensional vector subspace of R4. It would also show the vector b = (0, 8, 8, 20), and the projection p = Ca1+Da2+Ea3 of binto the three dimensional subspace. Section 4.3. Problem 26: Find the plane that gives the best fit to the 4 values b= (0, 1, 3, 4) at the corners (1, 0) and (0, 1) and (−1, 0) and (0, −1) of a square. The equations C + Dx + Ey = bat those 4 points are Ax = b with 3 unknowns x = (C, D, E). What is A? At the center (0, 0) of the square, show that C +Dx+Ey is the average of the b’s. Solution (12 points)
  • 5. 5 that contains the n given points x = 0,a1, . . . , an−1. be exactly one plane containing 0, a1, a2 unless exactly one hyperplane in Rn? (Example for n=3: Therewill .) What is the test tohave Solution (12 points) Note ⎞ ⎛ A = ⎜ ⎜ ⎝ 1 1 0 1 0 1 1 −1 0 ⎟ ⎟ ⎠ . 1 0 −1 To find the best fit plane, we must find x such that Ax −bis in the left nullspace of A. Observe Ax −b= ⎜ ⎝ C +D C +E −1 C −D −3 ⎛ ⎞ ⎜ ⎟ ⎟ ⎠ . C − E −4 Computing, we find that the first entry of AT (Ax − b) is 4C − 8. This is zero when C = 2, the average of the entries of b. Plugging in the point (0,0), we get C + D(0) + E(0) = C = 2 as desired. Section 4.3. Problem 29: Usually there will be exactly one hyperplane in Rn The sentence in paranthesis can be completed a couple of different ways. One could write “There will be exactly one plane containing 0, a1, a2 unless these three points are colinear”. Another acceptable answer is “There will be exactly one plane containing 0, a1, a2 unless the vectors a1 and a2 are linearlydependent”. In general, 0, a1, . . . , an−1 will be contained in an unique hyperplane unless all of the points 0, a1, . . . , an−1 are contained in an n − 2 dimensional subspace. Said another way, 0, a1, . . . , an−1 will be contained in an unique hyperplane unless the vectors a1, . . . , an−1 are linearly dependent. Section 4.4. Problem 10: Orthonormal vectors are automatically linearly inde pendent. (a)Vector proof: When c1q1 + c2q2 + c3q3 = 0, what dot product leads to c1 = 0? Similarly c2 = 0 and c3 = 0. Thus, the q’s areindependent. (b)Matrix proof: Show that Qx = 0 leads to x = 0. Since Q may be rectangular, you can use QT but not Q−1.
  • 6. � � 6 Solution (4 points) For part (a): Dotting the expression c1q1 + c2q2 + c3q3 with q1, we get c1 = 0 since q1 · q1 = 1, q1 · q2 = q1 · q3 = 0. Similarly, dotting the expression with q2yields c2 = 0 and dotting the expression with q3yields c3 = 0. Thus, {q1, q2, q3} is a linearly independentset. For part (b): Let Q be the matrix whose columns are q1, q2, q3. Since Q has orthonormal columns, QT Q is the three by three identity matrix. Now, multiplying the equation Qx = 0 on the left by QT yields x = 0. Thus, the nullspace of Q is the zero vector and its columns are linearly independent. Section 4.4. Problem 18: Find the orthonormal vectors A, B, C by Gram- Schmidt from a, b,c: a= (1, −1,0,0) b= (0, 1,−1,0) c =(0, 0, 1, −1). Show {A, B, C} and {a,b,c} are bases for the space of vectors perpendicular to d= (1, 1, 1,1). Solution (4 points) We apply Gram-Schmidt to a, b,c. Wehave a 1 −1 A = = √ 2 , √ 2 , 0,0 . � a � Next, � � � B = = 2 2 1 1 b− (b· A)A ( , , − 1,0) 1 1 2 2 2 1 1 � b − (b· A ) A � � ( , , − 1,0)� 6 6 = √ , √ , − , 0 . 3 Finally, c − (c · A)A − (c · B)B � √ 1 1 1 3 � C = = � c − (c · A)A − (c · B)B� 2 3 2 3 2 3 √ , √ , √ , − 2 . Note that {a, b,c} is a linearly independent set. Indeed, x1a + x2b + x3c = (x1, x2 − x1, x3 − x2, −x3) = (0,0,0,0) implies that x1 = x2 = x3 = 0. Wecheck a·(1,1,1,1) = b·(1,1,1,1) = c·(1, 1,1,1) = 0. Hence, all three vectors are in the nullspace of (1, 1, 1, 1). Moreover, the dimension of the column space of the transpose and the dimension of the nullspace sum to the dimension of R4. Thus, the space of vectors perpendicular to (1, 1, 1, 1) is three dimensional. Since {a, b, c} is a linearly independent set in this space, it is a basis.
  • 7. Since {A, B, C} is an orthonormal set, it is a linearly independent set by problem 10. Thus, it must also span the space of vectors perpendicular to (1, 1, 1, 1), and it is also a basis of this space. Section4.4. Problem 35: Factor[Q, R] = qr(A) forA = eye(4)−diag([111], −1). You are orthogonalizing the columns (1, −1, 0, 0), (0, 1, −1, 0), (0, 0, 1, −1), and (0, 0, 0, 1) of A. Can you scale the orthogonal columns of Q to get nice integer components? Solution (12 points) Here is a copy of the matlab code √ √ 7 Note that scaling the first column by 2, the second column by 6, the third √ column by 2 3, and the fourth column by 2 yields ⎛ 1 ⎞ ⎜ 1 1 1 1 1 −1 1 1 0 −2 1 0 0 −3 1 ⎜ ⎝ ⎟ ⎠ .
  • 8. 8 �� Section 4.4. Problem 36: If A is m by n, qr(A) produces a square A and zeroes below R: The factors from MATLAB are (m by m)(m by n) �R A = � Q Q 1 2 . 0 The n columns of Q1 are an orthonormal basis for which fundamental subspace? The m−n columns of Q2 are an orthonormal basis for which fundamental subspace? Solution (12 points) The n columns of Q1 form an orthonormal basis for the column space of A. The m−n columns of Q2 form an orthonormal basis for the left nullspace of A. Section 5.1. Problem 10: If the entries in every row of A add to zero, solve Ax = 0 to prove det A = 0. If those entries add to one, show that det(A − I) = 0. Does this mean det A =I? Solution (4 points) If x = (1, 1, . . . , 1), then the components of Ax are the sums of the rows of A. Thus, Ax = 0. Since A has non-zero nullspace, it is not invertible and detA = 0. If the entries in every row of A sum to one, then the entries in every row of A −I sum to zero. Hence, A−I has a non-zero nullspace and det(A−I) = 0. This does not mean that det A = I. For exampleif � � A = 0 1 1 0 , then the entries of every row of A sum to one. However, det A = −1. Section 5.1. Problem 18: Use row operations to show that the 3 by 3 “Vander monde determinant” is a ⎡ 1 a2 ⎤ det 1 b b2 ⎣ ⎦ = (b− a)(c − a)(c − b). 1 c c2 Solution (4 points) Doing elimination, we get ⎛ 1 ⎞ a2 ⎞ ⎛ 1 ⎛ 1 ⎞ a a a2 a a2 ⎝ det 1 2⎠ ⎝ b b = det 0 b−a 2 2⎠ ⎝ b − a = (b− a)det 0 ⎠ 1 b+ a = 1 c c2 0 c − ac2 − a2 0 c − ac2 − a2
  • 9. ⎛ 1 ⎝ a = (b− a)det 0 1 a2 ⎞ b+ a ⎠ = (b− a)(c − a)(c − b). 0 0 (c − a)(c −b) Section 5.1. Problem 31: (MATLAB) The Hilbert matrix hilb(n) has i, j entry equal to 1/(i + j − 1). Print the determinants of hilb(1), hilb(2), . . . , hilb(10). Hilbert matrices are hard to work with! What are the pivots of hilb(5)? Solution (12 points) Here is the relevant matlab code. Note that the determinants of the 4th through 10th Hilbert matrices differ from zero by less than one ten thousandth. The pivots of the fifth Hilbert matrix are 1, .0833, −.0056, .0007, .0000 up to four significant figures. Thus, we see that there is even a pivot of the fifth Hilbert matrix that differs from zero by less than one ten thousandth. 9
  • 10. Section 5.1. Problem 32: (MATLAB) What is the typical determinant (exper imentally) of rand(n) and randn(n) for n = 50, 100, 200, 400? (And what does “Inf” mean in MATLAB?) Solution (12 points) This matlab code computes some examples for rand. As you can see, rand(50) is around 105, rand(100) is around 1025, rand(200) is around 1079, and rand(400) is around 10219. This matlab code computes some examples for randn. 10
  • 11. Note that randn(50) is around 1031, randn(100) is around 1078, randn(200) is around 10186, and randn(400) is just too big for matlab. 11