I plotted the function S2 =Sqrt [(S1^2 *D1)/D2] which is a simple linear one as the square root of a square results in 1.