Ask your own question, for FREE!
Mathematics 21 Online
OpenStudy (dan815):

help solving system of 5 equations, very annoying to solve, need someone who has mathematica or some other online software that can plug it in for me!! HELP ELPH LEPHLPELHPLEPLHPE HELLLLLLLLPPP HELPL PHLEPHLP LEHLEPLHPELHPELHPELHPELPLHELHEPLHEPL

OpenStudy (mimi_x3):

enlighten us with your equation.

Nnesha (nnesha):

1)elimination 2)substitution 3)graphing 4)matrices 5)addition( ??) :)

OpenStudy (dumbcow):

5 equations huh if you have a graphing calculator, you can solve it using matrices

OpenStudy (dumbcow):

wolframalpha.com can also solve it for you separate equations with comma

OpenStudy (dan815):

im not able to enter it right hte form is so ugly i need maple or mathematica! sec lemme upload

OpenStudy (dumbcow):

are they not linear equations then ?

OpenStudy (dumbcow):

ok

TheSmartOne (thesmartone):

So does that mean there is 5 variable?

OpenStudy (dan815):

sorry hold on its taking a really long time to upload the picture from my phone to the computer for some reason... i proly have bad connection lemme try goingoutside

OpenStudy (jhannybean):

haha.

TheSmartOne (thesmartone):

And it didn't even upload yet... 9 hours were not enough...

OpenStudy (anonymous):

Say you have \(n\) equations with \(m\) variables, \[\begin{cases} a_{1,1}x_1+\cdots+a_{1,m}x_m=c_1\\ a_{2,1}x_1+\cdots+a_{2,m}x_m=c_2\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\vdots\\ a_{n,1}x_1+\cdots+a_{n,m}x_m=c_n \end{cases}\] There are a few ways to plug this information into Mathematica. One is by defining the list of equations and using the Solve[] or NSolve[] commands (the distinction being that the former gives you exact solutions if possible, and the latter gives numerical/approximated solutions). With the set of equations above, you'd write \[\textbf{Solve[}\{a_{1,1}x_1+\cdots+a_{1,m}x_m==c_1,~\cdots ,~a_{n,1}x_1+\cdots+a_{n,m}x_m==c_n\}\textbf{, }\\ ~~~~~~~~~~~~~~~~~~~\{x_1, ~\cdots~,~x_m\}\textbf{]}\] So the basic structure to this command is the "Solve[]" command with two main arguments; the list (denoted by the brackets) of equations, followed by a list of all the variables. Note the double equal signs (not a typo). If you happen to get an error but you're convinced you typed everything correctly, try using "NSolve[]" instead.

OpenStudy (anonymous):

Alternatively, you can introduce your matrix of coefficients and use the command "LinearSolve[]" which is designed to accommodate *linear* equations in matrix form. First, you'll need to introduce your matrix. Mathematica recognizes matrices as lists of lists. What this means is that when you want, say, the matrix \[m=\begin{bmatrix}a&b&c\\d&e&f\end{bmatrix}\] and you want to refer to this matrix using a variable, you would first define the matrix like so: \[\textbf{m = }\{\{a,b,c\},~\{d,e,f\}\}\] A matrix equation has the form \[MX=C\] where \(M\) is the matrix of coefficients, \(X\) the variable vector, and \(C\) the vector of constants. In terms of the system I had earlier, the matrix equation would be \[\underbrace{\begin{bmatrix} a_{1,1}&\cdots&a_{1,m}\\ \vdots&\ddots&\vdots\\ a_{n,1}&\cdots&a_{n,m} \end{bmatrix}}_{M}~~ \underbrace{\begin{bmatrix} x_1\\\vdots\\x_m \end{bmatrix}}_{X}= \underbrace{\begin{bmatrix} c_1\\\vdots\\c_n \end{bmatrix}}_{C}\] The arguments for the LinearSolve[] command are the coefficient matrices: \[\textbf{LinearSolve[}\text{M, C}\textbf{]}\] where you would have defined \[\text{M = }\{\{a_{1,1},~\cdots,~a_{1,m}\},~\cdots,~\{a_{n,1},~\cdots,~a_{n,m}\}\}\] and \[\text{C = }\{\{c_1\},~\cdots,~\{c_n\}\}\] or, if the curly braces got you down, you can write the \(C\) vector as \[\text{C = }\{\{c_1,~\cdots,~c_n\}\}\] then simply transpose the vector with the Transpose[] command, \[\textbf{Transpose[}\text{C}\textbf{]}\] which would make your input for LinearSolve[] slightly altered, \[\textbf{LinearSolve[}\text{M, Transpose[C]}\textbf{]}\]

OpenStudy (anonymous):

Here's a worked example. If you don't have access to Mathematica, I believe there are online CDF readers you can look up.

OpenStudy (anonymous):

Oh one more thing I should mention. If you've never used Mathematica, you evaluate the cells by pressing Shift+Enter, not just Enter.

OpenStudy (mathmath333):

havent u tried wolframalpha

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!