Linear Algebra with Applications (9th Edition) (Featured Titles for Linear Algebra (Introductory))
Linear Algebra with Applications (9th Edition) (Featured Titles for Linear Algebra (Introductory))
9th Edition
ISBN: 9780321962218
Author: Steven J. Leon
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 7, Problem 1E

Set
A = r o u n d ( 10 * r a n d ( 6 ) ) s = o n e s ( 6 , 1 ) b = A * s
The solution of the linear system A x = b is clearly s. Solve the system using the MATLAB \ operation. Compute the error x s . (Since s consists entirely of I's, this is the same as x 1. ) Now perturb the system slightly. Set
t = 1.0 e 12 , E = r a n d ( 6 ) 0.5 r = r a n d ( 6 , 1 ) 0.5
and set
M = A + t * E , c = b + t * r
Solve the perturbed system M z = c for z. Compare the solution z to the solution of the original system by computing z 1. How does the size of the perturbation in the solution compare with the size of the perturbations in A and b? Repeat the perturbation analysis with t = 1.0 e 04 and t = 1.0 e 02. Is the system A x = b well conditioned? Explain. Use MATLAB to compute the condition number of A.

Expert Solution & Answer
Check Mark
To determine

Calculate the eigenvector, error and the condition number of A.

Answer to Problem 1E

The solution is

  x=[111111]

  error=xs=[     0-0.5551 0.6661-0.3331 0.4441-0.3331]×1015

Solution of the perturbed system is

  z=[111111]

  zs=[ 0.1175 0.0462 0.7292-0.1156-0.4740-0.6285]×1012

The condition number of A is

  Condition no of A=46.015

Explanation of Solution

Given: The matrix has been given

  A=round(10×rand(6))s=ones(6,1)b=A×St=1012E=rand(6)0.5r=rand(6,1)0.5M=A+t×EC=b+t×r

Concept Used:

Given,

  A=round(10×rand(6))s=ones(6,1)b=A×S

To calculate the eigenvector, we use

  Ax=bx=b/A

Then compute the error from s vector

  error=xs

Calculate the perturb solution using given relation

  E=rand(6)0.5r=rand(6,1)0.5M=A+t×EC=b+t×r

Compute the error from s vector

  zs=[ 0.1175 0.0462 0.7292-0.1156-0.4740-0.6285]×1012

Calculate the condition number using function “cond(A)” in MATLAB

  Condition no of A=46.015

Program:

clc
clear
close all
A = round(10 * rand(6));
s = ones(6, 1);
b = A * s;
x = A \ b;
fprintf('Solution to the system:\n');
disp(x);
err = x - s;
fprintf('Error:\n');
disp(err);
t = 1.0e-12;
E = rand(6) - 0.5;
r = rand(6, 1) - 0.5;
M = A + t * E;
c = b + t * r;
z = M \ c;
fprintf('Solution to the perturbed system for t = %.12f:\n', t);
disp(z);
err = z - s;
fprintf('Difference between the solutions:\n');
disp(err);
t = 1.0e-04;
E = rand(6) - 0.5;
r = rand(6, 1) - 0.5;
M = A + t * E;
c = b + t * r;
z = M \ c;
fprintf('Solution to the perturbed system for t = %f:\n', t);
disp(z);
err = z - s;
fprintf('Difference between the solutions:\n');
disp(err);
t = 1.0e-02;
E = rand(6) - 0.5;
r = rand(6, 1) - 0.5;
M = A + t * E;
c = b + t * r;
z = M \ c;
fprintf('Solution to the perturbed system for t = %f:\n', t);
disp(z);
err = z - s;
fprintf('Difference between the solutions:\n');
disp(err);
fprintf('Condition number of A = %f', cond(A));

Quarry:

  • First, we have defined the given matrix.
  • Then compute the eigenvector.
  • Calculate the error.
  • Calculate the perturb solution at the given time interval.
  • Calculate the condition vector of A.

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 7 Solutions

Linear Algebra with Applications (9th Edition) (Featured Titles for Linear Algebra (Introductory))

Ch. 7.2 - Let A=(111241 31 2) Factor A into a product LU,...Ch. 7.2 - Prob. 2ECh. 7.2 - Let A and B be nn matrices and let xn. How many...Ch. 7.2 - Let Amn,Bnr, and x, yn. Suppose that the product...Ch. 7.2 - Let Eki be the elementary matrix formed by...Ch. 7.2 - Prob. 6ECh. 7.2 - If A is a symmetric nn matrix with triangular...Ch. 7.2 - Prob. 8ECh. 7.2 - Let A=LU, where L is lower triangular with 1's on...Ch. 7.2 - Suppose that A1 and the LU factorization of A have...Ch. 7.2 - Prob. 11ECh. 7.3 - Let A=(03112 2254) and b=(17 1) Reorder the rows...Ch. 7.3 - Let A be the matrix in Exercise 1. Use the...Ch. 7.3 - Prob. 3ECh. 7.3 - Prob. 4ECh. 7.3 - Prob. 5ECh. 7.3 - Prob. 6ECh. 7.3 - Prob. 7ECh. 7.3 - Prob. 8ECh. 7.3 - Solve the system in Exercise 7 using four-digit...Ch. 7.3 - Use four-digit decimal floating-point arithmetic,...Ch. 7.4 - Determine F,, and 1 for each of the following...Ch. 7.4 - Let A=(200 2) and x=( x 1 x 2 ) and set...Ch. 7.4 - Let A=(1000) Use the method of Exercise 2 to...Ch. 7.4 - Let D=(30000 50000 200004) Compute the singular...Ch. 7.4 - Prob. 5ECh. 7.4 - If D is an nn diagonal matrix, how do the values...Ch. 7.4 - Prob. 7ECh. 7.4 - Let M denote a matrix norm on nn,V denote a vector...Ch. 7.4 - A vector x in n can also be viewed as an n1 matrix...Ch. 7.4 - A vector y in n can also be viewed as an n1 matrix...Ch. 7.4 - Let A=wyT where wm and yn. Show that Ax2x2y2w2 for...Ch. 7.4 - Prob. 12ECh. 7.4 - Theorem 7.4.2 status that A=max1im(j=1n| a ij|)...Ch. 7.4 - Prob. 14ECh. 7.4 - Prob. 15ECh. 7.4 - Prob. 16ECh. 7.4 - Prob. 17ECh. 7.4 - Prob. 18ECh. 7.4 - Prob. 19ECh. 7.4 - Prob. 20ECh. 7.4 - Let A be an mn matrix. Show that A(1,2)A2Ch. 7.4 - Let Amn and Bnr . Show that Ax2A(1,2)x1 for all x...Ch. 7.4 - Let A be an nn matrix and let m be a matrix norm...Ch. 7.4 - Prob. 24ECh. 7.4 - Prob. 25ECh. 7.4 - Prob. 26ECh. 7.4 - Let A be an nn matrix and xn. Prove: Axn1/2A2x...Ch. 7.4 - Prob. 28ECh. 7.4 - Prob. 29ECh. 7.4 - Solve the given two systems and compare the...Ch. 7.4 - Prob. 31ECh. 7.4 - Prob. 32ECh. 7.4 - Let An=(111 1 1 n ) for each positive integer n....Ch. 7.4 - Prob. 34ECh. 7.4 - Given A=(3211) and b=(52) If two-digit decimal...Ch. 7.4 - Prob. 36ECh. 7.4 - Prob. 37ECh. 7.4 - Prob. 38ECh. 7.4 - Let A and B be nonsingular nn matrices. Show that...Ch. 7.4 - Prob. 40ECh. 7.4 - Prob. 41ECh. 7.4 - Let A be an nn matrix and let Q and V be nn...Ch. 7.4 - Prob. 43ECh. 7.4 - Prob. 44ECh. 7.4 - Let A be an mn matrix with singular value...Ch. 7.4 - Let A be a nonsingular nn matrix and let Q be an...Ch. 7.4 - Let A be a symmetric nonsingular nn matrix with...Ch. 7.5 - For each of the following vectors x, find a...Ch. 7.5 - Given x3, define rij=(xi2+xj2)1/2i,j=1,2,3 For...Ch. 7.5 - For each of the given vectors x, find a...Ch. 7.5 - For each of the following, find a Householder...Ch. 7.5 - Prob. 5ECh. 7.5 - Let A=( 1 3 2 1 2 288 2 71) and b=( 11 2 01) Use...Ch. 7.5 - Prob. 7ECh. 7.5 - Prob. 8ECh. 7.5 - Let Hk=I2uuT be a Householder transformation with...Ch. 7.5 - Let QT=GnkG2G1, where each Gi is a Givens...Ch. 7.5 - Prob. 11ECh. 7.5 - Prob. 12ECh. 7.5 - Prob. 13ECh. 7.5 - Let R be an nn plane rotation. What is the value...Ch. 7.5 - Prob. 15ECh. 7.5 - Prob. 16ECh. 7.5 - Prob. 17ECh. 7.6 - Let A=(1111) Apply one iteration of the power...Ch. 7.6 - Let A=(210131012) and u0=(111) Apply the power...Ch. 7.6 - Let A=(12 1 1) and u0=(11) Compute u1,u2,u3, and...Ch. 7.6 - Let A=A1=(1113) Compute A2 and A3, using the QR...Ch. 7.6 - Let A=(522 21 2 3 42) Verify that 1=4 is an...Ch. 7.6 - Let A be an nn matrix with distinct real...Ch. 7.6 - Prob. 7ECh. 7.6 - Prob. 8ECh. 7.6 - Prob. 9ECh. 7.6 - Prob. 10ECh. 7.6 - Prob. 11ECh. 7.6 - Prob. 12ECh. 7.6 - Let R be an nn upper triangular matrix whose...Ch. 7.7 - Prob. 1ECh. 7.7 - Prob. 2ECh. 7.7 - Let A=(10131310),b=( 4222) Use Householder...Ch. 7.7 - Prob. 4ECh. 7.7 - Let A=(1100) where is a small scalar. Determine...Ch. 7.7 - Show that the pseudoinverse A+ satisfies the four...Ch. 7.7 - Prob. 7ECh. 7.7 - Prob. 8ECh. 7.7 - Show that if A is a mn matrix of rank n, then...Ch. 7.7 - Prob. 10ECh. 7.7 - Prob. 11ECh. 7.7 - Let A=(111100) Determine A+ and verify that A and...Ch. 7.7 - Let A=(12 1 2) and b=(6 4) Compute the singular...Ch. 7.7 - Prob. 14ECh. 7.7 - Prob. 15ECh. 7.7 - Prob. 16ECh. 7 - Set A=round(10*rand(6))s=ones(6,1)b=A*s The...Ch. 7 - Prob. 2ECh. 7 - Prob. 3ECh. 7 - Prob. 4ECh. 7 - Prob. 5ECh. 7 - Prob. 6ECh. 7 - Prob. 7ECh. 7 - Prob. 8ECh. 7 - Construct a matrix A as follows: A=diag(11:1:1,1);...Ch. 7 - Prob. 10ECh. 7 - Set x1=(1:5);x2=[1,3,4,5,9];x=[x1;x2] Construct a...Ch. 7 - To plot y=sin(x), we must define vectors of x and...Ch. 7 - Let A=(452452036036) Enter the matrix A in MATLAB...Ch. 7 - Set A=round(10*rand(10,5)) and s=svd(A) Use MATLAB...Ch. 7 - Prob. 15ECh. 7 - Prob. 16ECh. 7 - Prob. 17ECh. 7 - Prob. 18ECh. 7 - Prob. 19ECh. 7 - Prob. 1CTACh. 7 - Prob. 2CTACh. 7 - If A is a nonsingular matrix and a numerically...Ch. 7 - If A is a symmetric matrix and a numerically...Ch. 7 - Prob. 5CTACh. 7 - Prob. 6CTACh. 7 - If A is a symmetric matrix, then A1=A.Ch. 7 - Prob. 8CTACh. 7 - Prob. 9CTACh. 7 - Prob. 10CTACh. 7 - Prob. 1CTBCh. 7 - Let A=(236448134)b=(304)c=(182) Use Gaussian...Ch. 7 - Prob. 3CTBCh. 7 - Prob. 4CTBCh. 7 - Let A be a 1010 matrix with cond(A)=5106 . Suppose...Ch. 7 - Prob. 6CTBCh. 7 - Prob. 7CTBCh. 7 - Prob. 8CTBCh. 7 - Let A=(524524360360) and b=(51 19) The singular...Ch. 7 - Prob. 10CTB
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
Intermediate Algebra
Algebra
ISBN:9780998625720
Author:Lynn Marecek
Publisher:OpenStax College
Text book image
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:9781305071742
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Text book image
College Algebra
Algebra
ISBN:9781305115545
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Text book image
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
UG/ linear equation in linear algebra; Author: The Gate Academy;https://www.youtube.com/watch?v=aN5ezoOXX5A;License: Standard YouTube License, CC-BY
System of Linear Equations-I; Author: IIT Roorkee July 2018;https://www.youtube.com/watch?v=HOXWRNuH3BE;License: Standard YouTube License, CC-BY