Question: Compute the length of a common tangent of two circles of radii r and 2r which intersect at the right angle.
Let's say our first circle has the form $(x-a)^2+(y-b)^2=r^2$ and the second circle has the form $(x-c)^2+(y-d)^2=4r^2$ then since they intersect at a right angle the product of their derivatives must equal $-1$ which means our condition is $\frac{a-x}{y-b} \cdot \frac{c-x}{y-d} =-1$ but after this I can't continue.
Please help :(

Since all that matters is that one circle has twice the radius of the other and they intersect at right angles, the problem will scale with respect to the radius and the position and orientation in the plane will be irrelevant.
So we may let one circle have center $(0,1)$ and radius $1$ and the other have center $(2,0)$ and radius $2$ as in the diagram below, where the length of the common tangent is clearly $2$.
So the answer to the general question is $2r$.