Preface
This article requires knowledge of differentiation. If you don’t know how to differentiate, you can refer to this article (Permission has been obtained from the author of that article).
This article also requires knowledge of integration. If you don’t know integration, you can refer to… I haven’t found any quick-start articles; you’ll have to go study calculus!
This article was originally intended to prove Euler’s formula, but after writing it, the author discovered a more concise method that doesn’t require Taylor series. But I had already written 5kb on Taylor series for real functions!! So, I separated that part into a standalone Taylor Series article and changed the topic of this article to Complex Analysis, thus managing to produce two articles!
Oh no, that Taylor series article didn’t pass review. Oh well, it is what it is.
After a series of formatting changes, the proof of Euler’s formula has been placed in the Introduction - Exponential Functions section.
Introduction
Considering that the treatment of complex numbers in the compulsory high school curriculum is too rudimentary, we reintroduce the concept of complex numbers here.
Basic Concepts and Operations
We define a complex number as an ordered pair . Two complex numbers are said to be equal if and only if and . We usually use to represent a complex number.
Next, we define two operations for complex numbers.
- Addition: .
- Multiplication: .
It can be easily proven that the complex numbers form a field with respect to these two operations. We call this field the Complex Number Field and denote it as .
Based on these operations, we define two elements: . Then we can express any complex number as:
We call the real part of and the imaginary part of , denoted as:
Usually, we omit the , just like in the real number field, giving complex numbers the form seen in the compulsory curriculum, and we can also obtain:
Note that are linearly independent. Therefore, we can use these two vectors as basis vectors to form a two-dimensional space, called the Complex Plane, as shown in the figure below:

As shown, each complex number corresponds to a vector in the complex plane. The modulus of a complex number is defined as the magnitude of the corresponding vector, denoted as:
Its argument is defined as the angle of the corresponding vector, denoted as:
A vector has a trigonometric representation, so the corresponding complex number also has a trigonometric representation. Let , then
Complex numbers have more relations than vectors. For example, we say two complex numbers are
- conjugates if , denoted as .
It is easy to see that the Completeness Axiom does not hold in the complex number field; that is, the complex numbers are not an ordered field. We can map points on the complex plane to a sphere (Riemann sphere), but I’m too lazy to write about that. If you want to learn more, you can read Shabat’s “Introduction to Complex Analysis”.
A complex function is a rule defined on the complex field that maps to the complex plane. Generally, a complex function can be split into two real functions defined on the complex field, like:
where .
Exponential Function
We consider defining it similarly to the real number field:
Then we consider whether this limit exists.
We note that:
Thus, this limit exists, and we have:
Setting , we obtain Euler’s formula. From now on, I will treat it as a known result in the subsequent sections.
Power Function
With Euler’s formula, a complex number can be represented as:
This is a more concise form. This form is beneficial as it makes the power function more intuitive. Consider , then
This means the argument is multiplied by , and the modulus is raised to the th power, making the geometric interpretation more intuitive.
Trigonometric Functions, Hyperbolic Functions
With Euler’s formula, trigonometric functions can also be expressed using it:
Notice how this looks just like the hyperbolic functions? So we can get the following expressions:
Then we can define the remaining functions using .
Derivative
In the pure real number field, the derivative is usually represented as a rate of change. But does this hold in the complex field? In other words, do derivatives exist in the complex field? If they do, what are the conditions for existence?
We define the derivative of a complex function similarly to the real case:
It seems the same as the real case! But a problem arises here: from which direction should approach ?
Here we give the Cauchy-Riemann conditions: This function is differentiable (complex differentiable) if and only if:
Then, at that point, . The proof is straightforward.
If a function is differentiable at every point in its domain, it is called a holomorphic function. From now on, the functions we discuss will be holomorphic functions.
Integral
In the complex field, integration is defined along paths, generally called line integrals or contour integrals.
Let a path be defined by . Then the integral is defined as:
Based on this definition, we can derive the following simple properties:
- Path Additivity: If , then:
- Reverse Path: For any path, we have:
Cauchy’s Theorem
Simply Connected Region: In Shabat’s Introduction to Complex Analysis, homotopy theory of paths is used to rigorously define a simply connected region. However, the author’s language skills are poor and unable to articulate a rigorous definition clearly, coupled with the inherently high difficulty of understanding, so we define a simply connected region in an easy-to-understand way here.
If a region has no “holes” in it, it is called a simply connected region. Otherwise, it is called a multiply connected region.
Do simply connected regions have any magical properties? Certainly, otherwise I wouldn’t have mentioned them specifically.
Theorem 1: If is holomorphic in a simply connected region , then for any closed curve , we always have:
(The circle on the integral sign indicates integration over a closed curve).
This theorem essentially tells us that for integrals in a simply connected region, the value of the integral depends only on the start and end points, and is independent of the path. This is a very strong conclusion. It directly tells us that within a simply connected region, we only need to consider the start and end points, greatly simplifying the complexity of calculation. For example, we can transform a bizarre integration path into a straight line segment, and the integral over a line segment is just an ordinary integral~
Theorem 2: If is inside the closed curve , then:
This is an extremely important theorem. It allows us to convert many integrals into function values, and function values into contour integrals.
Relationship Between Higher-Order Derivatives and Integrals
This is a particularly important part, so I’ve dedicated a separate section to explain it.
There exists the following relationship between the higher-order derivatives of a function and integrals:
We prove this using mathematical induction.
Proof
When , it reduces to Cauchy’s Integral Formula (Theorem 2), so the proposition holds. If the proposition holds for , then:
We differentiate this with respect to :
Therefore, the proposition holds for .
We will use this in the Taylor expansion in the complex domain.
Expansion of Complex Functions
Taylor Series
Let’s recall the Cauchy Integral Formula derived earlier:
We consider expanding its kernel. Using a known result (geometric series), we get:
Substituting back into the original formula, we get:
Does the latter part look familiar? This is the higher-order derivative formula we just derived. Substituting it in, we obtain:
This is the same result we obtained in the pure real number domain! But it’s not over yet; we still need to discuss the convergence conditions for the Taylor series.
Obviously, the methods we used for expanding real functions are no longer applicable here. So we present a better method here.
Cauchy–Hadamard Theorem
This is a superior method for determining convergence, giving a radius of convergence.
Cauchy–Hadamard Theorem: For the series , its radius of convergence satisfies the following relation:
Specifically, we define:
- when .
- when .
Proof
Here we only prove the case for , as other cases can be obtained by substitution.
Let . Consider calculating:
Let’s discuss case by case:
- , then clearly, for any in the complex plane, the series converges.
- i.e. , then the series converges absolutely.
- the test is inconclusive.
- , i.e. , then the series diverges, because for infinitely many .
- then the series converges only for .
In summary, except for the boundary case, the proposition holds.
Laurent Series
Starting from here, we will discuss functions that are not holomorphic everywhere due to the presence of singularities.
Assume the function is holomorphic on the annulus . Then there exists a series:
where
and where . We call this series the Laurent series.
We find that when , the coefficients of the series are the same as those in the Taylor series, but they cannot be written in the form if is not analytic at .
Its convergence can also be determined using the Cauchy–Hadamard theorem. Furthermore, its coefficients satisfy Cauchy’s inequality:
where .
Fourier Series
Recall the definition of the Fourier series in the real number domain:
where:
Applying Euler’s formula mentioned earlier and defining new coefficients, we can write:
A simple derivation yields:
Note that if we let we get:
and
This is the Laurent series on the unit circle. Conversely, the Laurent series of a function on the unit circle can be transformed into a Fourier series by substitution.
Isolated Singularities
We define a point as an isolated singularity of the function if is holomorphic in the punctured disk for some .
We say the isolated singularity is:
- A removable singularity if the limit exists (and is finite).
- A pole if the limit .
- An essential singularity if the limit does not exist (in the extended complex plane).
This passage probably has the distinctive inverted flavor of foreign textbooks. Would it sound more like it if the top part was written as: “Regarding an isolated singularity , we call it…”?
Here are two examples. For the functions:
Clearly is a removable singularity for and an essential singularity for .
Theorem 3: is a removable singularity of the function if and only if the coefficients in the Laurent series of about satisfy:
The reader is invited to prove this themselves; you can try using Cauchy’s inequality.
Theorem 4: is a pole of the function if and only if the coefficients in the Laurent series of about satisfy: There exists an integer such that for all . The reader is invited to prove this again.
Theorem 4’: is a pole of the function if and only if the function is holomorphic in a neighborhood of and has .
Theorem 5: is an essential singularity of the function if and only if the coefficients in the Laurent series of about satisfy: There are infinitely many negative indices for which .
From Theorems to , we can see the relationship between isolated singularities and the Laurent series.
Residue Theorem
We now start considering points where a holomorphic function is no longer holomorphic.
Assume the function is holomorphic everywhere in a region except at a countable set of singular points. Let region , and let be the singularities inside . Let , where is sufficiently small such that the disks around the singularities do not intersect. Let be oriented counterclockwise. Define .

The diagrams in complex analysis are great.
Then we clearly have (by Cauchy’s Theorem for multiply connected domains, applying it to ):
We define , called the residue of at the singularity . Then the original equation becomes:
Then the Residue Theorem states: The residue of a function at an isolated singularity is the coefficient in the Laurent series expansion of about , i.e.:
The proof is overly obvious. The reader can easily prove it themselves.
Here is a classic example of using residues to compute an integral. Consider computing the Laplace integral:
First, construct a closed contour representing a semicircle of radius , denoted , like this:

Considering the integral along this path:
There is a first-order pole (simple pole) at (in the upper half-plane). Applying the residue theorem, we get:
Thus, by the residue theorem:
According to the preceding properties, we split it into two parts:
Now we let . The first part becomes the Laplace integral. For the second part, we have:
But this only holds for . So when , we take the lower semicircle as the contour integral. Using the same method, we eventually get:
Combining the two results, we get:
Analytic Continuation
Now that we have the complex number field, we naturally have the idea of extending real functions to the complex field. This process is called analytic continuation.
More rigorously, if a holomorphic function is defined on a domain , and there exists another holomorphic function defined on a domain such that:
Then is the result of the analytic continuation of .
Analytic continuation has some commonly used methods, one of which is the Taylor series, which we have prepared extensively for earlier.
For general functions, they are not defined in the complex domain, but their Taylor series converge in the complex domain. Therefore, we can use their Taylor series to replace the original function, achieving the effect of analytic continuation.
The rest will be introduced in a separate article later.
Some Casual Remarks
This article was written by the author while slacking off during training at ZR (likely a training camp). You can completely treat the rest of this text as a travelogue.
Sshwy spent two hours during evening self-study ranting about how terrible C++ is, criticizing C++ from start to finish. “WTF is using namespace std?”, showing that Sshwy holds C++ in high esteem. Here is the article.
Ayanami Rei is awesome, using Ayanami Rei as a wallpaper.
Met grass8cow (hereinafter referred to as c8n), who talked about DP optimization. However, it was incomprehensible, so in the afternoon, I read the slides word for word and still didn’t understand, completely losing my language ability. c8n publicly demonstrated using the Luogu submission interface to solve problems, solved one blue and one purple, receiving worship from the whole class. However, when trying to solve P3791 Ordinary Math Problem, he got TLE, but passed easily after adding memoization. Then he briefly talked about his CF alt account, mourning his banned account. Questioned by classmates about his poor English skills, he brought up his WC2025 (likely Winter Camp) defense incident. Basically, he was ranked 8th, thought he couldn’t make the top 6, so he didn’t prepare the defense. But on the last day, there was a reversal, and he was exactly 6th. He wanted to give the defense opportunity to someone lower ranked, but it turned out there was a precedent for this??? He was refused, so he stayed up late finishing his paper. However, the defense required an English self-introduction. So c8n spent half an hour cobbling together a self-introduction and wanted to spend an hour memorizing it. Ultimately, he didn’t succeed and used sheer audacity to get through the self-introduction. Later learned that the precedent was dzd.
Very quickly, the training camp entered the stage of “deep understanding, complete belief” – it was really agonizing!!! Bought headphones, henceforth cut off from the world. Became obsessed with the band Cao Dong, listened to them every day, until one day checking the play duration:
“Wow, 18 out of the top 20 most played songs this month are by Cao Dong??? ‘但’ (But) was played 140 times, expressing the author’s desire not to be here (at ZR).”
However, ZR actually had a concert?? Signed up for ‘但’ as soon as the announcement was posted, suspected of spreading cult behavior, met Du Yuhao. Eh?! Someone sang ‘冬の花’, although a large section wasn’t sung, still good!! Sshwy sang ‘Night Voyage’ (夜航星), so awesome!! Surprised to hear someone sing ‘Sakura Nagashi’ (桜流し) at ZR, EVA gets praise, although I wanted to suddenly stand up, clap and shout “おめでとう! (Congratulations!)”, recreating the classic scene, but didn’t dare, felt a bit awkward.
At the concert, finished watching Cardcaptor Sakura, Syaoran Li’s confession was too difficult.
Went back at night, played a bit of Honkai: Star Rail, then continued updating the article. Had ACM the next day, but still stayed up until morning before sleeping.
Formed an abstract team. From team formation to the end of the competition, there were only 5 messages in the group chat, four of which were sent by me, a bit quiet. The first blood balloon was a Nailoong , kinda funny. 18 people in the class claimed to be Nailong, but 9 of them were from GDSY , GDSY is too abstract, leaving no blade of grass standing wherever they go. Within the first half hour of the competition, I had already contributed 8 penalty tries, so I didn’t dare to code anymore, switched with a teammate who went on to solve 4 problems furiously, felt inferior. Finally got 7 problems within three hours, then spent an hour reading problem H without understanding the meaning of the problem , demonstrating the junior high school level Chinese proficiency, started slacking off, gave the computer to the female classmate in the team, started watching anime. In the last half hour, stabilized at rank 29 (official contestants rank 24). The first place among official contestants was actually an eighth grader from Tieyi Middle School named lkr, and he was alone, felt inferior again. Ordered milk tea, thinking to pick it up after the competition.
During dinner, realized I had selected “pick up in store”, I am Nailong, reordered, but it started pouring rain, couldn’t go get the takeout, left it for two hours, when I got it, the sundae had turned into soup.
After many days of training, finally slacked off, chose not to attend evening self-study. Freed up a lot of time, but most of it was spent playing table tennis and playing ADOFAI, and also managed to pass It Go (likely a specific ADOFAI level) in one go. Then went to grind the game event. A classmate bought Alice’s skin, but got a different one, lol. Learned how to play Strange Companion (?), grinding monsters became like farming in [Genshin Impact] opening treasure chests, played with classmates for half an hour felt boring, went back to the event. Fairy’s auto-fishing took too long, but didn’t want to harvest early, so didn’t fish. Played Stardew Valley and finally understood that fishing can really make you red with anger (frustrating).
Participated in a ZR contest, “Blind faith in the teacher is worse than having no teacher”, it was c8n’s contest. Where are the humans? At first glance, 99 points thought it was the score for T1, but it was the total score, and this was the 20th place result. IOI contestants are just different.
Yamada Ryo (from Bocchi the Rock) is awesome, using Yamada Ryo as wallpaper.
MC (Minecraft) is fun, recommended server hmsj.online. My deskmate got red-faced angry due to 360 (antivirus software), started uninstalling 360, opened the main folder, searched for “360” in the search bar, found nothing, then went to the browser to search “how to uninstall 360 security guard”. One article said to find the 360 process in the task manager, go to the 360 folder, and use the built-in uninstaller. So she opened the task manager and started frantically ending processes, found it useless, then read that article word for word, finally opened the 360 folder, and deleted the 360 shortcut. Found it hilarious, helped her uninstall 360 properly.
Now it’s the last day at ZR, total of 10 Kb written, been updating for two weeks and still not finished, I am the king of procrastination.
Now it’s the first day of school, been updating for a month. Transferred to a new school, became an OIer in a strong-province-weak-school situation, played CF for a month, rating increased quite quickly.
I FINALLY FINISHED WRITING!!!! During the writing period, finished 13 anime series, also a godly feat.
No more casual remarks, afraid if I write more it won’t pass review. Didn’t find a category, not submitting for review.
References
Shabat B. V. Introduction to Complex Analysis. Too weak, can’t understand English literature.
Is it over?