Circuit Theory/Simultaneous Equations/Example 2
Find all unknown voltages and currents.
The goal is to label the unknowns and knowns. The original problem has already created the symbols and given them values. They appear to be knowns. The unknowns labeled at this point are .
There are two trivial loops in this circuit. There are two components in each loop that share the same voltage . In fact all three components in the circuit (2 resistors and current source) share the same voltage. Any equations written would have to give each component a separate voltage symbol and then say they equal each other.
Next the + and - associated with the voltage is put near the voltage symbol, even though all three devices share the same polarity.
There are two junctions in the circuit. One bottom junction was labeled with ground. The top was labeled .
The two current directions were chosen so that the current goes into the + side of passive devices and reactive devices (resistors, capacitors and inductors).
It never matters what the polarity of the voltage is across the current source, since the current source varies the voltage to maintain a constant current.
It is important to remember that the current directions and voltage polarities at this point are capturing the circuit configuration. They are not guesses of the polarity of the final values.
The first step is to list the variables and whether they are knowns or unknowns.
So there are three unknowns requiring three equations.
There are two devices that terminal equations can be written for:
There is no terminal equation for a power supply.
There are no loops, therefore there are no loop equations. If one wanted to count the three trivial loops, there would be three voltages: one across each of the components (the two resistors and the supply). At this point three trivial equations would have to be written saying they all equaled each other (depending upon direction).
There is one junction equation:
The source current is positive the rule "current into the node is positive, current leaving is negative" was used. We could have arrived at the same formula using the opposite logic. Both capture the circuit topology the same way.
Solve the Equations
The three equations are:
Outline of the solution:
- Solve TR:1 and TR:2 for currents, substitute into L1:, solve for unknown :
- Substitute current solution into TR:1 and TR:2, solve for unknowns
- Substitute known values in for symbols to get numeric solution
Symbolic solution from algebra:
Numeric solution from algebra:
This is a simple problem. But the goal is to practice all of our mathematical tools. One or more of these tools are going to fail us in the future. The goal is to experience success with each of them now, so we know what failure looks like.
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.
Click on the above link, and go to the wolfram site, look at the syntax of what was entered and look at the answer. Notice the following:
- Wolfram alpha can not handle 'i', probably thinks it is an imaginary number. Had to switch to k.
- Wolfram alpha can not handle the double subscript, switched from R1 to 2 and R2 to 3.
What is the point of a natural language, symbolic interpreter that can not interpret our symbols? Fortunately MuPad works. In fact it follows the outline of this solution.
MuPad starts off setting internal symbols equal to presentation symbols. Then it is asked to solve a set of linear equations in terms of a list of unknowns. This gives the solution in variable terms.
MuPAD is then given the values of the constants and asked to re-evaluate the linear equations. This generates the symbolic solution in terms of fractions and symbols like .
Finally MuPAD is told to find the numeric answer rather than the symbolic answer. The manuals say this takes longer than doing the equivalent in MatLab.
Steps to setup the solution:
- Substitute known values into the equations:
- Organize the equations so that unknowns are in columns, numbers to the right of the equal sign:
- Create two matrices, one square and the other a column with the numbers that are on the right of the equal sign
- enter the matrices into MatLab or similar program
The goal is to simulate in www.circuitlab.com. Click on this link and click on the simulate button at the bottom. Move the pen over and around the circuit.
Resistors: The current going into the top (positive) of the 100 ohm and 50 ohm resistors is positive and has the values predicted. The voltage is the value predicted.
Voltages are relative to ground. The voltage at the top of the power supply and top of the resistors is the same because they are all in parallel.
Power Supply: The opposite is true of the power supply. Current is going out of the top (A) of the power supply and is labeled negative, even though the symbol arrow is going up. This is because current coming out of the power supply + terminal (opposite of the resistors). This means the power supply is dumping energy into the circuit.
Voltage and current are constant.
Resistors don't add in series. They add in this funny manner called "one over one over". Look at the algebra and see this term repeated in the solutions:
MuPad and Wolfram Alpha do a cross multiplication, and translate it into this. Think of this as an intermediary step in the algebra.
The thing is that if there were three resistors in parallel, the above equation gets complicated. But the "one over one over equation" doesn't. It just expands to this:
This is why the concept "resistors add ... one over one over ... for parallel circuits" becomes almost the corollary to "resistors add ... in series ... for series circuits."
Before computers, when all math was done by hand, the "one over one over" concept lead to mistakes. Instead there was another whole layer of circuit analysis that involved another whole set of symbols, units, terminal equations and concepts for parallel circuits called "Admitance. What we are doing instead is the half called "Impedance. And instead of learning another whole layer of circuit analysis, we are spending our time learning to use MatLab and MuPad. The artifact of "one over one over" slips into the vacancy left when "Admitance" is not covered.
The circuit analysis that is not be covered involved using something like a slide ruler as a calculation aid called a "smith chart." As one went through a circuit, one would combine series by adding. To combine in parallel, plot a point on the smith chart, measure the distance to the center, draw a straight line through the center, draw a circle around the center, and where the two lines met, read off the numeric answer. It was a dance. It had a rhythm very different than this one. But it took a lot longer, left a lot more room for mistakes. Smith Charts during WWII were piled up on the floor, scribbled on and then thrown away many times during analysis of a single circuit.