Dependent variable (source code)

= Dependent variable
{title2=$y=f(x)$}

A <dependent variable> has its value specified by a <function> of one or more <independent variables>. In $y=x^2$, choosing the <function input> $x$ determines the <function output> $y$; equal values of $y$ can nevertheless arise from different inputs.

In an <ordinary differential equation> such as $dy/dx=2x$, $x$ is the <independent variable> and $y$ is the <dependent variable>. The unknown object being sought is a <function> $y(x)$, rather than one numerical value of $y$. Its <derivative> describes how the <dependent variable> changes with the <independent variable>.