In calculus and related areas of mathematics , a linear function from the real numbers to the real numbers is a function whose graph ( in Cartesian coordinates with uniform scales ) is a line in the plane .
In basic mathematics , a linear function is a function whose graph is a straight line in 2-dimensions ( see images ) .