I was playing about with some numbers when I came up with this fun question.
What is the value of $\arctan \left(\frac xy\right) +\arctan \left(\frac yx\right)?$
Here is my method:

As is clearly evident from the triangle:
$a = \arctan \left(\frac yx\right)$ and
$b = \arctan \left(\frac xy\right)$
$\therefore \arctan \left(\frac xy\right) +\arctan \left(\frac yx\right) = a + b = 90^{\circ} = \frac {\pi}2 ^c$
Was my method right? Or can it be improved? I would appreciate any help in the comments or through answers. Thanks in advance!
Yes it's a correct method.
As an alternative note that for $x>0$
$$\arctan x + \arctan \frac1x = \frac{\pi}2$$
indeed if you set
$$y=\arctan \frac1x$$
then
$$\tan y=\frac1x$$
that is
$$x=\cot y=\tan\left(\frac{\pi}{2}-y\right)$$
therefore
$$\arctan x=\arctan\tan\left(\frac{\pi}{2}-y\right)=\frac{\pi}{2}-y=\frac{\pi}{2}-\arctan \frac1x$$