Category Archives: Engineering

Sunday Mathematics #3 — Complex Numbers: When Real Numbers Are Not Enough

Article content

Most of us first encounter complex numbers through a slightly uncomfortable equation:

x² + 1 = 0

Therefore:

x² = −1

But no real number squared gives −1.

Mathematics solved this by extending the number system and defining:

i = √−1

A complex number can therefore be written as:

z = a + bi

where:

  • a is the real part
  • b is the imaginary part
  • i² = −1

At first glance, this can look like a mathematical trick.

It isn’t.

Complex numbers are one of the most useful mathematical abstractions in science, engineering and computing.


1. From a Number Line to a Number Plane

Real numbers live on a one-dimensional number line.

Complex numbers give us a two-dimensional plane:

z = a + bi ↔ (a, b)

The horizontal axis represents the real component and the vertical axis represents the imaginary component.

For example:

z = 3 + 4i

can be represented by the point (3,4).

Its magnitude is:

|z| = √(3² + 4²) = 5

Its angle or phase is:

θ = tan⁻¹(4/3)

So a complex number can represent both:

Magnitude + Direction

This is where complex numbers become extraordinarily useful.


2. Cartesian and Polar Forms

The same complex number can be represented in different ways.

Cartesian form

z = a + bi

Polar form

z = r(cos θ + i sin θ)

where:

r = √(a² + b²)

Using Euler’s formula:

e^(iθ) = cos θ + i sin θ

we get:

z = re^(iθ)

This is a remarkably powerful representation.

Instead of thinking only about two numbers, we can think in terms of:

Amplitude + Phase

And amplitude and phase appear everywhere in physical and computational systems.


3. Euler’s Formula — A Beautiful Mathematical Bridge

One of the most famous equations in mathematics is:

e^(iπ) + 1 = 0

It connects five fundamental mathematical constants:

0, 1, e, i and π

But Euler’s formula is much more than mathematical beauty.

e^(iθ) = cos θ + i sin θ

provides a bridge between:

exponentials ↔ trigonometry ↔ rotation ↔ oscillation

That bridge is extremely useful when studying waves, signals, electrical systems, communications and control systems.


4. Complex Numbers and Rotation

Suppose:

z = re^(iθ)

Multiplying it by:

e^(iφ)

gives:

z’ = re^(i(θ+φ))

In simple terms, multiplication by a complex exponential can rotate a point.

This gives us a very elegant mathematical mechanism for representing rotations.

Instead of repeatedly manipulating sine and cosine equations, many rotation and oscillation problems become multiplication problems.

This idea appears in graphics, robotics, signal processing, physics and engineering.


5. Electrical Engineering and AC Circuits

One of the classic applications of complex numbers is alternating-current circuit analysis.

Electrical quantities such as voltage and current oscillate.

Instead of repeatedly working with expressions such as:

V(t) = V₀ cos(ωt + φ)

engineers can represent oscillating quantities using complex numbers and phasors.

Circuit impedance can be represented as:

Z = R + jX

where:

  • R = resistance
  • X = reactance
  • j represents √−1 in electrical engineering

The magnitude tells us the overall opposition to current, while the phase captures the relationship between voltage and current.

A difficult time-domain problem can often become a much simpler algebraic problem.


6. Signal Processing and Fourier Analysis

Suppose we have audio, vibration, radar, network or sensor data.

A signal that looks complicated in the time domain may actually contain combinations of simpler frequencies.

Fourier analysis decomposes signals into these frequency components.

Complex exponentials provide an elegant representation:

e^(iωt) = cos(ωt) + i sin(ωt)

This idea forms part of the mathematical foundation behind tools such as:

Fourier Transform

Discrete Fourier Transform (DFT)

Fast Fourier Transform (FFT)

These are used across:

  • Audio processing
  • Image processing
  • Telecommunications
  • Radar
  • Medical imaging
  • Vibration analysis
  • Sensor analytics
  • Spectral analysis
  • Scientific computing

Complex numbers therefore help us move between:

Time Domain ↔ Frequency Domain


7. Communication Systems

Modern communication systems depend heavily on amplitude and phase.

Wireless systems can encode information by changing these properties of a carrier signal.

For example, in Quadrature Amplitude Modulation (QAM), symbols can naturally be represented as points on a complex plane.

Think of a transmitted symbol as:

z = I + jQ

where:

  • I = In-phase component
  • Q = Quadrature component

The constellation of these complex-valued points represents digital information.

So when your phone communicates using sophisticated wireless networks, complex-number mathematics is operating underneath many layers of abstraction.


8. Control Systems

Complex numbers also appear naturally when studying the stability and behaviour of dynamic systems.

Engineers examine poles and zeros in the complex plane.

A pole might look like:

s = σ + jω

The real component can tell us about growth or decay.

The imaginary component relates to oscillation.

This makes the complex plane extremely useful for reasoning about:

Stability + Oscillation + Damping + System Response

Applications range from industrial automation to aerospace, robotics and power systems.


9. Quantum Mechanics

Complex numbers are fundamental to quantum mechanics.

Quantum states are represented using complex-valued wave functions.

A simplified representation might be:

ψ = a + bi

The directly observable probability is not simply ψ itself.

Instead, quantities involving its magnitude, such as:

|ψ|²

play a central role.

Here complex numbers are not merely a convenient calculation technique—they are embedded deeply in the mathematical framework used to describe quantum systems.


10. Computer Graphics and Robotics

Complex numbers can represent rotations elegantly in two dimensions.

If a point is represented by:

z = x + iy

multiplication by:

e^(iθ)

rotates the point through an angle θ.

This provides a compact way of understanding transformations.

For 3D rotations, related mathematical ideas extend into structures such as quaternions, widely used in robotics, aerospace systems, simulations and computer graphics.


11. Complex Numbers in Data Science and AI

Most introductory machine-learning models operate on real-valued data.

But complex-valued representations become useful when the underlying information naturally contains phase, frequency, waves or spectral characteristics.

Examples can arise in:

  • Signal classification
  • Radar analytics
  • Wireless communications
  • Medical imaging
  • MRI reconstruction
  • Audio processing
  • Computer vision
  • Spectral methods
  • Scientific machine learning
  • Complex-valued neural networks

This highlights an important lesson for data science:

The mathematical representation should follow the structure of the problem.

If the phenomenon contains magnitude and phase, forcing everything prematurely into purely real-valued representations can sometimes hide useful structure.


12. A Small Python Example

Python supports complex numbers directly.

z = 3 + 4j

print(z.real)
print(z.imag)
print(abs(z))

The result is:

Real part = 3

Imaginary part = 4

Magnitude = 5

Scientific Python libraries such as NumPy can also perform complex-valued numerical computations, Fourier transforms and linear algebra.

So the journey from:

i = √−1

to computational engineering is surprisingly short.


The Bigger Lesson

Complex numbers demonstrate something important about mathematics.

Sometimes mathematics advances not by solving a problem inside the existing system, but by expanding the system itself.

Natural numbers were not enough.

We introduced integers.

Integers were not enough.

We introduced rational numbers.

Rational numbers were not enough.

We introduced real numbers.

And real numbers were not enough.

We introduced complex numbers.

What initially looks “imaginary” can eventually become indispensable for describing reality.


WHY → WHAT → WHERE → WHEN → HOW

For learning complex numbers, I would approach the topic in this order:

WHY? Real numbers alone cannot conveniently represent every mathematical and physical phenomenon.

WHAT? A complex number combines real and imaginary components: a + bi.

WHERE? Signals, circuits, communications, control systems, physics, graphics, robotics and scientific computing.

WHEN? Especially when the problem involves oscillation, rotation, frequency, magnitude and phase.

HOW? Complex algebra, Euler’s formula, polar representation, Fourier analysis—and computational tools such as Python, NumPy, MATLAB and scientific libraries.

AI can increasingly help us with the HOW.

But understanding the WHY and WHAT remains essential if we want to know whether the answer actually makes sense.


Sunday Mathematics

The objective of this series is not mathematics for examinations.

It is mathematics for computer science, data science, AI, engineering, technology and decision-making—connecting equations with the systems around us.

Sunday Mathematics #3: Complex Numbers

From √−1 to signals, circuits, wireless communication, quantum mechanics, robotics and AI.

Sometimes the numbers we call imaginary help us understand the real world.

HSOPC — Harwani Systems https://www.harwanisystems.in/

TechAndTrain https://www.techandtrain.com/

Neil Harwani — LinkedIn https://www.linkedin.com/in/neil27/

Email: Neil@HarwaniSystems.in

Narrative and concept: Neil Harwani

Creation help: ChatGPT

#SundayMathematics #Mathematics #ComplexNumbers #DataScience #ArtificialIntelligence #Engineering #ComputerScience #SignalProcessing #FourierTransform #ElectricalEngineering #MachineLearning #QuantumComputing #Robotics #STEM #Education

Civil engineering for 21st century in Tier 2/3 colleges & universities in India

Civil engineering was among the first core engineering disciplines started in the engineering areas. Over time many other disciplines have evolved like computer engineering, instrumentation, bio-technology, mechatronics, electronics, communications, quantum, systems engineering and so on – on top of the other two core disciplines of mechanical & electrical. But even with so much evolution of engineering over the decades and years, Tier 2/3 colleges face a challenge of placing civil engineering pass outs in management & technology areas. Bridge courses do exist if pass outs join technology firms but these placements are few and far in-between with a steep learning curve. Trends for empty seats in engineering in Tier 2 / 3 colleges in last few years indicate similar points as mentioned in this blog.

Problems for civil engineers in Tier 2 / 3 colleges / universities in terms of employability include:

  • Super-specialized Master of Technology / Master of Engineering which are highly isolated from other disciplines like mechanical, electrical, electronics among others.
  • Bachelor of Technology being heavily focussed on core areas of civil with less skills being developed for collaborative working in management & technology areas.
  • Outside of design and super-specialization, civil engineers find employment in maintenance of bridges, buildings and so on other than construction management which is largely dependent on economy and thus, not always a good, long term, stable employment option.

Subjects in civil engineering especially in Tier 2 / 3 colleges in India fall into below categories:

  • Year 1 – Introductory courses of mathematics, physics, chemistry, mechanical, electrical & electronics engineering, engineering labs along with mechanics, engineering drawing and so on
  • Year 2 / 3 / 4 – Subjects from structural / earthquake / computer based design theories and engineering, environmental engineering, transportation, soil & foundation engineering, water / irrigation / hydraulics engineering, geology, surveying, town planning, basics of remote sensing, advanced mathematics and high level basics of programming and construction management

Persistent problem with above course structure is the lack of skills related to digital, technology, modern management and inter-disciplinary subjects. Employment & startup world in 21st century has shifted to technology, modern management, bio-technology, advanced applied engineering and similar areas over time. Core civil engineering jobs exist with good salaries as well but they lock engineers into those areas without an option to easily switch to other areas. Changes from civil engineering into MSc Computer Science and such are still not very popular though allowed now in India in recent years.

Here are my suggestions for Tier 2 / 3 colleges for civil engineering:

  • Year 2 / 3 / 4 should include more subjects of mechanical & electrical engineering
  • Many of the subjects around building & construction management should be converted to lesser credit workshop or practical mode and some credits should be saved from there. These credits should be switched to technology & modern management.
  • Multiple subjects around hydraulics, structural engineering, advanced mathematics, soil & foundation engineering and similar should be consolidated into 1 or maximum 2 subjects in each of these areas to make way for mechanical, electrical, technology & modern management subjects.
  • Geo-informatics & remote sensing should be taught in more detail including overlapping subjects with electronics like micro-processors / controllers & communications / networks.
  • Many courses like transportation should have a much larger component of practical, simulations, case studies, design software included in them.

Such changes would make the civil engineering course more relevant to modern 21st century job / startup / business / collaborative world. Also, switching from Bachelor of Technology / Engineering to Master of Science in Computer Science in post graduation should be encouraged. As of now students do shift from Civil engineering to MBA but other options as described in my blog also need to be considered.

Would be keen to hear thoughts of fellow civil engineers. Email me: Neil@HarwaniSystems.in