The complex numbers or are actually not a single number! If you have taken pre calculus or have a nerdy friend who talks about math, you have surely seen the famous complex number written as .
What is so complex about them?
If you realise and are both real numbers, just added with , which is infamously called imaginary, then the picture becomes clearer. steps along our real number line and steps along the imaginary axis! itself is real, but it scales . From here on we will imagine as a notation to tell us “go perpendicular from the point you are on”.
Can we then study the numbers separately? Yes! and are two separate numbers just connected by . So they must be independent of each other.
…or are they?
Meet and . Yep! We just sneaked in a dependency. Both and now depend on and . They can still be independent of each other depending on the problem, but both are built from and . Imagine them as Bread and Pizza while the independent variables are wheat and water!
So we can now just design it as the following,
Since we took as just an indicator for perpendicular from a point, you can imagine the points and are two points in two different 3D planes, where nothing is imaginary anymore!
Yes, after calculating our points we can again put them perpendicularly with the help of our but the visualisation may be too abstract and not necessary for now.
Stretching is good for health right?
Let us take a non linear and . What does it mean? It means for any given and , it maps to a number but the change is not linear, it is “curvy”. So if you graph and in the complex plane, where is supposed to be perpendicular to , you will see it does not even look perpendicular anymore. The curves are just bending around!
So we have this one machine called the Jacobian. It packs all four partial derivatives into one place and tells us how the map is stretching around any given point.
But wait, this is a matrix which we study in Linear Algebra right? But and are not linear anymore? Yes, if we zoom in closely to a point on the graph we can see them slowly turn linear, and that is how the Jacobian lets us study the nature of these curves.
Here is a wonderful proof of how the Jacobian Matrix works by Mathemaniac on YT
Our honest try to find the derivative of gives us this matrix which does tells us about how it behaves around the point but there are 4 numbers to tell us one fact! Is it differentiable or not??
The problem nobody tells you
Taking a derivative must be ONE number. But the machine gives us FOUR! What if we wanted to differentiate as a complex function, not as two real ones?
The complex plane is pretty weird so the limit above is not very intuitive. But mathematicians have a favourite trick: fix one direction at a time. Think of it as walking on the number line only and walking towards the point. Then do the same on the number line only. In both the ways you will realise you have reached the same place in the same way, IF the derivative existed. More formally,
Visual by complex-analysis.com
And we just learnt if the complex derivative exists, however you go they tend to be the same which means,
What we realise with the last two equations is that, we cannot just throw random and into and ask it to be a smooth differentiable map! Instead ONLY the and which satisfies the last 2 equations or as mathematician loves to say “constraints” are valid
Survivors
So those two constraints are not just gatekeepers. The functions that survive them have something very cool going on. Let us plug the constraints back into the Jacobian and see what falls out.
The Jacobian gave us a way to see how our map stretches, and the derivative method gave us two constraints. Putting those values in,
Ah, the matrix looks too ugly, let us give it nicknames and , then
Have you ever seen this matrix before? Let us remember how we said means perpendicular, right? What if we multiply a number with a complex number?
Okay, let us remember how we said having an can mean that the number is perpendicular, right? What if we multiply a number with a complex number?
Take and . We take the Euler form because unlike junky numbers, Euler form talks with us in angles.
The Euler form tells us the new product has a scaled size of and a new rotation of . So multiplying two complex numbers just scales and rotates into a new number, no shear.
Now look at what we have, and . Let us make that silly matrix out of them:
We DID NOT intentionally design our Jacobian this way, but we arrived at the understanding that any and we choose, if we want to be derivable, must obey this. So the Jacobian of any surviving function is a transformation which just scales and rotates input values with absolutely no shear. Only then we can proudly say our function is derivable in Complex!
Also, this is about the right time to mention our MVP. The constraints we found are famously known as the \verb|Cauchy-Riemann equations| which are necessary conditions to call a complex function differentiable.