From the course: Mathematica 14 Essential Training

Unlock the full course today

Join today to access over 25,200 courses taught by industry experts.

Solve a system of equations

Solve a system of equations

Systems of equations can, but don't always have simultaneous solutions. In this movie, I will show you how to find a solution for a system of equations, if there is one. I have opened a blank Mathematica notebook, and I'll change the zoom level from 100% at the bottom right to 200%. And now I can enter in the equations, but I'll actually enter them in as a comment so that we'll have them at the top of our file to refer to. So, I'll start with the comment by typing a left parenthesis and then an asterisk. Mathematica gives me the other half of the pair and the formulas, or rather the equation, so I have equation one (Eq1) is 2x plus 3y equals 31. Then a comma and equation two (Eq2) will be 3x plus 5y equals 50. So, I have 2x plus 3y equals 31. 3x plus 5y equals 50. That looks good. I'll do Shift + Enter to move down. And I can enter in my Mathematica formula or statement for evaluating them. I'll assign the output to a variable named S and the keyword is 'Solve.' So, S-o-l-v-e, then…

Contents