A researcher needs to solve for the same matrix and different right-hand sides
PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics · Numerical and computational mathematics
Error, Chance and the Machine, Ch Linear systems, least squares and the singular value decomposition
Problem
A researcher needs to solve Ax=bk for the same n×n matrix A and 50 different right-hand sides b1,…,b50. They write: 'I will compute A−1 once, at a cost of about 2n3 flops, and then get each solution from xk=A−1bk at a cost of 2n2 flops each. This is both the cheapest and the most accurate way to handle many right-hand sides, since I only factorise once.'
((a)) Find the error in this reasoning, addressing both the cost claim and the accuracy claim, and compare with the strategy of computing the LU factorisation of A once and re-using it for each right-hand side.
((b)) For n=3000, estimate the flop count of each strategy (factorisation plus 50 solves) and state which is cheaper.
((c)) Show that no number of right-hand sides makes the explicit inverse the cheaper strategy.