Functions are defined as the equation where it gives one output for every input. Function is a mathematical rule that defines the relationship between dependent and independent variables.