Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can one solve the following system of linear equations in MAPLE 13?I know how to solve a linear equation with one variable floating around but not this one. $$x-2y+3z=10$$ $$3x-2y+z=2$$ $$4x+5y+2z=29$$ Any help would be greatly appreciated.

Thanks In Advance.

share|improve this question
This would be a case where taking a look at the excellent Maple documentation would clearly have been faster than trying to write a post on StackExchange... – Wolfgang Bangerth Jan 18 '13 at 23:06

You make a set of equations and solve for a set of unknowns:

eq1 := x-2*y+3*z = 10; eq2 := 3*x-2*y+z=2; eq3 := 4*x+5*y+2*z = 29; solve({eq1,eq2,eq3},{x,y,z});
share|improve this answer
Great.Thanks.Is there any way of telling maple to show steps? – alok Jan 18 '13 at 11:00
Since it's home work, this is the point where you should consult a good book on linear algebra... You should then be able to explain how Maple gets to the solution. – GertVdE Jan 18 '13 at 11:03
I'am trying to solve $$eqn1 := x-6*y+7*z = 7; eqn2 := 4*x-5*y+9*z = 8; eqn3 := -2*x+4*y+5*z = 10; solve({eq1, eq2, eq3}, {x, y, z})$$,and i get $$x = 1, y = 3, z = 5$$ as solution which is completely wrong.What should i do? – alok Jan 18 '13 at 11:21
@alok you did not put curly braces around your equation set and your unknown set. see my answer – GertVdE Jan 18 '13 at 14:19
@alok: As far as I'm aware, you can't ask maple to show the intermediary steps between the problem setup and the solution. You can illustrate the intermediary steps yourself by multiplying the matrix and right hand side vector by elementary matrices that produce the row operations. But this must be done manually. – Paul Jan 18 '13 at 17:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.