User Tools

Site Tools


maths:complex_number_maths

complex number maths

Introduction

  • complex numbers were invented in the 16th century to help solve cubic equations
  • z = x + yi where z = complex, x and y are real and i = sqrt(-1)
  • complex numbers are used extensively:
    • to simplify signals in the time domain into their constitutive signals in the frequency domain by using Fourier and LaPlace transforms
      • this is used in almost every area of modern life - electrical and sound engineering, sound and image compression technology, radio transmission technologies, etc
    • in electrical engineering to represent the phase change component of impedance which is a complex number containing resistance and phase components - see frequency response analyzers
    • in electromagnetism where electric and magnetic fields, as well as electromagnetic waves, are modeled using complex notation for phase relationships
    • in quantum mechanics where the wave functions and probabilities are described using complex numbers
    • in fluid dynamics where they are used to describe potential flows and streamline functions in two-dimensional systems
    • in geometry and fractals where they are used to construct fractals (e.g., Mandelbrot set) and for rotations or transformations in the plane
    • for solving polynomials as every non-constant polynomial equation has a solution in the complex plane, making mathematics complete in this context
    • in cryptography were some encryption algorithms use complex number concepts
    • in graphics and simulation where image rotation, 2D/3D rendering, and visualizing data or complex functions all utilize complex numbers
    • in artificial intelligence where neural networks and data structures may be expressed via complex numbers for certain algorithms
    • in financial modeling where they are used for analyzing trends, stock prices, and economic variables
    • population dynamics and neuronal networks: Models population changes and neural activity using systems involving complex numbers
    • etc

Complex number nomenclature

  • i = sqrt(-1) but in electrical engineering the i is generally denoted as j as I is used for current
  • rectangular coordinates form:
    • z = x + yi
  • polar coordinate form:
    • based on a circle in a complex plane
      • on a plot, r is the distance from origin and θ is the angle drawn from the x-axis (a unit circle obviously has radius r = 1)
      • where x axis value (the real component) is represented by r(cosθ) and the y axis by r x i x (sinθ)
      • each time you multiply by i, it rotates it anti-clockwise by 90deg such that every i4 rotates it a full circle of 360deg
      • if you raise i to a negative power, you rotate it clockwise such that i-1 = 0 - 90deg = 270deg = i3
      • z = r(cosθ + i x sinθ) where θ is in degrees or radians and often called the “argument” of z

Conversion between forms

Converting polar to rectangular form

  • use x=rcosθ and y=rsinθ

Converting rectangular to polar form

  • use r = sqrt(x2+y2)​ and θ = arctan(y/x​​)
  • the quadrant of a complex number does matter when you are converting from rectangular form to polar form:
    • the result from your calculator of arctan(y/x​​) will often be an angle in Quadrant I or IV due to the defined range of the arctan function, this needs to be corrected as follows:
      • Quadrant I (a>0, b>0): The calculator result is correct.
      • Quadrant II (a<0, b>0): Add 180∘ (or π radians) to the calculator result
      • Quadrant III (a<0, b<0): Add 180∘ (or π radians) to the calculator result
      • Quadrant IV (a>0, b<0): The calculator result is correct (or add 360∘ to get a positive angle)
    • in the context of electrical engineering, RHP typically refers to the Right-Half Plane of the complex s-plane:
      • when analyzing a circuit's behavior over a range of frequencies, to describe the circuit's transfer function, we use the complex frequency variable s = sigma+jomega (j = sqrt(-1) )
        • this transfer function, which can represent impedance, is a ratio of polynomials
        • the roots of the denominator polynomial are called poles, and the roots of the numerator polynomial are called zeros
        • plotting these poles and zeros on the complex s-plane is a key part of control systems and circuit analysis
        • the location of poles and zeros in the complex plane, particularly in the RHP, is crucial for determining a circuit's stability and dynamic behavior.
        • the complex plane is divided into a Left-Half Plane (LHP), a Right-Half Plane (RHP), and the imaginary axis (jomega)
        • Poles in the RHP (sigma0):
          • a system with a pole in the RHP is unstable. This means that a disturbance will cause the system's response to grow exponentially over time. For an impedance, this would imply an unstable or non-passive circuit, where energy is generated rather than dissipated.
        • Zeros in the RHP:
          • a zero in the RHP doesn't cause instability, but it is a sign of a non-minimum phase system. These systems are challenging to control because they introduce a phase lag, even while the gain is increasing.

Basic calculation rules for complex numbers

  • the rules differ depending on whether the numbers are in rectangular form or polar form

rectangular form

  • assume we have two complex numbers: z1 = a+bi and z2 = c+di
  • addition of z1 + z2:
    • z1+ z2 = (a+c)+(b+d)i
  • multiplication of z1 x z2 is similar to multiplying two binomials using the FOIL (First, Outer, Inner, Last) method:
    • z1 x z2 = (a+bi)(c+di) = ac+adi+bci+bdi2 = (ac−bd)+(ad+bc)i

polar form

  • assume we have two complex numbers: z1 = r1(cos theta1 + i x sin theta1) and z2 = r2(cos theta2 + i x sin theta2)
  • addition of z1 + z2:
    • you must first convert them to rectangular form, add them, and then convert the result back to polar form
  • multiplication of z1 x z2 is done by multiplying the magnitudes and adding the angles:
    • z1 x z2 = (r1 x r2) x (cos (theta1 + theta2) + i x sin(theta1+ theta2) )
      • NB. the modulus or r1 and modulus of r2 are usually used in this calculation where modulus of r1 = sqrt(r12)

Exponentials

    • ex is NOT defined as being equal to e multiplied by itself x times as is the case in usual terminology of 2x although for x as a Real Number, it does equate to this, but not if x is a complex number
      • INSTEAD it refers to a different infinite polynomial function, often called exp(x) where x can be a real number, complex number, matrix or a quantum operator
        • exp(x) = 1 + x + (x)2/2 + (x)3/6 + ….+ (x)N/N! = sum( (x)N/N! ) for N = 0 to however much you want to get to, eg. 100, remembering that for N= 0, 0! = 1 which is the 1st term in our equation, and N=1 gives x, the 2nd term in our equation.
        • ie. exp(0) = e0 = 1
        • ie. exp(1) = e1 = e = 1 + 1 + (1)2/2 + (1)3/6 + ….+ (1)N/N! = 2.71828…
    • exp(a+b) = e(a+b) = ea x eb
      • this means that when x is a Real number, ex DOES equate to e multiplied by itself x times as:
        • eg. if x = 5 then exp(5) = e5 = e(1+1+1+1+1) = e1 x e1 x e1 x e1 x e1 = e x e x e x e x e
    • d/dt ent = n x ent
      • thus d/dt eit = i x eit and multiplying it by i rotates it ant-clockwise 90deg on the complex plane
  • e = exp(iθ) = 1 + iθ + (iθ)2/2 + (iθ)3/6 + …. + (x)N/N!
    • ie. if each subsequent component of this polynomial is represented as a vector adding to the previous position, the equation forms a spiral of vectors on a complex plane with exp(iθ) being on the unit circle in the complex plane
  • Euler's formula: e = cos(θ) + i x sin(θ)
    • ie. the complex exponential e is a point on the unit circle in the complex plane
  • Euler's identity equation, for when θ = π radians it simplifies to:

Natural logarithms

  • loge(cosθ + isinθ) = iθ
maths/complex_number_maths.txt · Last modified: 2025/09/07 12:18 by gary1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki