Protected content. © IRays Teknology Ltd. All rights reserved. Unauthorized copying, printing, or redistribution is prohibited.

Appendix A — Simultaneous Equations, Matrix Inversion, and Cramer’s Rule

Many circuit problems (nodal and mesh analysis especially) produce a set of simultaneous linear equations. This appendix reviews how to solve them.

A.1 Matrix form

A system of \(n\) linear equations in \(n\) unknowns can be written

\[ \mathbf{A}\mathbf{x} = \mathbf{b}, \]

where \(\mathbf{A}\) is the \(n\times n\) coefficient matrix, \(\mathbf{x}\) the unknown vector, and \(\mathbf{b}\) the source (right-hand-side) vector.

A.2 Cramer’s rule

For the system \(\mathbf{A}\mathbf{x} = \mathbf{b}\), if \(\Delta = \det(\mathbf{A}) \ne 0\), each unknown is

\[ \boxed{x_k = \frac{\Delta_k}{\Delta}}, \]

where \(\Delta_k\) is the determinant of the matrix formed by replacing the \(k\)-th column of \(\mathbf{A}\) with \(\mathbf{b}\).

2×2 case

For

\[ \begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} e \\ f \end{bmatrix}, \]

\[ \Delta = ad - bc, \]

\[ x_1 = \frac{ed - bf}{\Delta}, \qquad x_2 = \frac{af - ec}{\Delta}. \]

3×3 case

For a \(3\times3\) matrix \(\mathbf{A}\) with entries \(a_{ij}\) and right-hand side \(\mathbf{b} = [e, f, g]^T\),

\[ \Delta = a_{11}(a_{22}a_{33}-a_{23}a_{32}) - a_{12}(a_{21}a_{33}-a_{23}a_{31}) + a_{13}(a_{21}a_{32}-a_{22}a_{31}). \]

Each \(\Delta_k\) is computed the same way with the \(k\)-th column replaced by \([e,f,g]^T\), and \(x_k = \Delta_k/\Delta\).

A.3 Matrix inversion

If \(\mathbf{A}\) is invertible (\(\Delta \ne 0\)), the solution is

\[ \mathbf{x} = \mathbf{A}^{-1}\mathbf{b}, \]

where \(\mathbf{A}^{-1} = \frac{1}{\Delta}\,\text{adj}(\mathbf{A})\) and \(\text{adj}(\mathbf{A})\) is the adjugate (transpose of the cofactor matrix). For the \(2\times2\) case,

\[ \mathbf{A}^{-1} = \frac{1}{ad-bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}. \]

A.4 Software

For larger systems, use computational tools: MATLAB (x = A\b), Mathcad, Maple, Python (numpy.linalg.solve), or a calculator with matrix functions.

Appendix B — Quick-Reference Formula Sheet

Basic quantities (Chapter 1)

Ohm’s law and resistors (Chapter 2)

Kirchhoff’s laws (Chapter 2)

Nodal and mesh analysis (Chapter 3)

Circuit theorems (Chapter 4)

Capacitors and inductors (Chapter 5)

First-order transients (Chapter 5)

Second-order RLC (Chapter 5)

Index