What does it mean for one quantity to vary directly with another, how do you find the constant of variation k from a single data pair and write the equation y = kx, why is the graph always a straight line through the origin, and how is direct variation different from inverse variation y = k/x?
Recognise and model direct variation y = kx, where one quantity is a constant multiple of another, find the constant of variation k from a data pair, write and use the equation, identify direct variation from a constant ratio in a table or a straight-line graph through the origin, and contrast it with simple inverse variation y = k/x
A focused answer to the HSC Maths Standard 2 dot point on direct variation. How y = kx works, finding the constant of variation k from a data pair, why the graph is a straight line through the origin, recognising direct variation from a table or graph, and a brief contrast with inverse variation y = k/x, with worked pay, cost and speed examples.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
What this dot point is asking
Direct variation (also called direct proportion) is the special, very common situation where one quantity is always a fixed multiple of another: double one and the other doubles, treble it and the other trebles, halve it and the other halves. Pay for hours worked, cost for the quantity bought, distance for time at a steady speed: in each, the second quantity grows in exact step with the first. NESA writes this relationship as
where the fixed multiplier is the constant of variation (the rate at which the two quantities change together). The dot point bundles four skills, and a question can test any of them. First, find from a single data pair by substituting the known and into and solving. Second, write and use the equation: once you have , substitute an to predict a , or substitute a and solve to find the that produced it. Third, recognise direct variation from its fingerprints, a constant ratio in a table, or a straight-line graph through the origin. Fourth, contrast it with inverse variation , where one quantity grows as the other shrinks and the graph is a curve, not a line.
The deeper idea that makes all of this click is that direct variation is the simplest linear relationship there is: it is with the fixed amount set to zero. There is no flagfall, no call-out fee, no head start, just a constant rate from a standing start of nothing. That one fact explains every feature. The gradient and the constant of variation are the same number; the line passes through the origin because when ; and the ratio is constant because at every point. The marks come from finding the right , writing cleanly, substituting carefully (and solving rather than guessing when you read backwards), and stating clearly why a relationship is or is not direct variation. Marks are lost in a few predictable ways: confusing direct variation with a general linear model that has a non-zero intercept, dividing by instead of by when finding , and muddling the falling curve of inverse variation with the rising line of direct variation.
The answer
What direct variation means
Two quantities are in direct variation when one is always the same constant multiple of the other. If varies directly with , then there is a fixed number such that
The number is the constant of variation. It is the amount of for each one unit of : the dollars per hour, the dollars per litre, the kilometres per hour. Everyday language gives it away. Phrases like "varies directly with", "is directly proportional to", "is proportional to", and "for every extra unit you get so much more" all describe .
The defining feature is that the two quantities move in exact step. If doubles, then doubles too, because does not change; if is multiplied by any factor, is multiplied by the same factor. This is why a worker who is paid by the hour earns twice as much for twice the hours, and why three litres of petrol cost three times what one litre costs. The constant of variation is the single rate that ties the two together.
Crucially, direct variation has no fixed starting amount. When there is nothing to multiply, so . Zero hours means zero pay; zero litres means zero cost; zero time means zero distance. This is exactly what separates direct variation from the more general linear model in Linear models: a plumber's cost is not direct variation, because even for hours there is a $90 call-out fee, so doubling the hours does not double the cost. Direct variation is the clean case where the only thing happening is the constant rate.
Finding the constant of variation from a data pair
The whole method turns on one move: you are given a single pair of matching values, you substitute them into , and you solve for . After that the equation is fully known and you can do anything with it. NESA examines this as a clean three-step routine.
- Write the variation equation. If varies directly with , write (using the letters in the question, for example or ).
- Substitute the known pair and solve for . Put the given and into the equation; dividing gives .
- Write the equation with that , then use it. Replace with its value, then substitute the value you are asked about and evaluate (or solve).
For example, suppose a worker's pay varies directly with the hours worked, and an -hour shift pays $196. Write , substitute the pair , , and solve:
So the constant of variation is , the hourly rate of $24.50 per hour, and the equation is . Now the model is fully built from one pair of numbers. The order matters: is divided by (pay divided by hours), not the other way around. A quick sense check is that should come out as the rate the context would expect, here a sensible hourly wage.
Using the equation: predicting and reading backwards
Once is known and the equation is written, using it is the same two-way skill as any model. To predict, substitute the input and evaluate. With , the pay for a -hour week is
so $735. To read backwards, you are given the output and want the input. You cannot just substitute here, because the unknown is inside the equation, so instead you substitute the known output and solve. If the same worker was paid $294, then
so the shift was hours. With direct variation the solving is always a single division by , because there is no fixed amount to remove first. That is the practical payoff of the missing intercept: reading backwards is just one step.
Recognising direct variation from a table
A question often gives a table and asks whether the quantities are in direct variation, without using the words. The test is the constant-ratio test: work out for every column. If the ratio is the same number every time, the quantities are in direct variation and that number is ; if the ratios differ, they are not.
Take this table:
| 2 | 4 | 6 | 8 | |
|---|---|---|---|---|
| 7 | 14 | 21 | 28 |
The ratios are , , , . They are all , so varies directly with with , and the equation is . Notice the other tell-tale: as doubles from to , doubles from to , exactly the step-for-step behaviour of direct variation.
Now contrast a table that is linear but not direct variation:
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 5 | 8 | 11 | 14 |
Here the ratios are , , , , which are all different, so this is not direct variation. (The values go up by a constant each step, so they do lie on a straight line, but the line is , which crosses the -axis at rather than passing through the origin.) The constant-ratio test is what tells these two cases apart.
Recognising direct variation from a graph
The graph of a direct-variation relationship is a straight line that passes through the origin, and its gradient is the constant of variation . Both features must hold: a straight line that misses the origin is a linear model with a non-zero intercept, not direct variation, and a curve is not direct variation at all. To sketch one, you can use the methods in Graphing linear functions: plot the origin and one other point from the equation, then rule the line.
The figure below shows the pay model . The line is straight and starts exactly at the origin , because zero hours means zero pay. The rise-over-run step reads off the constant of variation: a run of hours gives a rise of $49, so dollars per hour, matching the hourly rate. Each dot is a sample shift, and all of them sit on the one line through the origin.
A brief contrast: inverse variation
For contrast only, NESA names the opposite case, inverse variation (or inverse proportion), written . It is the reverse of direct variation: as one quantity goes up the other goes down (for example, more workers means fewer days to finish a job), so its graph is a falling curve rather than a rising straight line through the origin. It is met here just as this brief point of comparison; the focus of this dot point stays on direct variation .
How exam questions ask about direct variation
The wording tells you which skill a part is testing:
- " varies directly with ", " is directly proportional to ", or " is proportional to " all mean write and find from the given pair.
- "Find the constant of variation" or "find " means substitute the known pair into and solve, so .
- "Write an equation connecting..." means state with replaced by its value.
- "Find when " means substitute the input and evaluate; "find when " means substitute the output and solve (one division by ).
- "Show that these quantities are in direct variation" (often with a table) means apply the constant-ratio test: show is the same for every pair, and state .
- "Is this direct variation? Justify." means check for the two fingerprints, a constant ratio (or a graph through the origin); if a fixed amount is added (a non-zero intercept), say so and conclude it is not.
- "Why does the graph pass through the origin?" wants the reason that when , that is, no fixed starting amount.
- " varies inversely with " or "as one increases the other decreases" is the contrast case , not direct variation; here it just flags that the relationship is the opposite kind.
Why direct variation is just y = mx + b with no intercept
It is worth seeing exactly how direct variation sits inside the linear relationships you already know, because it removes any mystery about its features. The general linear model is : a constant rate plus a fixed starting amount . Direct variation is the special case where that fixed amount is zero, , leaving just , which we write as . So the constant of variation is nothing other than the gradient you met in The gradient-intercept formula; they are the same number wearing a different name. Every feature follows from at once. The line passes through the origin because there is no constant to lift it off the -axis (the -intercept is ). The ratio is constant because at every point, whereas a line with an intercept has a changing ratio (as the earlier table showed). And doubling doubles only because there is no fixed amount staying put while the rest grows. This is the single insight to carry into the exam. If you can spot that the fixed amount is zero (no call-out fee, no flagfall, zero output for zero input), you have direct variation, and all its properties come for free.
Exam-style practice questions
Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
2021 HSC-style3 marksAt a money exchange the amount of New Zealand dollars you receive varies directly with the amount of Australian dollars you hand over. A traveller exchanges $250 AUD and receives $270 NZD. (a) Find the constant of variation . (b) Write the equation connecting and . (c) How many New Zealand dollars are received for $400 AUD?Show worked answer →
Part (a), find . New Zealand dollars vary directly with Australian dollars, so . Substitute the data pair , :
, so .
So , the exchange rate of NZD per AUD.
Part (b), write the equation. Replace with in :
.
Part (c), convert $400 AUD. Substitute into :
.
State the answer. Here , the equation is , and $400 AUD gives $432 NZD.
Markers reward written before the arithmetic, dividing by to get , and the substitution giving $432 NZD with units.
2023 HSC-style4 marksWhen baking a single type of biscuit, the mass (in grams) of flour needed varies directly with the number of biscuits made. A batch of biscuits uses g of flour. (a) Find the constant of variation . (b) Write the equation connecting and . (c) Find the flour needed for biscuits. (d) How many biscuits can be made from g of flour?Show worked answer →
Part (a), find . Flour varies directly with the number of biscuits, so . Substitute the data pair , :
, so .
So , meaning g of flour per biscuit.
Part (b), write the equation. Replace with in :
.
Part (c), flour for biscuits. Substitute :
.
So biscuits need g of flour.
Part (d), biscuits from g. Now the flour is known and the number of biscuits is wanted, so substitute and solve for :
, so .
State the answer. Here and ; biscuits need g, and g makes biscuits.
Markers reward with , the forward substitution giving g, and solving by a single division for part (d) to get biscuits.
2024 HSC-style4 marksA courier's daily earnings (in dollars) are thought to vary directly with the number of parcels delivered. The table shows three days.<br><br>| | 5 | 8 | 12 |<br>| --- | --- | --- | --- |<br>| | 11.25 | 18 | 27 |<br><br>(a) Show that varies directly with and state the constant of variation. (b) Write the equation and find the earnings for delivering parcels. (c) Explain why the graph of against passes through the origin.Show worked answer →
Part (a), apply the constant-ratio test. For direct variation the ratio must be the same for every column. Compute each:
The ratio is the constant every time, so varies directly with with constant of variation , the rate of $2.25 per parcel.
Part (b), write the equation and predict. With the equation is . Substitute :
.
So delivering parcels earns $45.
Part (c), why it passes through the origin. When no parcels are delivered, so : zero parcels means zero earnings. The point lies on the graph because there is no fixed starting amount, which is exactly what direct variation means.
State the answer. The constant ratio confirms direct variation (), parcels earn $45, and the line passes through the origin since zero parcels gives zero pay.
Markers reward showing for every column (not one pair), the equation giving $45, and a reason for the origin using when .
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksIt is known that varies directly with , and when . (a) Write an equation connecting and , using as the constant of variation. (b) Find the value of when .Show worked solution →
Part (a), write the equation and find . Direct variation means . Substitute the data pair , and solve for :
So the equation is .
Part (b), find when . Substitute into :
State the answer. The equation is , and when .
foundation3 marksA casual worker's pay (in dollars) varies directly with the number of hours worked. For a -hour shift the worker is paid $147. (a) Find the constant of variation . (b) Write the equation connecting and . (c) Find the pay for a -hour week.Show worked solution →
Part (a), find . Pay varies directly with hours, so . Substitute the data pair , :
So , which is the hourly rate of $24.50 per hour.
Part (b), write the equation. Put into :
Part (c), pay for hours. Substitute :
State the answer. Here , the equation is , and a -hour week pays $490.
core3 marksThe table below shows two quantities and .<br><br>| | 3 | 5 | 7 |<br>| --- | --- | --- | --- |<br>| | 25.5 | 42.5 | 59.5 |<br><br>(a) Show that varies directly with and state the constant of variation. (b) Find when .Show worked solution →
Part (a), test the ratio. For direct variation the ratio must be the same for every pair. Compute it for each column:
The ratio is the constant every time, so varies directly with with constant of variation , and the equation is .
Part (b), find when . Substitute into :
State the answer. The constant ratio confirms direct variation (), and when .
core4 marksThe cost (in dollars) of petrol varies directly with the number of litres pumped. A motorist pays $58.50 for litres. (a) Find the constant of variation . (b) Write the equation connecting and . (c) Find the cost of litres. (d) How many litres can be bought for $81.90?Show worked solution →
Part (a), find . Cost varies directly with litres, so . Substitute the data pair , :
So , the price of $1.95 per litre.
Part (b), write the equation. Put into :
Part (c), cost of litres. Substitute :
So litres cost $87.75.
Part (d), litres for $81.90. Now the cost is known and the litres are wanted, so substitute and solve for :
State the answer. Here and ; litres cost $87.75, and $81.90 buys litres.
core3 marksA straight-line graph passes through the origin and through the point . The line represents a direct-variation relationship . (a) Find the constant of variation . (b) Write the equation of the line. (c) Use the equation to find when .Show worked solution →
Part (a), find from the point. A direct-variation graph is , and is the value of at any point on the line. Using :
Part (b), write the equation. Put into :
Part (c), find when . Substitute :
State the answer. The line through the origin and has , equation , and when .
exam5 marksAt a constant speed, the distance (in kilometres) a car travels varies directly with the time (in hours). In hours the car travels km. (a) Find the constant of variation and state what it represents. (b) Write the equation connecting and . (c) Find the distance travelled in hours. (d) Find the time taken to travel km. (e) Explain why the graph of against passes through the origin.Show worked solution →
Part (a), find and interpret it. Distance varies directly with time, so . Substitute , :
So . Because is distance divided by time, it is the constant speed of km/h.
Part (b), write the equation. Put into :
Part (c), distance in hours. Substitute :
So the car travels km in hours.
Part (d), time for km. The distance is known and the time is wanted, so substitute and solve for :
So km takes hours.
Part (e), why it passes through the origin. When the time is , no time has passed, so the distance travelled is . The point is on the graph, which is exactly what direct variation means: there is no fixed starting distance, so the line goes through the origin.
exam5 marksAt a steady flow rate, the volume (in litres) of water that runs from a tap varies directly with the time (in minutes) it is left on. In minutes the tap delivers litres. (a) Find the constant of variation and state what it represents. (b) Write the equation connecting and . (c) Find the volume delivered in minutes. (d) Find the time taken to deliver litres. (e) Interpret the meaning of the point on the graph of against .Show worked solution →
Part (a), find and interpret it. Volume varies directly with time, so . Substitute the data pair , :
So . Because is volume divided by time, it is the constant flow rate of litres per minute.
Part (b), write the equation. Put into :
Part (c), volume in minutes. Substitute :
So the tap delivers litres in minutes.
Part (d), time for litres. The volume is known and the time is wanted, so substitute and solve for :
So litres takes minutes (about minutes seconds).
Part (e), interpret . The point says that when the time is minutes the volume delivered is litres: with the tap on for no time, no water has run. This is why a direct-variation graph passes through the origin, there is no fixed starting amount.
exam6 marksA mobile data add-on can be bought from two providers. With Provider A the cost (in dollars) varies directly with the data (in GB), and GB costs $14. Provider B charges a fixed $5 connection fee plus $2 per GB, so . (a) Find the constant of variation for Provider A and write its equation. (b) Is Provider B a direct-variation model? Justify your answer. (c) Find each provider's cost for GB and state which is cheaper. (d) Find each provider's cost for GB and state which is cheaper.Show worked solution →
Part (a), Provider A's model. Cost varies directly with data, so . Substitute , :
So Provider A's equation is (a flat $3.50 per GB).
Part (b), is Provider B direct variation? No. Direct variation has the form with no constant term, so its graph passes through the origin and GB costs $0. Provider B is , which has the fixed $5 fee added on, so at the cost is $5, not $0. The graph is a straight line but it does not pass through the origin, so it is a linear model, not direct variation.
Part (c), cost for GB. Substitute into each:
Provider A costs $35 and Provider B costs $25, so Provider B is cheaper for GB.
Part (d), cost for GB. Substitute into each:
Provider A costs $7 and Provider B costs $9, so Provider A is cheaper for GB. (Provider A wins for small amounts because it has no fixed fee; Provider B wins once the data is large enough for its lower per-GB rate to overtake the fee.)
Related dot points
- Construct a linear model y = mx + b for a practical situation made of a fixed amount plus a constant rate, interpret the gradient as the rate and the y-intercept as the fixed starting amount in context, and use the model to predict an output and to find the input that gives a required output
A focused answer to the HSC Maths Standard 2 dot point on linear models. How to build y = mx + b from a fixed amount plus a rate, interpret the gradient and y-intercept in words with units, predict a value and read the model backwards, with worked plumber, taxi, mobile-plan and tank-filling examples.
- Use the gradient-intercept form y = mx + b: read the gradient m and the y-intercept b directly from the equation (rearranging first if needed), write the equation of a line from its graph, and sketch a line from m and b
A focused answer to the HSC Maths Standard 2 dot point on the gradient-intercept formula. How to read the gradient m and y-intercept b straight from y = mx + b, rearrange an equation into that form first, write the equation of a drawn line, sketch a line from m and b, and build a real cost model, with worked Australian examples.
- Graph linear functions by constructing a table of values and plotting the points, recognise a linear relationship, sketch horizontal and vertical lines, and graph a line using its x- and y-intercepts
A focused answer to the HSC Maths Standard 2 dot point on graphing linear functions. Build a table of values, plot the points and rule a straight line, sketch horizontal lines and vertical lines, graph a line from its x- and y-intercepts, and read values off the graph, with worked Australian cost and distance examples.
- Find the gradient of a straight line as rise over run, interpret the sign of the gradient and what steepness means, read the y-intercept from a graph, and calculate the gradient between two points
A focused answer to the HSC Maths Standard 2 dot point on gradient and intercept. Gradient as rise over run, what positive, negative, zero and undefined gradients mean and what steepness tells you, reading the y-intercept off a graph, and the gradient formula between two points, with worked ramp, hourly-pay and phone-plan examples.
- Use the relationship between distance, speed and time to solve problems, rearranging the formula to find any of the three quantities and converting between km/h and m/s
A focused answer to the HSC Maths Standard 2 dot point on distance, speed and time. The triangle and how to rearrange it for distance, speed or time, average speed over a whole journey, keeping units consistent, converting between km/h and m/s with the factor 3.6, and reading a distance-time graph, with worked Australian examples.