Linear Algebra With Applications, Books A La Carte Edition (9th Edition)
Linear Algebra With Applications, Books A La Carte Edition (9th Edition)
9th Edition
ISBN: 9780321985507
Author: Steven J. Leon
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 5, Problem 1E

Set x = [ 0 : 4 , 4 , 1 , 1 ] ' and y = ones ( 9 , 1 )

  1. Use the MATLAB function norm to compute the values of x , y , x + y and to verify that the triangle inequality holds. Use MATLAB also to verify that the parallelogram law x + y 2 + x y 2 = 2 ( x 2 + y 2 ) is satisfied.
  2. If t = x T y x y then why do we know that | t | must be less than or equal to 1? Use MATLAB to compute the value of t and use the MATLAB function acos to compute the angle between x and y. Convert the angle to degrees by multiplying by 180 / π . (Note that the number p is given by pi in MATLAB.)
  3. Use MATLAB to compute the vector projection pofxontoy.Set z = x p andverifythat z is orthogonal to p by computing the scalar product of the two vectors. Compute x 2 and z 2 + p 2 and verify that the Pythagorean law is satisfied.

(a)

Expert Solution
Check Mark
To determine

To Compute:the values of x , y , x+y by using the MATLAB function and verify that the triangle inequality holds and verify the parallelogram law by using MATLAB.

Answer to Problem 1E

The parallelogram law is verified using MATLAB.

Explanation of Solution

Given:

  x=[0:4,4,4,1,1];

  y=ones(9,1)

Calculation:

We set the matrices x and y and compute x , y and x+y

using MATLAB as shown below:

Input:

  x=[0:4,4,4,1,1];y=ones(9,1);norm(x)

Output:

Ans=

  8

Input:

  norm(y)

Output:

Ans=

  3

Input:

  norm(x+y)

Output:

Ans=

  9.8489

The parallelogram law is verified using MATLAB as shown below.

Input:

  (norm( x+y))2+(norm( xy))2

Output:

Ans=

  146

Input:

  2(norm( x+y))2+(norm(y))2

Output:

Ans=

146

Conclusion:

Hence, the values of x=8 , y=3 , x+y=9.8489

(b)

Expert Solution
Check Mark
To determine

To Compute: the value of t and acosto compute the angle between x and y

Answer to Problem 1E

The value t=0.5000 and the angle between x and y is 60.000

Explanation of Solution

Given:

  t=xTyxy

  |xTy|xyxTyxy1|t|1

Calculation:

Consider that t=xTyxy

From Cauchy-Schwarz inequality, if x and y are vectors in either or, then

  |xTy|xyxTyxy1|t|1

[Since t=xTyxy ]

The value of t and the angle between x and y is computed using MATLAB as shown below.

Input:

  t=(xy)/(norm(x)norm(y))

Output:

  t=0.5000

Input:

   acos(t)

Output:

Ans=

  1.0472

Input:

  acos(t)(180/pi)

Output:

Ans=

  60.000

Conclusion:

Thus,the value t=0.5000 and the angle between x and y is 60.000

(c)

Expert Solution
Check Mark
To determine

To Compute: the vector projection p of x onto Y and verify z is orthogonal to P by computing the scalar product of the two vectors.

Answer to Problem 1E

The inner product of z, p is zero and hence both are orthogonal.

Explanation of Solution

Given:

  z=xp

  p=xTyyTyy

  α=xTyy

Calculation:

The vector and scalar projection of x onto y is given as p=xTyyTyy and α=xTyy respectively

The MATLAB program is as shown below.

Input:

  p=((xy)/(xy))y

Output:

P=

  1.3333

  1.3333

  1.3333

  1.3333

  1.3333

  1.3333

  1.3333

  1.3333

  1.3333

  z=xp

  alpha=(xy)/norm(y)

Alpha=

  4

  (norm(x))2

Ans=

  64

Input:

  (norm(z))2+(norm(p))2

Output:

Ans=

  64.0000

Hence, the Pythagorean law is satisfied. Therefore the vector z,p is orthogonal.

Also we can verify using MATLAB command as follows:

Input:

  zp

Output:

Ans=

  0

Therefore the inner product of z, p is zero and hence both are orthogonal.

Conclusion:

Hence, the inner product of z, p is zero and hence both are orthogonal.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!

Chapter 5 Solutions

Linear Algebra With Applications, Books A La Carte Edition (9th Edition)

Ch. 5.1 - Findthedistancefromthepoint (2,1,2) totheplane...Ch. 5.1 - If x=(x1,x2)T,y=(y1,y2)T, and z=(z1,z2)T...Ch. 5.1 - Prob. 13ECh. 5.1 - Let x1,x2, and x3 be vectors in 3. If x1x2 and...Ch. 5.1 - Let A be a 22 matrix with linearly independent...Ch. 5.1 - If x and y are linearly independent vectors in 3,...Ch. 5.1 - Let x=(44 44) and y=(4221) Determine the angle...Ch. 5.1 - Let x and y be vectors in n and define p=xTyyTyy...Ch. 5.1 - Use the database matrix U from Application 1 and...Ch. 5.1 - Fivestudentsinanelementaryschooltakeaptitude tests...Ch. 5.1 - Let t be a fixed real number and let...Ch. 5.2 - For each of the following matrices, determine a...Ch. 5.2 - Let S be the subspace of 3 spanned by x=(1,1)T....Ch. 5.2 - a.Let S be the subspace of 3 spanned by the...Ch. 5.2 - Let S be the subspace of 4 spanned by...Ch. 5.2 - Let A be a 32 matrix with rank 2. Give geometric...Ch. 5.2 - Is it possible for a matrix to have the vector...Ch. 5.2 - Let aj be a nonzero column vector of an mn matrix...Ch. 5.2 - Let S be the subspace of n spanned by the vectors...Ch. 5.2 - If A is an mn matrix of rank r, what are the...Ch. 5.2 - Prob. 10ECh. 5.2 - Prove: If A is an mn matrix and xn, then either...Ch. 5.2 - Let A be an mn matrix. Explain why the following...Ch. 5.2 - Let A bean mn matrix.Showthat If xN(ATA), then Ax...Ch. 5.2 - Let A be an mn matrix, B an nr matrix, and C=AB....Ch. 5.2 - Let U and V be subspaces of a vector space W. Show...Ch. 5.2 - Let A be an mn matrix of rank r and let...Ch. 5.2 - Let x and y be linearly independent vectors in n...Ch. 5.3 - Find the least squares solution of each of the...Ch. 5.3 - For each of your solutions x in Exercise 1:...Ch. 5.3 - For each of the following systems Ax=b, find...Ch. 5.3 - ForeachofthesystemsinExercise3,determinethe...Ch. 5.3 - Find the best least squares fit by a linear...Ch. 5.3 - Find the best least squares fit to the data in...Ch. 5.3 - Given a collection of points...Ch. 5.3 - The point (x,y) is the center of mass for the...Ch. 5.3 - LetAbean mnmatrixofranknandletP=A(ATA)1AT. (a)...Ch. 5.3 - LetAbean 85 matrixofrank3,andletbbea nonzero...Ch. 5.3 - Let P=A(ATA)1AT, where A is an mn matrixof rank n....Ch. 5.3 - Show that if (AIO A T )( x r)=(b0) then x is a...Ch. 5.3 - Let and let be a solution of the leastsquares...Ch. 5.3 - Find the equation of the circle that gives the...Ch. 5.3 - Prob. 15ECh. 5.4 - Let x=(1,1,1,1)T and y=(1,1,5,3)T. Showthat xy....Ch. 5.4 - Let x=(1,1,1,1)T and y=(8,2,2,0)T....Ch. 5.4 - Use equation (1) with weight vector w=(14,12,14)T...Ch. 5.4 - Given A=(122102311) and B=( 411 3321 2 2)...Ch. 5.4 - Show that equation (2) defines an inner product on...Ch. 5.4 - Showthattheinnerproductdefinedbyequation(3)...Ch. 5.4 - In C[0,1], with inner product defined by (3),...Ch. 5.4 - In C[0,1], with inner product defined by (3),...Ch. 5.4 - In C[,] with inner product defined by (6), show...Ch. 5.4 - Show that the functions x and x2 are orthogonal in...Ch. 5.4 - In P5 with inner product as in Exercise 10 and...Ch. 5.4 - If V is an inner product space, show that v=v,v...Ch. 5.4 - Show that x1=i=1n|xi| defines a norm on n.Ch. 5.4 - Show that x=max1in|xi| defines a norm on n.Ch. 5.4 - Compute x1,x2, and x for each of the following...Ch. 5.4 - Let x=(5,2,4)T and y=(3,3,2)T. Compute xy1,xy2,...Ch. 5.4 - Prob. 17ECh. 5.4 - Prob. 18ECh. 5.4 - In n with inner product x,y=xTy Derive a formula...Ch. 5.4 - Prob. 20ECh. 5.4 - Let xn. Show that xx2.Ch. 5.4 - Prob. 22ECh. 5.4 - Prob. 23ECh. 5.4 - Prob. 24ECh. 5.4 - Prob. 25ECh. 5.4 - Prove that, for any u and v in an inner...Ch. 5.4 - The result of Exercise 26 is not valid for norms...Ch. 5.4 - Determine whether the following define norms on...Ch. 5.4 - Let xn and show that x1nx x2nx Give examples of...Ch. 5.4 - Sketch the set of points (x1,x2)=xT in 2 such that...Ch. 5.4 - LetK bean nn matrixoftheform K=(1 c c c0s sc sc00...Ch. 5.4 - Thetraceofan nn matrixC, denoted tr(C), isthe sum...Ch. 5.4 - Consider the vector space n with inner product...Ch. 5.5 - Which of the following sets of vectors form an...Ch. 5.5 - Let u1=( 1 3 2 1 3 2 4 3 2 ),u2=( 2 3 2 3 1 3...Ch. 5.5 - Let S be the subspace of 3 spanned by the vectors...Ch. 5.5 - Let be a fixed real number and let x1=( cos sin)...Ch. 5.5 - Let u1 and u2 form an orthonormal basis for 2 and...Ch. 5.5 - Let {u1,u2,u3} be an orthonormal basis for an...Ch. 5.5 - Let {u1,u2,u3} beanorthonormalbasisforaninner...Ch. 5.5 - The functions cosx and sinx form an orthonormal...Ch. 5.5 - The set S={12,cosx,cos2x,cos3x,cos4x}...Ch. 5.5 - Prob. 10ECh. 5.5 - Prob. 11ECh. 5.5 - If Q is an nn orthogonal matrix and x and y are...Ch. 5.5 - Prob. 13ECh. 5.5 - Prob. 14ECh. 5.5 - Let Q be an orthogonal matrix and let d=det(Q)....Ch. 5.5 - Show that the product of two orthogonal matrices...Ch. 5.5 - Prob. 17ECh. 5.5 - Prob. 18ECh. 5.5 - Prob. 19ECh. 5.5 - Prob. 20ECh. 5.5 - Let A=( 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 ) Show...Ch. 5.5 - Prob. 22ECh. 5.5 - Prob. 23ECh. 5.5 - Let A be an mn matrix, let P be the projection...Ch. 5.5 - Let P be the projection matrix corresponding to a...Ch. 5.5 - Prob. 26ECh. 5.5 - Let v be a vector in an inner product space V...Ch. 5.5 - Let v be a vector in an inner product space V and...Ch. 5.5 - Given the vector space C[1,1] with inner product...Ch. 5.5 - Consider the inner product space C[0,1] with inner...Ch. 5.5 - Prob. 31ECh. 5.5 - Find the best least squares approximation to...Ch. 5.5 - Let {x1,x2,...,xk,xk+1,...,xn} be an orthonormal...Ch. 5.5 - Prob. 34ECh. 5.5 - Prob. 35ECh. 5.5 - A(real or complex)scalar u is said to bean nth...Ch. 5.5 - Prob. 37ECh. 5.5 - Prob. 38ECh. 5.6 - For each of the following, use the GramSchmidt...Ch. 5.6 - Factor each of the matrices in Exercise 1 into a...Ch. 5.6 - Giventhebasis {(1,2,2)T,(1,2,1)T} for 3, use the...Ch. 5.6 - Consider the vector space C[1,1] with innerproduct...Ch. 5.6 - Let A=(211121) and b=( 126 18) Use the GramSchmidt...Ch. 5.6 - Repeat Exercises 5 using A=(3 14202) and b=(0 20...Ch. 5.6 - Given x1=12(1,1,1,1)T and x2=16(1,1,3,5)T, verify...Ch. 5.6 - Use the GramSchmidt process to find an orthonormal...Ch. 5.6 - Repeat Exercise 8 using the modified GramSchmidt...Ch. 5.6 - Let A be an m2 matrix. Show that if both the...Ch. 5.6 - LetAbean m3 matrix.LetQRbetheQRfactorization...Ch. 5.6 - What will happen if the GramSchmidt process is...Ch. 5.6 - Let Abeanmn matrix of rank n and let bm. Show that...Ch. 5.6 - Let U be an m-dimensional subspace of n and let V...Ch. 5.6 - (Dimension Theorem) Let U and V be subspaces of n....Ch. 5.7 - Use the recursion formulas to calculate (a) T4,T5...Ch. 5.7 - Prob. 2ECh. 5.7 - Prob. 3ECh. 5.7 - Prob. 4ECh. 5.7 - Prob. 5ECh. 5.7 - Prob. 6ECh. 5.7 - Prob. 7ECh. 5.7 - Prob. 8ECh. 5.7 - Prob. 9ECh. 5.7 - Prove each of the following....Ch. 5.7 - Givenafunction f(x) thatpassesthroughthepoints...Ch. 5.7 - Prob. 12ECh. 5.7 - Prob. 13ECh. 5.7 - Prob. 14ECh. 5.7 - Let x1,x2,...,xn be distinct point in the interval...Ch. 5.7 - Prob. 16ECh. 5.7 - Prob. 17ECh. 5 - Set x=[0:4,4,1,1] and y=ones(9,1) Use the MATLAB...Ch. 5 - Prob. 2ECh. 5 - Prob. 3ECh. 5 - (Least Squares Circles) The parametric equations...Ch. 5 - Prob. 5ECh. 5 - Prob. 1CTACh. 5 - If x and y are unit vectors in n and |xTy|=1, then...Ch. 5 - If U, V, and W are subspaces of 3 and if UV and...Ch. 5 - It is possible to find a nonzero vector y in the...Ch. 5 - Prob. 5CTACh. 5 - Prob. 6CTACh. 5 - If N(A)={0}, then the system Ax=b will have a...Ch. 5 - Prob. 8CTACh. 5 - Prob. 9CTACh. 5 - Prob. 10CTACh. 5 - Prob. 1CTBCh. 5 - Prob. 2CTBCh. 5 - Prob. 3CTBCh. 5 - Let A be a 75 matrix with rank equal to 4 and let...Ch. 5 - Letxandybevectorsin n andletQbean nn orthogonal...Ch. 5 - Let S be the two-dimensional subspace of 3 spanned...Ch. 5 - Prob. 7CTBCh. 5 - Prob. 8CTBCh. 5 - Prob. 9CTBCh. 5 - Prob. 10CTBCh. 5 - The functions cosx and sinx are both unit vectors...Ch. 5 - Prob. 12CTB
Knowledge Booster
Background pattern image
Algebra
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, algebra and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
Elements Of Modern Algebra
Algebra
ISBN:9781285463230
Author:Gilbert, Linda, Jimmie
Publisher:Cengage Learning,
Text book image
Elementary Geometry For College Students, 7e
Geometry
ISBN:9781337614085
Author:Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:Cengage,
What is a Relation? | Don't Memorise; Author: Don't Memorise;https://www.youtube.com/watch?v=hV1_wvsdJCE;License: Standard YouTube License, CC-BY
RELATIONS-DOMAIN, RANGE AND CO-DOMAIN (RELATIONS AND FUNCTIONS CBSE/ ISC MATHS); Author: Neha Agrawal Mathematically Inclined;https://www.youtube.com/watch?v=u4IQh46VoU4;License: Standard YouTube License, CC-BY