Problem 58787. Solve the matrix equation AXB + X + C = 0 for X
Let A, B, and C be square matrices of equal size, and let the matrix X be defined by the matrix equation
A * X * B + X + C = 0
Please solve this equation for X. For instance, if
A = [1 2 ; 3 4];
B = [5 6 ; 7 8];
C = [9 10 ; 11 12];
then
X = [-1/2 5/3 ; -19/6 1];
solves the equation, as is easily checked. You may assume that A, B and C are such that a solution exists.
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Christian Schröder
on 30 Jul 2023
Leave it to me to leave out the important bit.
ChrisR
on 31 Jul 2023
I learned some math, and the solutions of Tim and Christian taught me three new commands.
Richard Zapor
on 4 Aug 2023
The width and height are relatively new functions and I never heard of the Cat function used by Tim. Sadly virtually no one will learn of the Cat function.
Christian Schröder
on 4 Aug 2023
> the Cat function used by Tim
That took me a moment to get, but I'll refer to it as that from now on.
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
2338 Solvers
-
Least common multiple of many numbers
230 Solvers
-
Get the length of a given vector
10626 Solvers
-
697 Solvers
-
34 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!