A linear function is a mathematical function that has a constant rate of change, or slope, over its entire domain. It is the simplest type of function, where the relationship between the independent and dependent variables can be represented by a straight line on a graph.