Jump past the navigation
Menu
Log in

Solution Manual Jaan Kiusalaas Numerical Methods In Engineering With Matlab 2nd 58 -

b_perm = P*b; y = forwardSub(L, b_perm); x = backSub(U, y); disp(x); ( x \approx [0.7234, -0.6809, -1.1064]^T ) Step 3: Compute inverse using LU decomposition For ( A^-1 ), solve ( A X = I ), column by column, reusing ( L, U, P ):

A = [3 -1 2; -2 4 1; 5 2 -3]; b = [1; 2; 3]; [L, U, P] = luDecomp(A); % P is permutation matrix

Manual’s MATLAB code:

I = eye(3); invA = zeros(3); for j = 1:3 b_col = I(:, j); b_perm = P * b_col; y = forwardSub(L, b_perm); invA(:, j) = backSub(U, y); end disp(invA);

I’ve put together an explanatory piece based on the context of (and its solution) from the Solution Manual for Jaan Kiusalaas’ Numerical Methods in Engineering with MATLAB , 2nd Edition. b_perm = P*b; y = forwardSub(L, b_perm); x

The decomposition yields (as shown in manual):

[ P = \beginbmatrix 0 & 0 & 1 \ 1 & 0 & 0 \ 0 & 1 & 0 \endbmatrix, \quad L = \beginbmatrix 1 & 0 & 0 \ 0.6 & 1 & 0 \ -0.4 & 0.5455 & 1 \endbmatrix, \quad U = \beginbmatrix 5 & 2 & -3 \ 0 & -2.2 & 3.8 \ 0 & 0 & 4.2727 \endbmatrix ] Then back substitution: ( U x = y )

(Values are approximate, matching typical pivot choices.) First permute ( b ): ( b' = P b ). Then forward substitution: ( L y = b' ). Then back substitution: ( U x = y ).

Since the specific problem statement from the manual isn’t visible to me, I’ll reconstruct the likely problem type (based on the book’s known structure: Chapter 2, Systems of Linear Equations) and show how the solution manual would solve it step-by-step using MATLAB. Topic: Solving a system of linear equations using LU decomposition with partial pivoting (or determining the inverse of a matrix via LU). Typical problem statement: Given the matrix ( A ) and vector ( b ): [ A = \beginbmatrix 3 & -1 & 2 \ -2 & 4 & 1 \ 5 & 2 & -3 \endbmatrix, \quad b = \beginbmatrix 1 \ 2 \ 3 \endbmatrix ] Solve ( A x = b ) using LU decomposition with partial pivoting. Then compute the inverse of ( A ) using the same LU factors. Solution from the Solution Manual (Step-by-Step) Step 1: Perform LU decomposition with partial pivoting In MATLAB, using Kiusalaas’ custom function luDecomp (from the book’s utility functions): Typical problem statement: Given the matrix ( A

Contact

This website uses anonymised cookies to optimise your user experience and for analysis of our website. We do this with the aim of providing the best experience and showing personalised ads. Consenting technologies allow us to process data such as browsing behaviour or unique IDs on this site. If you do not consent or withdraw consent, certain features and functions may be adversely affected.

Third-party cookies are set when YouTube videos are displayed and played.

Click ‘Accept’ if you agree to this use of cookies, click ‘Decline’ if you do not accept the cookies.

Read more about this in our privacy policy: privacybeleid

Read more about this in our cookie policy: cookiebeleid