A function is a relation where each element in the domain corresponds to only one value in the range, describing situations where one quantity determines another. It contains a dependent variable that determines the value of the independent variable. Functions can be represented as piece-wise functions and involve evaluating and performing operations on functions.