Independent variable is a factor that changes the dependent variable. For example, the problem is how fast salt dissolves in water according to temperature. The independent variable is the temperature of water. The dependent variable is how fast salt dissolves.