Arctangent addition formula

ID: arctangent-addition-formula

For real with , the principal inverse tangent satisfies
To prove it, multiply the complex numbers and . Their product is , whose positive real part places its complex argument in . The individual complex arguments are and , and their sum is in . Multiplication adds these complex arguments, so the positive real part forces the sum into the same principal range and gives the displayed formula.
If , both have the same sign. Add to the right-hand side when , and subtract when . If , the sum is or according to the sign of . These cases record the branch information that can be lost by applying the tangent addition formula alone.

New to topics? Read the docs here!