← Back to Math 010

1.10 Applications of Linear Systems: Class Notes

Definitions

A network is a set of branches through which something flows. Branches meet at nodes or junctions. Networks in our work will feature flow conservation, meaning the rate of flow in and out are equal at each node.

#1

The accompanying figure shows a network in which the flow rate and direction of flow in certain branches are known. Find the flow rates and directions of flow in the remaining branches.

Network of four nodes in a diamond with known flows 50, 30, 60, 40, and 50

A diamond-shaped network with a node at the top, left, right, and bottom. A flow of 50 enters the top node from above. A flow of 30 leaves the left node to the left. A flow of 60 leaves the right node to the right. A flow of 40 enters the bottom node from below. On the branch from the bottom node to the right node, a flow of 50 moves toward the right node. The other three branches (bottom to left, left to top, top to right) have unknown flows.

Solution

Pick a direction for the flow in each unknown branch. Label the nodes A (left), B (top), C (right), and D (bottom), and let x1 be the flow from D to A, x2 the flow from A to B, and x3 the flow from B to C.

The network with nodes A, B, C, D and unknown flows x1, x2, x3

The same network with nodes labeled A (left), B (top), C (right), D (bottom). x1 flows from D to A, x2 from A to B, and x3 from B to C.

At each node, rate in = rate out:

Node A:x1=30+x2Node B:x2+50=x3Node C:x3+50=60Node D:40=x1+50

Moving the variables to one side:

x1−x2=30x2−x3=−50x3=10x1=−10

Solving: use an appropriate method. (Ideally, practice the methods from this course, but honestly, in this case it’s overkill.)

x3=10 ⇒ x2−10=−50 ⇒ x2=−40

x1=30+x2=30−40 ⇒ x1=−10

The value x1=−10 also agrees with the equation at node D.

A negative flow means the flow goes the opposite way from the direction we picked. So x1=−10 is a flow of 10 from A to D, and x2=−40 is a flow of 40 from B to A.

The network with the solved flows: 40 from B to A, 10 from A to D, 10 from B to C

The solved network: 40 flows from B to A, 10 flows from A to D, and 10 flows from B to C.

Answer: 40 from B to A, 10 from A to D, and 10 from B to C.

Tip: Check flow conservation at node A: 40 flows in, and 30 + 10 = 40 flows out.

Definitions

A battery is a source of electric energy, and a resistor dissipates electric energy. A node is where three or more wires join in a circuit. A closed loop begins and ends at the same node.

Ohm’s Law

E=IR, where E (volts) is voltage drop at a resistor with resistance R (ohms) in a circuit with current I (amperes).

Kirchhoff’s Laws (summary)

Net current (in and out) at a node is zero, and net voltage change (rises and drops) in a closed loop is zero.

#6

Analyze the given electrical circuit by finding the unknown currents.

Circuit with two nodes, resistors of 6, 4, and 2 ohms, batteries of 1 V and 2 V, currents I1, I2, I3

A diamond-shaped circuit with node A at the top and node B at the bottom, joined by a middle wire with a 4Ω resistor and current I1 pointing up, toward A. Left side: from A, a 6Ω resistor with current I2 pointing away from A, then a 1 V battery whose negative terminal is on the upper side and positive terminal on the lower side, down to B. Right side: from A, a 2 V battery whose positive terminal is on the upper side and negative terminal on the lower side, then a 2Ω resistor with current I3 pointing up, from B toward A.

Solution

This circuit contains 3 closed loops: the left loop, the right loop, and the outer loop. We go around each one clockwise.

The circuit with clockwise left, right, and outer loops marked

The same circuit with node A at the top and B at the bottom, and three clockwise loops marked: the left loop (through the 6Ω resistor, the 1 V battery, and the 4Ω resistor), the right loop (through the 2 V battery, the 2Ω resistor, and the 4Ω resistor), and the outer loop (around the outside, skipping the middle wire).

Nodes. Count current into a node as positive and current out of a node as negative:

Node A:I1+I3−I2=0Node B:I2−I1−I3=0

These are equivalent equations (each is the other times −1), so we only use one of them.

Clockwise right loop. Starting at A: going through the 2 V battery from + to − is a drop of 2. Going through the 2Ω resistor against I3 is a rise of 2I3. Going up through the 4Ω resistor with I1 is a drop of 4I1.

voltage risesvoltage drops2I3−4I1−2=0

Clockwise left loop. Starting at B: going through the 1 V battery from + to − is a drop of 1. Going through the 6Ω resistor against I2 is a rise of 6I2. Going down through the 4Ω resistor against I1 is a rise of 4I1.

voltage risesvoltage drops6I2+4I1−1=0

Outer loop. 2I3+6I2−1−2=0. This equation is redundant: it is the sum of the left-loop and right-loop equations, so we don’t need it.

System:

I1−I2+I3=0(Node A)−4I1+2I3=24I1+6I2=1

In matrix form:

[1−11−402460][I1I2I3]=[021]

Row reduce the augmented matrix:

[1−110−40224601]

R2→4R1+R2 and R3→−4R1+R3, then R2→12R2:

[1−1100−231010−41]

R3→5R2+R3:

[1−1100−23100116]

The entries below the diagonal are now zero. Next clear the third column: R1→11R1−R3 and R2→11R2−3R3:

[11−110−60−220−700116]

R1→2R1−R2:

[2200−50−220−700116]

Divide each row by its pivot:

[100−5/220107/220016/11]

Answer: I1=−522 A,I2=722 A,I3=611 A

Tip: Since I1 is negative, the arrow given for I1 points in the wrong direction: a current of 522 A flows down through the 4Ω resistor.

Tip: Check with the outer loop: 2(611)+6(722)=1211+2111=3=1+2.

Theorem 1.10.1 Polynomial Interpolation

Given any n points in the xy-plane that have distinct x-coordinates, there is a unique polynomial of degree n−1 or less whose graph passes through those points.

#16

The accompanying figure shows the graph of a cubic polynomial. Find the polynomial.

Graph of a cubic polynomial through grid points, rising from the origin to a peak at (4, 8)

Graph on a grid with x from 0 to 8 and y from 0 to 10. The curve starts at (0,0), passes through (2,5), reaches a peak at (4,8), passes through (6,3), and crosses the x-axis just before x=6.5.

Solution

The polynomial is a cubic, so it has the form of a general cubic polynomial:

p(x)=ax3+bx2+cx+d

A cubic has 4 coefficients, so we need 4 points (Theorem 1.10.1 with n=4). Read them off the grid:

The cubic with the points (0, 0), (2, 5), (4, 8), and (6, 3) marked

The same graph with the points (0,0), (2,5), (4,8), and (6,3) marked on the curve.

For our augmented matrix setup, write the polynomial as

p(x)=d+cx+bx2+ax3

Substitute each point:

(0,0):0=d+0c+02b+03a(2,5):5=d+2c+4b+8a(4,8):8=d+4c+16b+64a(6,3):3=d+6c+36b+216a

The first equation gives d=0. The other three equations, with the columns in the order c, b, a:

[24854166486362163]

Tip: Ordering the columns c, b, a (instead of a, b, c) puts the smallest numbers in the first column, which makes the row reduction easier. With the order a, b, c, the first column would be 8, 64, 216.

R2→14R2 and R3→13R3:

[248514162212721]

R1↔R2:

[141622485212721]

R2→R2−2R1 and R3→R3−2R1:

[141620−4−2410440−3]

R3→R3+R2, then R3→116R3:

[141620−4−241001−1/8]

Back substitute. Row 3 gives a=−18. Row 2:

−4b−24(−18)=1 ⇒ −4b+3=1 ⇒ b=12

Row 1:

c+4(12)+16(−18)=2 ⇒ c+2−2=2 ⇒ c=2

Recall d=0.

Answer: p(x)=−18x3+12x2+2x