Simultaneous Equations Involving Matrices

Algebra Level 3

Consider the following system of equations:

H x + A T λ = [ 0 0 0 ] T Hx + A^T\lambda = \left[\begin{matrix}0&0&0\end{matrix}\right]^T A x = b Ax = b

Where:

H = [ 2 0 0 0 2 0 0 0 2 ] ; A = [ 1 2 3 ] ; b = 4 H = \left[\begin{matrix}2&0&0\\0&2&0\\0&0&2\end{matrix}\right] ; A = \left[\begin{matrix}1&2&3\end{matrix}\right] ; b = 4 x I R 3 × 1 ; λ I R x \in {\rm I\!R}^{3\times1} ; \lambda \in {\rm I\!R}

The goal of this question is to find the unknown column matrix x x . Say:

x = [ x 1 x 2 x 3 ] T x = \left[\begin{matrix}x_1&x_2&x_3\end{matrix}\right]^T

x 1 + x 2 + x 3 = m n x_1 + x_2 +x_3=\frac{m}{n}

Where m m and n n are coprime positive integers. Find m + n \boxed{m+n} .

Note: The solver is encouraged to make effective use of linear algebra. The superscript T T denotes the transpose operation carried out on a matrix.


The answer is 19.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Steven Chase
Aug 20, 2019

Just to provide a more pedestrian look, here's what the equations boil down to when you evaluate them.

2 x 1 + λ = 0 2 x 2 + 2 λ = 0 2 x 3 + 3 λ = 0 x 1 + 2 x 2 + 3 x 3 = 4 2 x_1 + \lambda = 0 \\ 2 x_2 + 2 \lambda = 0 \\ 2 x_3 + 3 \lambda = 0 \\ x_1 + 2 x_2 + 3 x_3 = 4

We have four linear equations to solve for four unknowns. Solving is standard procedure from there

Thanks for posting. Your approach is the recommended way to solve the problem. I am planning on posting a more general variant of this problem. I was recently working with equations involving a very large number of variables and I started to appreciate the effectiveness of linear algebra. This problem and its solution is my way of sharing this appreciation that I developed.

Karan Chatrath - 1 year, 9 months ago

Log in to reply

Indeed, it looks like there is power in being able to manipulate whole matrices as one would ordinarily manipulate terms in an equation.

Steven Chase - 1 year, 9 months ago
Karan Chatrath
Aug 20, 2019

Consider the system of equations: H x + A T λ = [ 0 0 0 ] T Hx + A^T\lambda = \left[\begin{matrix}0&0&0\end{matrix}\right]^T A x = b Ax = b

Multiplying the first equation by A H 1 AH^{-1} gives:

A H 1 H x + A H 1 A T λ = A H 1 [ 0 0 0 ] T AH^{-1}Hx + AH^{-1}A^T\lambda = AH^{-1}\left[\begin{matrix}0&0&0\end{matrix}\right]^T

Which gives:

A x + A H 1 A T λ = 0 Ax + AH^{-1}A^T\lambda = 0

Subtracting this equation by A x = b Ax = b gives:

A H 1 A T λ = b AH^{-1}A^T\lambda = -b

This gives:

λ = ( A H 1 A T ) 1 b \lambda = -\left(AH^{-1}A^T\right)^{-1}b

Finally, we have the equation:

H x + A T λ = [ 0 0 0 ] T Hx + A^T\lambda = \left[\begin{matrix}0&0&0\end{matrix}\right]^T

Replacing λ \lambda gives:

H x A T ( A H 1 A T ) 1 b = [ 0 0 0 ] T Hx -A^T\left(AH^{-1}A^T\right)^{-1}b = \left[\begin{matrix}0&0&0\end{matrix}\right]^T

Finally,

x = H 1 A T ( A H 1 A T ) 1 b x = H^{-1}A^T\left(AH^{-1}A^T\right)^{-1}b

At this point, one may substitute values and simplify. Evaluate the sizes of the resulting matrices at each stage as a sanity check .

Finally, we get:

x = [ 2 7 4 7 6 7 ] T \boxed{x = \left[\begin{matrix}\frac{2}{7}&\frac{4}{7}&\frac{6}{7}\end{matrix}\right]^T}

Through this easy question, I wanted to demonstrate that simultaneous equations involving matrices can be solved by effective manipulation.

An alternate approach to this problem is as such:

H x + A T λ = [ 0 0 0 ] T Hx + A^T\lambda = \left[\begin{matrix}0&0&0\end{matrix}\right]^T A x = b Ax = b

This can be rearranged as:

[ H A T A 0 ] [ x λ ] = [ 0 0 0 b ] \left[\begin{matrix}H&A^T\\A&0\end{matrix}\right] \left[\begin{matrix}x\\ \lambda\end{matrix}\right] = \left[\begin{matrix}0\\0\\0\\b\end{matrix}\right]

Therefore,

[ x λ ] = [ H A T A 0 ] 1 [ 0 0 0 b ] \left[\begin{matrix}x\\ \lambda\end{matrix}\right]=\left[\begin{matrix}H&A^T\\A&0\end{matrix}\right]^{-1}\left[\begin{matrix}0\\0\\0\\b\end{matrix}\right]

The last step can be evaluated by using a programmable calculator.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...