< Circuit Theory < Simultaneous Equations
example 4 circuit

Find everything. Solve with the source represented by the symbol and with the 100 ohm resistors represented by the symbol R and the 200 ohm resistors represented by the symbol 2R. Then solve numerically.

Label

symbols have been added

Looks like and a resistor are in series, and right most two resistors are in series, so they share the same currents.

Loops

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

junctions identified and current directions chosen that are consistent with the + - polarities

There are two trivial junctions where series components share the same current. There are three non-trivial junctions which result in two junctions that can be used. The two choose to be used were at the top and labeled and .

Count Eq

We are being told that the resistor and voltage source have values, but to work towards a symbolic solution. But rather than the resistors all being a separate symbol, they are all have a value of R or 2R. So in terms of symbolic solutions, the goal is to use and to represent these "knowns."














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

Terminal Eq







Loop Eq




Junction Eq



Solve the Equations


Algebra

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

Differential Equations

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

Wolfram Alpha

Wolfram Alpha doesn't work with more than 6 or 7 equations no matter what their form.

MuPad
MathWorks MuPAD solution .. click here for the text to cut and paste .. MuPad Solution contains variable solution, symbolic solution

MuPAD scaled up to 11 unknowns great. Cutting and pasting made the code typed (click on the link in the caption) much easier than it looks.

Numeric Solution

Matlab solution .. click here to cut and paste

The goal is to do things at least two different ways, just to check work. Since not doing algebra, must create 11 by 11 matrix.

Steps to set up 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:

Skipping this section, going straight to the matrix. Typing 8 or 9 + 0 over and over again is silly.

  • Create two matrices, one square and the other a column with the numbers that are on the right of the equal sign

The pattern has been established, the matrices are huge, repeating them over and over to show the matrix math is not necessary. Just writing the big matrix and going straight to MatLab.

Simulate

Simulation matches.

Power Check



Adding up the resistive terms get

The current through the voltage supply is . It is negative because it was drawn out of the positive terminal and the computed value was 0.004884. This made the current positive in the terminal equation, but it is negative with respect to the power supply because of the drawing.

Negative power means is that the power supply was dumping energy into the circuit. Positive power means that energy is leaving the circuit. All of the resistive power was positive. The resistors are where power is leaving the circuit.

Build Intuition

  • At this point MuPAD and MatLab are taking just about the same amount of time to use.
  • MuPAD attaches symbols to the answers .. creates a better context to interpret the answers
  • MatLab (linear algebra) creates patterns in the input that help check for mistakes
  • Confidence is building that the two ways are enough different, that when the answers match can assume have not made any mistakes
  • The single 1 in the = column is enough to trigger all the currents and voltages in the solution. The one comes from a source. Multiple numbers in this column probably mean there are multiple sources.
  • This circuit looks like course or most significant is on the left, and least significant (smallest) is on the right. Is almost a kind of display system.
  • The simulation does this math also, but it uses a drawing as it's input, then follows the steps above. Even still, confidence in the simulation tool is building.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.