Chapter 6: Problem 7
A chain of resistors Consider a long chain of resistors wired up like this: All the resistors have the same resistance \(R\). The power rail at the top is at voltage \(V_{+}=\) \(5 V\). The problem is to find the voltages \(V_{1} \ldots V_{N}\) at the internal points in the circuit. a) Using Ohm's law and the Kirchhoff current law, which says that the total net current flow out of (or into) any junction in a circuit must be zero, show that the voltages \(V_{1} \ldots V_{N}\) satisfy the equations $$ \begin{aligned} 3 V_{1}-V_{2}-V_{3} &=V_{+,} \\ -V_{1}+4 V_{2}-V_{3}-V_{4} &=V_{+,} \\ \vdots & \\ -V_{i-2}-V_{i-1}+4 V_{i}-V_{i+1}-V_{i+2} &=0, \\ \vdots V_{N-3}-V_{N-2}+4 V_{N-1}-V_{N} &=0, \\ -V_{N-2}-V_{N-1}+3 V_{N} &=0 . \end{aligned} $$ Express these equations in vector form \(\mathbf{A v}=\mathbf{w}\) and find the values of the matrix \(\mathrm{A}\) and the vector \(\mathrm{w}\). b) Write a program to solve for the values of the \(V_{i}\) when there are \(N=6\) internal junctions with unknown voltages. (Hint: All the values of \(V_{i}\) should lie between zero and 5V. If they don't, something is wrong.) c) Now repeat your calculation for the case where there are \(N=10000\) internal junctions. This part is not possible using standard tools like the solve function. You need to make use of the fact that the matrix \(\mathrm{A}\) is banded and use the banded function from the file banded.py, discussed in Appendix E.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.