Circuit Theory/Simultaneous Equations/Example 5

Find currents and voltages. Assume the sources and resistance values are knows. Solve symbolically.

example 5 circuit

From a practical point of view, putting more than one power supply in a circuit is bad practice. Almost everyone tries to design circuits with only one power supply.

From a modeling point of view, transistors at the first level of approximation are a type of power supply. So putting multiple power supplies in a circuit is practice or preparation for more complicated circuits.

Label

edit
 
symbols have been added

There is one voltage source, in series with a resistor to get its current from:  . The two current sources had no clear resistor in parallel with them from which to get their voltage, so voltages for each had to be labeled:   and  .

Loops

edit
 
loops and the + - added

There are three loops. Remember that the + and - right now are not guessing the polarity of the answer, but are capturing the layout of the circuit.

There are no trivial loops (components in parallel).

Junctions

edit
 
constant EMF sections highlighted
 
Junctions chosen and current directions put on drawing

There are two trivial junctions where series components share the same current. One is between the voltage source and  . The other is between current source   and  .

There are four non-trivial junctions, see the areas constant EMF that are shaded in different colors.

This means that three junctions that can be used. It doesn't matter which three were chosen. But three have to be chosen and then currents placed relative to the voltage polarity on the resistors. The two branches where there are current sources don't need additional current symbols made up for them, just like the voltage source does need a voltage symbol made up for it.

Count Eq

edit

We are being told that the resistors and voltage sources have values, and are thus to be treated as knowns. We just don't know what the specific values are so we have to work symbolically.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

There are 11 unknowns. There are 5 equations from the resistors, 3 from the loops and 3 from the junctions. So the problem can be solved explicitly.

Terminal Eq

edit

 
 
 
 
 
The current   is negative, because it is going into the negative terminal of  .

When there are lots of power sources, the direction of their currents or the polarity of the sources has to be captured by the equations.

If this direction is mistaken, often the answer magnitudes turn out correct but the sign is wrong. The point is that the answers are very similar. The problem is usually that the sign convention is messed up some how.

Loop Eq

edit

 
 
 

The voltage polarities of the current sources were chosen arbitrarily, but a choice has to be made. The choice has to be documented on the drawing, and then reflected in the equations. Otherwise the equations can not be checked.

Junction Eq

edit

 
 
 

Solve the Equations

edit

Algebra

edit

The algebra solution is massive, messy, hard to check and doesn't inspire anyone. Not going to attempt it.

Differential Equations

edit

There are none in this problem, but three quarters of this course is going over circuits this complex with capacitors and inductors instead of resistors and looking at the differential equations.

Symbolic Computations

edit
Mathematica
edit
File:Ex5-6.png
Mathematica solution. Click here for text to enter into Mathematica.

Wolfram Alpha doesn't work with more than 6 or 7 equations no matter what their form. Going to do in Mathematica. Then do in MuPAD. Then compare the answers.

MuPad
edit
File:Ex5-7.png
MathWorks MuPAD solution .. click here for the text to cut and paste .. MuPad Solution contains variable solution

MuPAD's answers match with Mathematica, but the format of the more complicated answers is very different. The goal would then be to use some kind of simplify command, but alternative symbols can be used to express the same answer. Look at   answers. They are the same, but they use different symbols.

In fact, here is another answer:

 

File:Ex5-7r.png
Mathematica solution simplied with the simplify command .. looks closer to MuPAD solution

Playing around with simplify and expand commands helps a little. There are all sorts of options associated with the simplify command that lead into a domain of symbolic computation that looses focus on this course. There is no immediate agreement among the packages to the solution of complicated expressions. A visual check of everything but   is a match.

The only other quick way to check is to plug in a random set of numbers and see if the two solutions come up with the same numeric solution. But enough time has been spent on this.

Numeric Solution

edit

There is no numeric solution because no numbers were given.

Simulate

edit

Simulation is impossible with out numbers.

Build Intuition

edit
  • Complicated expressions have no universal form that symbolic computation agrees upon. So checking them is an algebraic process, or can trust that inserting numbers and showing they match means the symbolic expressions are the same.
  • The direction choices when the variables were defined implied that the   was dumping energy into the circuit. Looking at the solution, it appears that  , the current through   is positive. Thus it remains that   is pumping energy into the circuit.
  • The direction choices when the variables were defined implied that the   was dumping energy into the circuit. Looking at the solution, it appears that  , the voltage across   is positive. Thus it remains that   is pumping energy into the circuit.
  • The direction choices when the variables were defined implied that the   was taking energy out of the circuit and charging its batteries. However, looking at the solution, it appears that  , the voltage across   is negative. Thus it seems that in reality   is also pumping energy into the circuit.