Linearity
In common usage, linearity refers to a mathematical relationship or function that can be graphically represented as a straight line, as in two quantities that are directly proportional to each other, such as voltage and current in an RLC circuit, or the mass and weight of an object.
Example
A crude but simple example of this concept can be observed in the volume control of an audio amplifier. While our ears may (roughly) perceive a relatively even gradation of volume as the control goes from 1 to 10, the electrical power consumed in the speaker is rising geometrically with each numerical increment. The "loudness" is proportional to the volume number (a linear relationship), while the wattage is doubling with every unit increase (a non-linear, exponential relationship).
In mathematics
In mathematics, a linear map or linear function f(x) is a function that satisfies the following two properties:
Additivity: f(x + y) = f(x) + f(y).
Homogeneity of degree 1: f(αx) = αf(x) for all α.
The homogeneity and additivity properties together are called the superposition principle. It can be shown that additivity implies homogeneity in all cases where α is rational; this is done by proving the case where α is a natural number by mathematical induction and then extending the result to arbitrary rational numbers. If f is assumed to be continuous as well, then this can be extended to show homogeneity for any real number α, using the fact that rationals form a dense subset of the reals.