Source: https://www.math.brown.edu/reschwar/MathNotes/arctan.pdf