A function defines a relationship between input and output values where each input is mapped to exactly one output. Function notation uses the format f(x) = expression to show the rule for determining the output value from the input. Functions can be used to model real-world relationships where the input is an independent variable and the output depends on the value of the input.