0% found this document useful (0 votes)
94 views8 pages

MatrixSolver For Excel

1) The document describes using Excel to solve systems of linear equations by setting up the equations in matrix form (A*x=b) and calculating the inverse of the coefficient matrix A. 2) It provides examples of solving systems of various sizes (2x2, 3x3, 4x4, 5x5, 6x6) by entering the coefficients into a matrix, calculating the inverse, multiplying the inverse by the constants vector to solve for x, and verifying the solution. 3) The key steps are to set up the matrix equation, calculate the inverse of A using the MINVERSE function, multiply the inverse by the constants vector b to solve for x, and check the solution by calculating

Uploaded by

ownlinkscribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views8 pages

MatrixSolver For Excel

1) The document describes using Excel to solve systems of linear equations by setting up the equations in matrix form (A*x=b) and calculating the inverse of the coefficient matrix A. 2) It provides examples of solving systems of various sizes (2x2, 3x3, 4x4, 5x5, 6x6) by entering the coefficients into a matrix, calculating the inverse, multiplying the inverse by the constants vector to solve for x, and verifying the solution. 3) The key steps are to set up the matrix equation, calculate the inverse of A using the MINVERSE function, multiply the inverse by the constants vector b to solve for x, and check the solution by calculating

Uploaded by

ownlinkscribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Solving a system of equations with Excel

Adopted from: http://www.youtube.com/watch?v=-EnecLe_0B4

You have obtained the following six equations from KVL and KCL

1 25 i1 + 2 i3 -10 i5 = 130
2 10 i2 +10 i5 +2 i6 = 450
3 (-25) i1 -10 i2 + 100 i4 = 0
4 (-1) i1 + i3 - i4 =0
5 i1 - i2 + i5 = 0
6 i2 - i6 = 0

This gives you coefficients for matrix A, and vector b, with unknown vector x=[i1, i2, i3 , …, i6].

A*x=b

Step 1 Type your coefficients for the square matrix (this example is for a 6x6 matrix)

A*x=b

i1 i2 i3 i4 i5 i6 b
25 0 2 0 -10 0 130
0 10 0 0 10 2 450
-25 -10 0 100 0 0 0
-1 0 1 -1 0 0 0
1 -1 0 0 1 0 0
0 1 0 0 0 -1 0

Step 2 find inverse of matrix A'

a. Highlight the solution space (6x6 array) that will contain the inverse matrix
b. Type =
c. Select function MINVERSE and select the array at the top, i.e. A
d. Make sure to click CTRL-SHIFT-RETURN (that will evaluate the whole solution array)

A'= 0.030261348 0.01348 -0.00061 -0.06052 0.167813 0.02696


0.0137551582 0.051582 -0.00028 -0.02751 -0.37827 0.103164
0.0392022008 0.022008 0.009216 0.921596 0.171939 0.044017
0.0089408528 0.008528 0.009821 -0.01788 0.004127 0.017056
-0.01650619 0.038102 0.00033 0.033012 0.45392 0.076204
0.0137551582 0.051582 -0.00028 -0.02751 -0.37827 -0.89684

Step 3 You have now found A' and will use the equation

x = A' *b

to find solution vector x.

a. Highlight solution space (here 6x1 vector) and type =


b. Use function MMULT(array of A' , array of b)
c. Make sure to click CTRL-SHIFT-RETURN (that will evaluate the whole solution array)

x= 10
25
15
5
15
25

Step 4: Verify by calculating b = A x, or MMULT(array of A , array of x) plus CTRL SHIFT ENTER

b= 130
450
0
-1.776357E-15
1.065814E-14
-7.105427E-15
Solving a system of equations with Excel

2x2

Type your coefficients for the square matrix

A*x=b

x1 x2 b x
A= 4 -2 6 1.714286
1 3 3 0.428571

A'= 0.214286 0.142857 Check: b= 6


-0.07143 0.285714 3
Solving a system of equations with Excel

3x3

Type your coefficients for the square matrix

A*x=b

x1 x2 x3 b x
A= 1 2 3 4 0.125
5 6 7 8 -1.25
3 -2 1 5 2.125

A'= -0.625 0.25 0.125 Check: b= 4


-0.5 0.25 -0.25 8
0.875 -0.25 0.125 5
Solving a system of equations with Excel

4x4

Type your coefficients for the square matrix

A*x=b

x1 x2 x3 x4 b x
A= 1 2 3 4 4 -0.39583
5 6 7 5 8 -3.59375
3 -2 1 6 5 5.25
4 4 5 7 3 -1.04167

A'= -0.60417 0.125 0.104167 0.166667 Check: b= 4


-0.40625 -0.3125 -0.34375 0.75 8
0.75 0.5 0.25 -1 5
0.041667 -0.25 -0.04167 0.333333 3
Solving a system of equations with Excel

5x5

Type your coefficients for the square matrix

A*x=b

x1 x2 x3 x4 x5 b x
A= 1 2 3 4 3 4 -1.15789
5 6 7 5 3 8 -4.73684
3 -2 1 6 3 5 7.078947
4 4 5 7 3 3 -0.73684
4 2 3 2 3 2 -1.2193

A'= -0.36842 -0.10526 -1.11E-17 0.210526 0.263158 Check: b= 4


-0.05263 -0.65789 -0.5 0.815789 0.394737 8
0.184211 1.052632 0.5 -1.10526 -0.63158 5
-0.05263 -0.15789 -3.24E-17 0.315789 -0.10526 3
0.377193 -0.36842 -0.16667 0.070175 0.421053 2
Solving a system of equations with Excel

6x6

Type your coefficients for the square matrix

A*x=b

x1 x2 x3 x4 x5 x6 b
A= 1 2 3 4 3 1 4
5 6 7 5 3 2 8
3 -2 1 6 3 3 5
4 4 5 7 3 2 3
4 2 3 2 3 1 2
5 5 4 3 2 1 1

A'= -0.44828 -0.18966 -0.08621 0.396552 0.396552 -0.10345 Check: b=


0.586207 0.017241 0.189655 -0.67241 -0.67241 0.827586
-0.53448 0.293103 -0.27586 0.568966 0.568966 -0.93103
-0.17241 -0.28448 -0.12931 0.594828 0.094828 -0.15517
0.603448 -0.12931 0.077586 -0.4569 0.043103 0.293103
0.758621 0.801724 0.818966 -1.76724 -1.26724 0.982759
x
-1.86207
0.896552
0.741379
-1.7931
0.775862
6.689655

4
8
5
3
2
1

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy