element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Blog Quickly Solve Simultaneous Equations up to several variables using just a calculator (or Excel).
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kkazem
  • Date Created: 14 Dec 2021 5:43 AM Date Created
  • Views 2605 views
  • Likes 7 likes
  • Comments 5 comments
  • Design
Related
Recommended

Quickly Solve Simultaneous Equations up to several variables using just a calculator (or Excel).

kkazem
kkazem
14 Dec 2021

Often times, it's necessary to solve simultaneous equations and this can be for optimizing a voltage divider using two outer resistors and a center adjustment pot, or or countless other purposes in electronics, physics, and science. Using just a scientific calculator or a spreadsheet, it's quite easy and fast to solve a 3, 4, 5, variable or even more, simultaneous equations. Few of us would want to do this by hand as we were taught in  engineering school. Personally, I use an HP48 or 49 Scientific Calculator to solve these, but there are many brands of scientific calculators that have a Matrix Calculation capability. Specifically, the calculator needs to perform an inverse matrix multiplication, which is effectively a matrix division. I'll give an example here. 

EXAMPLE: SOLUTION TO 3-VARIABLE, SIMULTENEOUS EQUATIONS:

Here's an example set of 3 equations in 3 unknowns. For the solution to work, there needs to be at least one equation for each independent variable. 

  5*X +    9*Y + 14*Z = 31

12*X +   2*Y  -   4*Z =    8

  3*X + 16*Y  + 21*Z = 19

We first put this in standard form as follows:

|  5      9   14  |      | X |       | 31 |

| 12     2    -4  |      | Y |  =   |  8  |

|  3   16    19 |      | Z |        | 19 |

I apologize for how bad the matrix form looks above, but there are no drawing tools I could use to make a proper left and right matrix bracket, so the best I could do was to use the vertical line character.

To solve this, we simply put it into the calculator with the right-side of the equal sign first, followed by the larger matrix, then divide. When I say divide, this isn't strictly correct as there is no true division in matrix operations. It's actually doing a matrix inverse on the large matrix, then taking the smaller, 3 number column vector by the matrix using a right, matrix multiplication. On the HP48 calculator, it get's entered as follows using the matrix editor:

| 31 |

|   8 |

| 19 |

/

|    5    9  14 |

|  12   2    -4 |

|   3   16  19 |

with the result being a 3 number column matrix with the answers to the variables X, Y, and Z. Here is the result from the HP48 calculator as follows:

X = 2.48428

Y = -3.6101

Z = 3.64779

If you plug these values for X, Y, and Z back into any of the original equations, you'll find that they satisfy the equations.

  • Sign in to reply
  • kkazem
    kkazem over 3 years ago in reply to javagoza

    That's interesting. I had no idea about hacking the HP48. And wow, hand inverting a12x12 matrix, that must have taken some time. Just computing the determinant would take a while, not to mention the rest of it. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • javagoza
    javagoza over 3 years ago in reply to kkazem

    I agree that it is important to know and understand the principles of algebra and solving algorithms. That has allowed me to better understand the principles of Machine Learning.

    I remember my first algebra exam in Industrial Electrical Engineering in the early 1980s. One of the exercises was to hand invert a 12x12 matrix. The exam consisted of 2 parts: a theoretical exam in the morning of 5 hours and another exam of practical problems of 5 hours in the afternoon, a total of 10 hours of examination and an hour for lunch. We started the course 1500 students, we finished just 200, in the sixth year of the college career there were only 24 students left. That exercise was a student filter. Now I have a daughter studying the same career and fortunately things have changed. Few young people want to spend 6 years studying something so hard and have had to lower the filter.

    I also remember how we hacked the HP48 when they appeared on the market to increase the range of infrared communications that was limited as standard.Innocent

    They allowed us in some tests to use the HP48 but after the teacher performed a complete memory reset and removed any expansion modules.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kkazem
    kkazem over 3 years ago in reply to javagoza

    To be clear, I posted this blog to help engineers and engineering students to save time when they come across simultaneous equations. In school, I completely agree, the point is to learn how matrix algebra works and to understand the basic principles like the difference between left and right side multiplication and that the results are different. 

    More important, the more modern calculators like the HP48 can be used as general purpose cheating machines by storing loads of theory and answers in the relatively huge memory space available. But my blog wasn't about that.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rsjawale24
    rsjawale24 over 3 years ago in reply to javagoza

    Not just Spain, even in Indian colleges up to 12th standard and entrance exams calculators or any kind are not allowed. However, once you enter engineering college, you are allowed to use only a non-programmable scientific calculator.  The Casio FX991-ES is the most popular calculator among Indian engineers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • javagoza
    javagoza over 3 years ago

    This is one of the absurd and stupid reasons why programmable calculators and / or with matrix functions are not allowed in Spain in college entrance exams.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube