Skip to main content
1-Visitor
October 7, 2015
Solved

How to derive the expressions of the variables in the linear equations

  • October 7, 2015
  • 6 replies
  • 3891 views

Hi all, if I have the three variables in three equations, would you advise me how to use mathcad to express the derived expression of the variables?

I have three unknown variables x,y,z, and three pre-defined values a, b and c.

If I have

x+y+z=a

x+2y+3z=b

x+3y+4z=c

would you teach me how can I use mathcad to express x, y, z as the expressions of a, b and c, instead of assigned the numbers to a,b and c then solve x,y,z as the fixed numbers? Thank you!

Best answer by Werner_E

Maybe something like this;

6 replies

Werner_E25-Diamond IAnswer
25-Diamond I
October 7, 2015

Maybe something like this;

yhuang-31-VisitorAuthor
1-Visitor
October 7, 2015

Thank you Werner, another question for a more complicated case. In the following case

mathcad.jpg

Q5, Q6 and k9 are variables, and all other parameters are not defined in previous text. How can I use Mathcad to derive the expressions of Q5, Q6 and k9 by alpha1, k1,k3,k4, k6, k7 and k8?

25-Diamond I
October 7, 2015

You should always attach your worksheet as most people are like me not willing to retype the whole thing to be able to play around with the problem.

I am not sure if MC can be talked into providing a solution.

Maybe it helps, if you assure all other variables/constants are real numbers, or maybe even positive numbers - you du this by using the "assume" statement.

Mathcad has to consider all possible conditions, some of which we possibly won't even think of, if we where to solve this by hand.

It may also be, that there is no closed analytic solution available in which case the symbolics can only fail.

Maybe the symbolic solve command is more helpful than a symbolically evaluated solve block.

You just have to play around with the problems and try different things.

yhuang-31-VisitorAuthor
1-Visitor
October 7, 2015

Hi Werner, thank you for your advise. Sorry to cause the inconvenience to you. I have attached the source code of my question, and would you help me again in finding what is the problem of my code?

This time my questions is as this picture

mathcad2.png

Thank you so much!