[Math] Creating and solving large systems of equations

linear algebrasystems of equations

I am trying to follow a solution in a book so that I can build my own model. They produce the set of equations below. The book claims it to be a system of equations with 10 unknowns; however from my understanding, to solve a system of equations, each equation in the system must have all of the unknowns for the solver to work. So I am wondering whether I have to rearrange all the equations so that each unknown appears in every equation? This seems like a very long process and I will definitely make an error somewhere. Is there an alternative to doing this or is this the only way? Thanks for any help you can offer. Set of Equations

Best Answer

You definitely don't have to have each unknown in each equation (unless you consider it to be there with a coefficient of $0$). The system $x=1,y=2$ doesn't have each unknown in each equation and is easy to solve. If you are solving this system by hand they will ripple through. If you write it as a matrix equation, the nice thing is that it is tridiagonal. Each equation only links three neighboring unknowns. You can solve the system in two passes. Your last equation is $T_9=\frac 12(T_8+T_{10})$ and $T_{10}$ is a constant, not a variable. You can insert this into the next equation up, which is $T_8=\frac 12(T_7+T_9)=\frac 12(T_7+\frac 12(T_8+T_{10})),T_8=\frac 23T_7+\frac 13T_{10}$ and so on. When you get to the top you will get a value for $T_0$, which you can ripple back downward to get all the rest.

You can get a computer algebra system to do the work for you. The funny stuff that goes on at the ground surface will make it a bit messy.

Related Question