Simplify r=1/(1/x+1/y)

multiply the right side by xy/xy