what is the difference between dependent and independent variables? Can you provide an example for me indicating which of the variables is dependent and which is independent?

if y = x^2

y depends on the value of the independent variable x
if
x = sqrt(y)
then
x depends on the value of the independent variable y