I have this system of linear equations $$ \begin{cases} x_a+x_b=1 \\ ax_a+bx_b=x \end{cases} $$ I want to write this as $(a-x)x_a+(b-x)x_b=0$.
I tried to add eq. 2 to eq. 1: \begin{align} x_a+ax_a+x_b+bx_b&=1+x \\ x_a(1+a)+x_b(b+1)&=1+x \end{align} Stuck! If I instead subtracts eq. 2 from eq. 1 I get: \begin{align} x_a-ax_a+x_b-bx_b&=1-x \\ x_a(1-a)+x_b(1-b) &=1-x \end{align} Stuck! What have I missed?