Linear functions and linear models
A linear function has a straight line as its graph: is the gradient (how much changes for each unit increase in ) and is the value at . It is used to model any situation with a constant rate of change, such as a cost with a fixed charge or a tank that empties at a steady rate.
Gradient and y-intercept
The gradient measures the steepness of a line. If and are two points on the line, the gradient is
A positive gradient indicates an increasing line, a negative one a decreasing line, and gives a horizontal line. A vertical line has no gradient and is not the graph of a function. The -intercept is the value of when , that is, the point where the line cuts the -axis.
Forms of the equation of a line
To convert from one form to another, simply rearrange. For example, the line with gradient passing through is , that is, . In general form it is . If you are asked for the equation of the line through two points, first calculate and then substitute one of the points into .
Parallel and perpendicular lines
Parallel lines have the same steepness and so never meet. Perpendicular lines form a right angle: the gradient of one is the negative reciprocal of the other. If , a perpendicular has .
Piecewise functions
Sometimes a situation follows one rule over one interval and a different rule over the next. It is described by a piecewise function, which has a formula for each interval. A car park may charge € per hour for the first four hours and € for each hour after that:
To calculate choose the piece to which belongs: €. To draw it, plot each formula only on its interval. On the GDC you do this by entering each formula with its interval of .
Linear models
A linear model is a function that describes a real situation. It is solved in three steps: translate the question into a function, solve using mathematics and interpret the result in context. In the model:
- is the rate of change: how much the dependent variable increases (if ) or decreases (if ) for each unit of the independent variable. Its unit must be given, for example "euros per kilogram".
- is the initial value: the value of the variable when , such as a fixed charge.
If , the relationship is one of direct proportion and is the constant of proportionality.
Point of intersection of two lines
Two models are set equal where their graphs cross. To find that point, equate the two expressions and solve for , or draw the two lines on the GDC and find the intersection point. Then substitute into either function to obtain the -coordinate. In a supply and demand context, that point is the equilibrium of the market: the price at which the quantity people want to buy equals the quantity people want to sell.
Worked examples
Line through two points
A line passes through the points and .
a) Find its gradient.
b) Write its equation in the form .
Solution
a) .
b) Using the point–gradient form and the point : , so . Check with the other point: . Correct.
Parallel and perpendicular through a point
The line has equation . Consider the point .
a) Find the equation of the line parallel to that passes through .
b) Find the equation of the line perpendicular to that passes through .
Solution
a) A parallel line has the same gradient, . Using the point–gradient form:
b) The gradient of a perpendicular satisfies , so . Then
Check of b): at , , so it passes through .
Supply and demand for oranges
In a market, the demand for oranges (kilograms people want to buy per day) depends on the price , in euros per kilogram, according to . The supply (kilograms put on sale per day) is . Both are valid for prices between and €/kg.
a) Calculate how many kilograms are demanded if the price is €/kg.
b) Find the equilibrium price and the quantity sold at that price.
c) State the gradient of and interpret it.
Solution
a) . 300 kg are demanded per day.
b) At equilibrium supply and demand are equal: . The quantity is . Check with demand: . Using the GDC, the intersection point of the two lines is . The equilibrium price is €/kg and 204 kg are sold per day.
c) The gradient of is . It means that for every € increase in the price per kilogram, demand falls by 60 kg per day.
In the exam: give the price and the quantity with their units, and write the equation before solving it. If you interpret a gradient, state the quantity, the sign (rises or falls), the unit and which variable changes for each unit of which other variable.
Common mistakes
Summary
- Gradient: . It is the rate of change; is the value at .
- Forms of the line: , and .
- Parallel: . Perpendicular: .
- A piecewise function uses one formula per interval; it is evaluated by choosing the piece that applies.
- A linear model is interpreted: with its unit and as the initial value.
- The intersection of two lines is found by equating the functions or with the GDC.
Want to work on it together?
Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.
Message us on WhatsApp