I am having trouble moving certain variables from one side of the equation to the other.
For example, if i want to solve for x1:
Reduce[x1 + x2 + x3 == 4, x1]
x1 == 4 - x2 - x3
but if i want to solve for 2 variables (x1 and x2):
Reduce[x1 + x2 + x3 == 4, {x1, x2}]
x2 == 4 - x1 - x3
But what I need is
x1 + x2 == 4 - x3
What am i doing wrong?
Reduce[u + x3 == 4, u] /. u -> x1 + x2– ubpdqn May 30 '15 at 10:08eqn = x1 + x2 + x3 == 4; Map[Subtract[#, First[eqn] - (x1 + x2)] &, eqn]. Alternatively,Distribute[eqn - (First[eqn] - (x1 + x2)), Equal]. Also, I think the other linked question, Arrange equation in normal form, is a duplicate of the earlier one. – Jens May 30 '15 at 17:52