- #1
lee_sarah76
- 18
- 0
Homework Statement
So, I understand that I'm supposed to write the problem however, given the nature of current diagrams I think this is a bit hard. I am given the voltages and resistances and I have to solve for the current through each resistor. Here is a link to the problem which I found online if you wouldn't mind: http://cs.slu.edu/~fritts/csci145/assignments/hwk3.pdf
It is number 6 on that website.
V1 = 12V, V2 = 24V, R1 = 20 ohms, R2 = 12, R3 = 8 ohms, R4 = 6 ohms, R5 = 10 ohms
Homework Equations
Kirchhoff's Loop Rule states that the sum of the voltages in a closed loop equals 0.
The Attempt at a Solution
After using Kirchhoff's Loop Rule 5 times I ended up with these set of equations:
V1 - R1(I1 - I3) - R2(I1 - I2) = 0
V2 - R1(I3 - I1) - R3(I3) = 0
-V2 - R2(I2 - I1) - R4(I2 - I4) = 0
0 - R5(I4) - R4(I4 - I2) = 0
V1 - R3(I5 +I3) - R5(I5) =0
However, when using a matrix to solve for I1 through I5, I get: 1.26667, -0.55873, 1.7619, -0.20952, -0.11640.
(Note: I used MATLAB, as this is for a programming class, and my matrices were:
A = [-(R1 + R2), R2, R1, 0, 0; R2, -(R2+R4), 0, R4, 0; R1, 0, -(R1 +R3), 0, 0; 0, R4, 0, -(R5 + R4), 0; 0, 0, -R3, 0, -(R3 + R5)]
B = [-V1; V2; -V2; 0; -V1]
and x = A\B
Obviously, this is not the answer according to the website that the problem statement was on. I believe I am doing something wrong with Kirchhoff's Rule, hence I would be very grateful if someone could help?