In y=2x, the relationship is that the y value is twice that of any x value.

In y=sin(2x), the y value is the sin of twice the x value.

There is no obvious relationship between the functions. Just plot them both on the same axes, you will see this.

To predict the tangent of a sin wave, i.e where the gradient equals 2, use calculus.