Trigonometry from Differential Equations
Our education system provides a multitude of choices for a young eager student. One of those choices, I have learnt recently, is called Applied Mathematics. An inspection of the contents shows much of geometry—trigonometry, coordinates, vectors, complex numbers—is removed, but Calculus remains.
While students of applied mathematics lament that they have not learnt trigonometry in school, they do not know that Indian school trigonometry is mostly mindless algebra and very boring. However, the basic ideas surrounding its geometric meaning are very important for Fourier series and any student of science who wants to model periodic phenomena cannot escape its allure. This is especially true for macroeconomists who are passionate about understanding business cycles.
Applied mathematics students should count themselves lucky, since learning trigonometric functions using differential equations is an absolute delight. When I was young, I was spoiled by the geometric route, and the differential equation route became confusing.
This note states and proves all the basic trigonometric relations starting from a single differential equation and the theorems of calculus. Secondly, it defines π from first principles using an integral and then works out the approximation 3.14. We also end up proving that this number π is the ratio of the circumference to the diameter of any circle in the world!
One wonders why I stop at 3.14—why not compute more digits? Well, it is futile to uncover more decimals since it will never end. Basically, π is irrational. Alas, proving its irrationality will take us far afield, but there is a gorgeous proof by Niven that you can look up.
I claim no novelty for this plan of attack. A whiff of these ideas is given in Simmons’ text on differential equations, and I suspect 18th century masters were well aware of this route. There is a small turn that will lead you into the serene wilderness of elliptic integrals and the jungles of holomorphic differentials on complex algebraic varieties. I will explore these ideas in a separate post. Here, I have filled in the details and directed this exposition. So sit tight and enjoy the ride.
The Fundamental Differential Equation
Consider the second-order linear differential equation $y’’ + y = 0.$
This is one of the simplest nontrivial ODEs in mathematics. By the Picard existence-uniqueness theorem, given any initial conditions $y(0) = a$ and $y’(0) = b$, there exists a unique solution defined for all $x \in \mathbb{R}$.
From this single fact—and nothing else—we construct all of trigonometry.
Key observation. $C(x)$ also satisfies the same ODE with initial conditions $C(0) = 1$ and $C’(0) = 0$. We have the fundamental derivative relations:
$S’(x) = C(x), \quad C’(x) = -S(x).$
The Addition Formulas
Proof idea. Fix $u$ and consider $y(x) := S(x+u)$. It satisfies the ODE with initial conditions $y(0) = S(u)$, $y’(0) = C(u)$. Separately, define $z(x) := S(x)C(u) + C(x)S(u)$. We can verify that $z$ satisfies the same ODE and initial conditions. By uniqueness, $y = z$.
Proof. Differentiate the sine addition formula with respect to $x$.
The Pythagorean Identity
Note that we have found another differential equation, albeit a non-linear one.
Defining π and the Boundary Values
We define an auxiliary function
$g(u) := \displaystyle \int_0^u \dfrac{dt}{\sqrt{1-t^2}} \quad \text{for } u \in (-1, 1).$
This integral converges (though the integrand is unbounded at $u = 1$). We have $g’(u) = \frac{1}{\sqrt{1-u^2}} > 0$, so $g$ is strictly increasing.
Proof sketch. The key lemma shows that $g(S(x)) = x$ for $|S(x)| < 1$. Applying at $x = \pi/2$: $g(S(\pi/2)) = \pi/2$. But by definition, $g(1) = \pi/2$. Since $g$ is strictly increasing (hence one-to-one), $S(\pi/2) = 1$. The Pythagorean identity then gives $C(\pi/2)^2 = 0$.
Computing π: The Dalzell Integral
To compute π rigorously, we use an elegant integral inequality discovered by Dalzell (1944):
Periodicity and Angle Formulas
These emerge directly from the addition formulas and the special values.
The Unit Circle Parametrization
The Pythagorean identity ensures every point lies on the unit circle. Monotonicity and continuity ensure the parametrization covers the entire circle exactly once per period. The parameter $x$ is the arc length measured counterclockwise from $(1, 0)$.
Arc Length and Circumference
Conclusion
We have reconstructed all of trigonometry from a single differential equation and the theorems of calculus. We began with $y’’ + y = 0$, defined $S$ and $C$ by their initial conditions, proved all the major identities (addition formulas, Pythagorean theorem, periodicity), defined π through an integral, and rigorously established that π is the ratio of circumference to diameter for any circle in the world.
The geometry did not come first. It emerged from the analysis. This approach is not only rigorous and beautiful—it is also the path that any student of applied mathematics should take. No diagrams, no appeal to intuition, no mindless memorization of angle rules. Just differential equations, calculus, and the inexorable march of logic.
As the 18th century mathematicians knew, and as Simmons has shown, this is the deepest way to understand trigonometry.
Enjoy Reading This Article?
Here are some more articles you might like to read next: