August 17th, 2024
In this article, I'm going to discuss how I derived a formula to approximate Pi using calculus. The formula is well-known, but I'm writing this article mostly just to show off my knowledge and prove to myself that I somewhat understand calculus, at least at a high-school level.
We'll start with by finding the equation for the unit circle on a cartesian plane. We know that the equation for a circle centred at the origin with a given radius
Next, we'll show that the area of the unit circle should be equal to pi. The formula for the area of a circle with radius
So if we can find an equation that gives the area of the unit circle without using
Fortunately, calculus gives us a tool to find the area under any curve (function). So if we convert the equation for a circle to a function, we can simply integrate and find pi. To do this, we'll rearrange for y.
Subtract
Take the square root of both sides.
If we try plotting this function on a graphing calculator, we end up with a semicircle, not the circle we expected. This is because the circle cannot be expressed as a function. (A function can only have one output value for each input value, a circle has 2.) If we added a
We can put this expression into a definite integral, integrating from -1 to 1.
This gives the area under the semicircle, between the curve and the x-axis. It has an area of
Of course, since the first formula is already giving
There are formulas for pi that don't involve calculus, instead using infinite sums to get approximations of pi. But I like this formula because it has geometric meaning. You can clearly see how it was derived. With the knowledge that an integral can be thought of as taking the sum of the areas of infinitely many rectangles, each with an infinitesimally thin width of