PracticeVideosBlogFlashcards

4.3 Vector Analysis, Linear Algebra, Matrices & Complex Analysis

Key Takeaways

  • Vector differential operators—gradient (∇ϕ\nabla \phi), divergence (∇⋅A\nabla \cdot \mathbf{A}), curl (∇×A\nabla \times \mathbf{A}), and Laplacian (∇2ϕ\nabla^2 \phi)—form the mathematical foundation of Maxwell's electromagnetic field equations.

  • Gauss's Divergence Theorem connects volume integrals of field divergence to closed surface flux integrals (∭V∇⋅A dV=∬SA⋅dS\iiint_V \nabla\cdot\mathbf{A}\,dV = \iint_S \mathbf{A}\cdot d\mathbf{S}), while Stokes' Theorem relates surface curl integrals to closed line integrals (∬S(∇×A)⋅dS=∮CA⋅dr\iint_S (\nabla\times\mathbf{A})\cdot d\mathbf{S} = \oint_C \mathbf{A}\cdot d\mathbf{r}).

  • Square matrices and determinants are used to analyze multi-mesh electrical networks, where matrix inversion A−1=adj(A)det⁡(A)A^{-1} = \frac{\text{adj}(A)}{\det(A)} and Cramer's rule solve simultaneous linear nodal and mesh equations.

  • System characteristic equations det⁡(A−λI)=0\det(\mathbf{A} - \lambda \mathbf{I}) = 0 yield eigenvalues λ\lambda and eigenvectors that determine modal stability, natural frequencies, and state-space dynamic responses.

  • Complex analytic functions satisfy the Cauchy-Riemann equations (∂u∂x=∂v∂y\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y}, ∂u∂y=−∂v∂x\frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x}), enabling contour integration via Cauchy's Residue Theorem (∮Cf(z) dz=2πj∑Res\oint_C f(z)\,dz = 2\pi j \sum \text{Res}).

Last updated: August 2026

4.3 Vector Analysis, Linear Algebra, Matrices & Complex Analysis

Advanced engineering mathematics unifies spatial electromagnetic field theory, multi-variable circuit network equations, system dynamics, and complex boundary integrals. For electrical engineers preparing for the PRC Board Exam, proficiency in vector calculus differential and integral operators, matrix transformations (Cramer's Rule and eigenvalue analysis), and complex analytical residue integration provides essential tools for electromagnetic fields, power system stability, and advanced circuit synthesis.


1. Vector Operations & Differential Calculus

Vector Multiplication

  • Dot (Scalar) Product: A⋅B=∣A∣∣B∣cos⁡θ=AxBx+AyBy+AzBz\mathbf{A} \cdot \mathbf{B} = |\mathbf{A}||\mathbf{B}| \cos\theta = A_x B_x + A_y B_y + A_z B_z
  • Cross (Vector) Product: A×B=∣A∣∣B∣sin⁡θ n^=det⁡[i^j^k^AxAyAzBxByBz]\mathbf{A} \times \mathbf{B} = |\mathbf{A}||\mathbf{B}| \sin\theta \, \hat{\mathbf{n}} = \det \begin{bmatrix} \hat{\mathbf{i}} & \hat{\mathbf{j}} & \hat{\mathbf{k}} \\ A_x & A_y & A_z \\ B_x & B_y & B_z \end{bmatrix}
  • Scalar Triple Product: A⋅(B×C)=det⁡[AxAyAzBxByBzCxCyCz]\mathbf{A} \cdot (\mathbf{B} \times \mathbf{C}) = \det \begin{bmatrix} A_x & A_y & A_z \\ B_x & B_y & B_z \\ C_x & C_y & C_z \end{bmatrix} (Represents parallelepiped volume)
  • Vector Triple Product: A×(B×C)=(A⋅C)B−(A⋅B)C\mathbf{A} \times (\mathbf{B} \times \mathbf{C}) = (\mathbf{A} \cdot \mathbf{C}) \mathbf{B} - (\mathbf{A} \cdot \mathbf{B}) \mathbf{C} (BAC-CAB rule)

Vector Differential Operators (Cartesian Coordinates)

Using Del operator ∇=i^∂∂x+j^∂∂y+k^∂∂z\nabla = \hat{\mathbf{i}}\frac{\partial}{\partial x} + \hat{\mathbf{j}}\frac{\partial}{\partial y} + \hat{\mathbf{k}}\frac{\partial}{\partial z}:

  1. Gradient of a Scalar Field ϕ\phi:

    ∇ϕ=∂ϕ∂xi^+∂ϕ∂yj^+∂ϕ∂zk^\nabla \phi = \frac{\partial \phi}{\partial x} \hat{\mathbf{i}} + \frac{\partial \phi}{\partial y} \hat{\mathbf{j}} + \frac{\partial \phi}{\partial z} \hat{\mathbf{k}}

    Physical Meaning: Points in the direction of maximum rate of increase of scalar potential ϕ\phi (e.g., Electric Field E=−∇V\mathbf{E} = -\nabla V).

  2. Divergence of a Vector Field A\mathbf{A}:

    ∇⋅A=∂Ax∂x+∂Ay∂y+∂Az∂z\nabla \cdot \mathbf{A} = \frac{\partial A_x}{\partial x} + \frac{\partial A_y}{\partial y} + \frac{\partial A_z}{\partial z}

    Physical Meaning: Measures net outward flux per unit volume from an infinitesimal region. If ∇⋅A=0\nabla \cdot \mathbf{A} = 0, field A\mathbf{A} is solenoidal (e.g., Magnetic Field ∇⋅B=0\nabla \cdot \mathbf{B} = 0).

  3. Curl of a Vector Field A\mathbf{A}:

    ∇×A=(∂Az∂y−∂Ay∂z)i^+(∂Ax∂z−∂Az∂x)j^+(∂Ay∂x−∂Ax∂y)k^\nabla \times \mathbf{A} = \left( \frac{\partial A_z}{\partial y} - \frac{\partial A_y}{\partial z} \right) \hat{\mathbf{i}} + \left( \frac{\partial A_x}{\partial z} - \frac{\partial A_z}{\partial x} \right) \hat{\mathbf{j}} + \left( \frac{\partial A_y}{\partial x} - \frac{\partial A_x}{\partial y} \right) \hat{\mathbf{k}}

    Physical Meaning: Measures local circulation or rotational intensity per unit area. If ∇×A=0\nabla \times \mathbf{A} = \mathbf{0}, field A\mathbf{A} is irrotational or conservative.

  4. Laplacian Operator ∇2\nabla^2:

    ∇2ϕ=∇⋅(∇ϕ)=∂2ϕ∂x2+∂2ϕ∂y2+∂2ϕ∂z2\nabla^2 \phi = \nabla \cdot (\nabla \phi) = \frac{\partial^2 \phi}{\partial x^2} + \frac{\partial^2 \phi}{\partial y^2} + \frac{\partial^2 \phi}{\partial z^2}

2. Integral Theorems of Vector Calculus

Gauss's Divergence Theorem

Relates a volume integral of field divergence over region VV to a surface flux integral over bounding closed surface SS:

∭V(∇⋅A) dV=∬SA⋅dS\iiint_V (\nabla \cdot \mathbf{A}) \, dV = \iint_S \mathbf{A} \cdot d\mathbf{S}

Stokes' Theorem

Relates a surface integral of field curl over open surface SS to a closed line integral along bounding perimeter curve CC:

∬S(∇×A)⋅dS=∮CA⋅dr\iint_S (\nabla \times \mathbf{A}) \cdot d\mathbf{S} = \oint_C \mathbf{A} \cdot d\mathbf{r}

Green's Theorem in the Plane

Special 2D case of Stokes' Theorem for planar region RR bounded by simple closed curve CC:

∮C(M dx+N dy)=∬R(∂N∂x−∂M∂y)dA\oint_C (M \, dx + N \, dy) = \iint_R \left( \frac{\partial N}{\partial x} - \frac{\partial M}{\partial y} \right) dA

3. Linear Algebra, Matrices & Cramer's Rule

Matrix Inversion

For an non-singular n×nn \times n square matrix A\mathbf{A} with det⁡(A)≠0\det(\mathbf{A}) \neq 0:

A−1=1det⁡(A)adj(A)\mathbf{A}^{-1} = \frac{1}{\det(\mathbf{A})} \text{adj}(\mathbf{A})

where adj(A)=CT\text{adj}(\mathbf{A}) = \mathbf{C}^T is the transpose of the cofactor matrix C\mathbf{C}.

Cramer's Rule for Solving Linear Systems

For a system of nn linear equations Ax=b\mathbf{A} \mathbf{x} = \mathbf{b}:

xi=det⁡(Ai)det⁡(A)(i=1,2,…,n)x_i = \frac{\det(\mathbf{A}_i)}{\det(\mathbf{A})} \quad (i = 1, 2, \dots, n)

where matrix Ai\mathbf{A}_i is formed by replacing the ii-th column of coefficient matrix A\mathbf{A} with column vector b\mathbf{b}.


4. Eigenvalues & Eigenvectors

For a square matrix A\mathbf{A}, non-zero eigenvector v\mathbf{v} and scalar eigenvalue λ\lambda satisfy:

Av=λv  ⟹  (A−λI)v=0\mathbf{A} \mathbf{v} = \lambda \mathbf{v} \implies (\mathbf{A} - \lambda \mathbf{I}) \mathbf{v} = \mathbf{0}

Characteristic Equation

To obtain non-trivial solutions v≠0\mathbf{v} \neq \mathbf{0}:

det⁡(A−λI)=0\det(\mathbf{A} - \lambda \mathbf{I}) = 0

Key Eigenvalue Properties

  • Trace Identity: Sum of eigenvalues equals the matrix trace: ∑i=1nλi=Tr(A)=∑i=1naii\sum_{i=1}^n \lambda_i = \text{Tr}(\mathbf{A}) = \sum_{i=1}^n a_{ii}.
  • Determinant Identity: Product of eigenvalues equals matrix determinant: ∏i=1nλi=det⁡(A)\prod_{i=1}^n \lambda_i = \det(\mathbf{A}).
  • System Stability: State space matrix x˙=Ax\dot{\mathbf{x}} = \mathbf{A}\mathbf{x} is asymptotically stable if and only if all eigenvalues λi\lambda_i have strictly negative real parts (Re{λi}<0\text{Re}\{\lambda_i\} < 0).

5. Complex Variable Theory & Residue Calculus

Analytic Functions & Cauchy-Riemann Equations

A complex function f(z)=u(x,y)+jv(x,y)f(z) = u(x, y) + j v(x, y) is analytic (differentiable) in a region if continuous first partial derivatives satisfy the Cauchy-Riemann Equations:

∂u∂x=∂v∂yand∂u∂y=−∂v∂x\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y} \quad \text{and} \quad \frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x}

Both u(x,y)u(x,y) and v(x,y)v(x,y) satisfy Laplace's equation (∇2u=0,∇2v=0\nabla^2 u = 0, \nabla^2 v = 0) and are called harmonic conjugates.

Cauchy's Integral Theorem & Formula

  • Cauchy's Theorem: If f(z)f(z) is analytic inside and on simple closed curve CC: ∮Cf(z) dz=0\oint_C f(z) \, dz = 0
  • Cauchy's Integral Formula: If f(z)f(z) is analytic inside CC containing point z0z_0: ∮Cf(z)z−z0 dz=2πj⋅f(z0)\oint_C \frac{f(z)}{z - z_0} \, dz = 2\pi j \cdot f(z_0)

Cauchy's Residue Theorem

For a function f(z)f(z) with isolated singular points (poles) z1,z2,…,zkz_1, z_2, \dots, z_k enclosed by contour CC:

∮Cf(z) dz=2πj∑i=1kRes(f,zi)\oint_C f(z) \, dz = 2\pi j \sum_{i=1}^k \text{Res}(f, z_i)

For a simple pole at z=z0z = z_0, the residue is calculated as:

Res(f,z0)=lim⁡z→z0(z−z0)f(z)\text{Res}(f, z_0) = \lim_{z \to z_0} (z - z_0) f(z)

Step-by-Step Worked Numerical Examples

Example 4.3.1: Vector Divergence & Flux Calculation via Gauss's Theorem

Problem: Evaluate the outward flux of vector field A=2xi^+3yj^+4zk^\mathbf{A} = 2x \hat{\mathbf{i}} + 3y \hat{\mathbf{j}} + 4z \hat{\mathbf{k}} through the closed surface of a sphere x2+y2+z2=9x^2 + y^2 + z^2 = 9 (radius R=3R = 3).

Solution:

  1. Calculate the divergence of vector field A\mathbf{A}: ∇⋅A=∂∂x(2x)+∂∂y(3y)+∂∂z(4z)=2+3+4=9\nabla \cdot \mathbf{A} = \frac{\partial}{\partial x}(2x) + \frac{\partial}{\partial y}(3y) + \frac{\partial}{\partial z}(4z) = 2 + 3 + 4 = 9
  2. Apply Gauss's Divergence Theorem: Flux=∬SA⋅dS=∭V(∇⋅A) dV=∭V9 dV=9∭VdV\text{Flux} = \iint_S \mathbf{A} \cdot d\mathbf{S} = \iiint_V (\nabla \cdot \mathbf{A}) \, dV = \iiint_V 9 \, dV = 9 \iiint_V dV
  3. Compute sphere volume VV: V=43πR3=43π(3)3=43π(27)=36πV = \frac{4}{3} \pi R^3 = \frac{4}{3} \pi (3)^3 = \frac{4}{3} \pi (27) = 36\pi
  4. Calculate total flux: Flux=9⋅(36π)=324π≈1017.876 units\text{Flux} = 9 \cdot (36\pi) = 324\pi \approx 1017.876 \text{ units}

Example 4.3.2: Multi-Mesh Circuit Solution via Cramer's Rule

Problem: Solve for mesh currents I1I_1 and I2I_2 in the 2-mesh network system:

[5−2−24][I1I2]=[120]\begin{bmatrix} 5 & -2 \\ -2 & 4 \end{bmatrix} \begin{bmatrix} I_1 \\ I_2 \end{bmatrix} = \begin{bmatrix} 12 \\ 0 \end{bmatrix}

Solution:

  1. Calculate system determinant D=det⁡(A)D = \det(\mathbf{A}): D=det⁡[5−2−24]=(5)(4)−(−2)(−2)=20−4=16D = \det \begin{bmatrix} 5 & -2 \\ -2 & 4 \end{bmatrix} = (5)(4) - (-2)(-2) = 20 - 4 = 16
  2. Formulate modified matrix A1\mathbf{A}_1 for I1I_1: A1=[12−204]  ⟹  D1=det⁡(A1)=(12)(4)−(−2)(0)=48\mathbf{A}_1 = \begin{bmatrix} 12 & -2 \\ 0 & 4 \end{bmatrix} \implies D_1 = \det(\mathbf{A}_1) = (12)(4) - (-2)(0) = 48
  3. Formulate modified matrix A2\mathbf{A}_2 for I2I_2: A2=[512−20]  ⟹  D2=det⁡(A2)=(5)(0)−(12)(−2)=24\mathbf{A}_2 = \begin{bmatrix} 5 & 12 \\ -2 & 0 \end{bmatrix} \implies D_2 = \det(\mathbf{A}_2) = (5)(0) - (12)(-2) = 24
  4. Apply Cramer's Rule: I1=D1D=4816=3.0 AI_1 = \frac{D_1}{D} = \frac{48}{16} = 3.0 \text{ A} I2=D2D=2416=1.5 AI_2 = \frac{D_2}{D} = \frac{24}{16} = 1.5 \text{ A}

Example 4.3.3: System Matrix Eigenvalue Analysis

Problem: Determine the eigenvalues λ1\lambda_1 and λ2\lambda_2 for state dynamic matrix A=[−421−3]\mathbf{A} = \begin{bmatrix} -4 & 2 \\ 1 & -3 \end{bmatrix} and assess system stability.

Solution:

  1. Formulate characteristic equation det⁡(A−λI)=0\det(\mathbf{A} - \lambda \mathbf{I}) = 0: det⁡[−4−λ21−3−λ]=0\det \begin{bmatrix} -4 - \lambda & 2 \\ 1 & -3 - \lambda \end{bmatrix} = 0
  2. Expand determinant quadratic: (−4−λ)(−3−λ)−(2)(1)=0(-4 - \lambda)(-3 - \lambda) - (2)(1) = 0 λ2+7λ+12−2=0  ⟹  λ2+7λ+10=0\lambda^2 + 7 \lambda + 12 - 2 = 0 \implies \lambda^2 + 7 \lambda + 10 = 0
  3. Factor quadratic to find roots: (λ+2)(λ+5)=0  ⟹  λ1=−2,λ2=−5(\lambda + 2)(\lambda + 5) = 0 \implies \lambda_1 = -2, \quad \lambda_2 = -5
  4. Verify properties:
    • Trace check: Tr(A)=−4+(−3)=−7\text{Tr}(\mathbf{A}) = -4 + (-3) = -7. Sum λ1+λ2=−2+(−5)=−7\lambda_1 + \lambda_2 = -2 + (-5) = -7 (Matches).
    • Determinant check: det⁡(A)=(−4)(−3)−(2)(1)=10\det(\mathbf{A}) = (-4)(-3) - (2)(1) = 10. Product λ1λ2=(−2)(−5)=10\lambda_1 \lambda_2 = (-2)(-5) = 10 (Matches).
  5. Assess Stability: Because both eigenvalues are real and strictly negative (λ1,λ2<0\lambda_1, \lambda_2 < 0), the dynamic system is asymptotically stable.
Loading diagram...
Vector Analysis, Matrices & Complex Variables Map
Test Your Knowledge

What is the value of the vector divergence ∇⋅B\nabla \cdot \mathbf{B} for a magnetic field B\mathbf{B}?

A

1.00

B

μ₀ I

C

0.00

D

Depends on current density J

Test Your Knowledge

What is the determinant of a diagonal 3×33 \times 3 mesh impedance matrix with diagonal entries 4, 5, and 6?

A

15

B

60

C

240

D

120

Test Your Knowledge

What is the value of the closed contour integral ∮C1z−3 dz\oint_C \frac{1}{z - 3} \, dz around a circle CC centered at the origin with radius R=5R = 5 in the counterclockwise direction?

A

0

B

π j

C

4 π j

D

2 π j

Sections you finish are checked off in the contents.