You can put this solution on YOUR website! The independent variable is the one where you control the values.
The dependent variable takes on values based on what you decide to set the independent variable's values.
.
Usually, we define the independent variable as 'x'.
The dependent variable depends on the value of 'x' so we say it is a function of 'x', which is f(x).
That means we show the dependent variable's values on the y-axis.
.
Examples:
f(x) = x
f(x) = x + 1
f(x) = x^2 - 1
.
In all these example, f(x) is the dependent variable and x is the independent variable.
.