# Systems of complex-number equations, how to solve?

1. Apr 6, 2008

### KingNothing

Hi. I would like to state first of all that I do know how to solve systems of equations in the complex domain by hand. But solving by hand is no longer required in my course, and getting the answers most quickly is becoming the highest priority.

But the real problem is that I am getting into steady-state analysis and often have systems of equations from nodal or mesh analysis whereby the coefficients of a voltage or current are complex numbers. I would like to know two things:

1. Is there a simple way to solve such systems on a TI-89 calculator, presumably using matrices? Solving such systems is a cinch in the real domain using the "rref" function.

2. Is there a simple way to solve such systems in MatLab, presumably using matrices?

If anyone could help, that would be great!

2. Apr 6, 2008

### f95toli

It is straightforward in Matlab, you simply use the same methods as real systems of equations, i.e. A\b will usually do the job for a linear system where A is the matrix of coffiecients and b the RHS.

3. Apr 6, 2008

### KingNothing

Hmmm...Could you give an example? I am extremely new to Matlab, and don't really know it very well.

So, if I wanted to solve this matrix:

(15+35i) (29+1i) 0
(46+13i) (62+3i) 0

How exactly would I enter all this into matlab? An example would be so appreciated, sometimes that's the best way to learn.

4. Apr 6, 2008

### f95toli

Well, the equation is Ax=b and we want so solve for x
There are several ways of entering the data, but this is one way
Code (Text):

A=[15+35i 29+1i; 46+13i  62+3i]
b=[0;0]
x=A\b

which of course has the trivial solution x=[0;0]
the ";" means "next row", a space next column.

5. Feb 23, 2009

### Peon666

Can't this be solved by Cramer's rule?

6. Mar 8, 2010

### kineticcowboy

Does anybody know of a java applet or a c++ program that could solve a system of complex number equations? I dont have matlab or a ti-89. I need it for doing nodal and mesh analysis in ac ckts. I know how to solve it on paper but the problem that I need to solve has 5 equations and 5 unknowns.

7. Mar 9, 2010

### The Electrician

This person used Wolfram Alpha:

Here are what appear to be a lot of linear algebra calculators. There may be something of use in all this:

Even an older calculator such as the TI-85 or TI-86 can solve a system with complex coefficients, and they can be found inexpensively on eBay.

8. Mar 9, 2010

### Okefenokee

There are a couple of free and open source alternatives to Matlab if you want a full fledged math solving interface. Scilab is made by some French institute and Maxima is made by MIT. Scilab aims to be just like Matlab and Maxima is somewhat like Maple. You can find lot's of tutorials for either with a Google search.

9. Mar 10, 2010

### kineticcowboy

Thanks guys.

10. Apr 14, 2011

### j0hntayl0r

I have been trying to figure this out since we started doing AC circuit analysis. To to it on the TI-89 use F2 --> Complex --> cSolve(). Use cSolve() as you would normally use the solve().
Hope this helps.

11. Apr 27, 2011

### einsteinoid

Wow, thanks. I've been trying to plug complex numbers into a matrix for an hour, lol. I know it's possible via rref() but cSolve() is nice and clean.

12. Apr 28, 2011

### KingNothing

LOL @ reviving a thread of mine from three years ago. It's like a journey through time...