Direct variation

Double the number of notebooks you buy at a fixed price, and the bill doubles too. Halve your driving time at a steady speed, and the distance covered halves too. This "grow together, shrink together, always in the same ratio" behaviour is called direct variation, and it is one of the most useful patterns in mathematics because it turns a messy word problem into a single equation, y=kxy = kx. This article builds the idea from the everyday observation that a ratio stays fixed, into a working equation with a constant kk, a proportion shortcut for solving unknowns fast, and the unitary method that many students already use without naming it. Two number checks — a shopping bill and a steady-speed journey — are worked all the way through, and the traps that lose the most marks (confusing direct with inverse variation, and setting up the proportion upside down) are called out explicitly so you can catch them before an exam does.

The core insight

Two quantities xx and yy vary directly when their ratio y/xy/x stays fixed at a constant kk, so y=kxy = kx, and finding kk from one known pair lets you predict yy for any other value of xx.

The core idea

Two quantities xx and yy are said to vary directly — or be in direct proportion — if, as one changes, the other changes in exactly the same ratio. Symbolically,

y∝x⟺yx=k⟺y=kxy \propto x \quad \Longleftrightarrow \quad \frac{y}{x} = k \quad \Longleftrightarrow \quad y = kx

where: xx and yy are the two varying quantities, and kk is a fixed number called the constant of variation (it does not change as xx and yy change). The equation y=kxy = kx says yy is always kk times xx — double xx and yy doubles, triple xx and yy triples, halve xx and yy halves. A quick test for direct variation: tabulate a few pairs of values and compute y/xy/x for each. If the ratio comes out the same every time, the quantities vary directly; if it keeps changing, they do not. This is worth doing before assuming a word problem is a direct variation at all. For any two corresponding pairs of values (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) of the same two varying quantities,

y1x1=y2x2=k\frac{y_1}{x_1} = \frac{y_2}{x_2} = k

where: the subscripts 11 and 22 label two different snapshots of the same relationship — for example, the cost and quantity on Monday versus the cost and quantity on Tuesday, at the same fixed rate. Cross-multiplying gives the equivalent proportion form

x1y1=x2y2or equivalentlyx1y2=x2y1\frac{x_1}{y_1} = \frac{x_2}{y_2} \quad \text{or equivalently} \quad x_1 y_2 = x_2 y_1

which is often faster than finding kk explicitly when you only need one unknown value. Many students solve the very same problems using the unitary method instead: find the value of yy corresponding to one unit of xx, then scale that single-unit value up or down to whatever amount the question asks for. The unitary method and the kk-based method are the same idea in different clothes — finding yy for one unit of xx is finding kk — so both must give the same answer, and checking one against the other is a good habit against careless slips. The picture below shows why the graph of a direct variation is always a straight line through the origin: because y=kxy = kx, every point (x,y)(x, y) that satisfies the relation lies on a line of slope kk passing through (0,0)(0,0) — no notebooks bought means no money spent, no time travelled means no distance covered.

Figure
A straight line through the origin showing cost rising in exact proportion to the number of notebooks bought, with a marked point at 8 notebooks and 296 rupees
Cost varies directly with number of notebooks number of notebooks (x) cost in rupees (y) 8 13 20 296 481 y = kx, k = 37 8 notebooks, ₹296 13 notebooks, ₹481

Direct variation is everywhere outside the classroom too: the bill you pay is directly proportional to the quantity bought at a fixed rate, distance covered is directly proportional to time at a constant speed, and the weight of a metal rod is directly proportional to its length as long as its thickness stays the same. Spotting the phrase "at a constant rate/price/speed" in a word problem is usually the clue that direct variation is the right tool.

Derivation AFinding an unknown value using the constant of variation

The goal is to take one known pair of corresponding values for two directly varying quantities and use it to find a second, unknown value for a different amount of the first quantity — the single most common task in this topic, whether the quantities are cost and number of items, distance and time, or any other directly varying pair.

Step 1. Confirm the quantities vary directly. Check that as one quantity increases, the other increases in the same ratio (or use the phrase in the question — "at a fixed price," "at a constant speed" — as the signal). Write the relation as y=kxy = kx, where xx is the quantity you are given more of and yy is the quantity you want to predict.

Step 2. Use the known pair (x1,y1)(x_1, y_1) to find the constant of variation: k=y1x1k = \dfrac{y_1}{x_1}. This step turns a specific example into a general rule that applies to any value of xx, not just the one you started with.

Step 3. Apply the rule to the new value x2x_2: y2=k×x2y_2 = k \times x_2. Because kk is fixed, this multiplication is guaranteed to respect the same ratio as the original pair.

Step 4. Cross-check using the proportion form x1y1=x2y2\dfrac{x_1}{y_1} = \dfrac{x_2}{y_2}, which should give the same y2y_2 without ever computing kk explicitly. Agreement between the two methods is strong evidence the working is correct; disagreement means a value or a ratio was set up upside down.

Worked example

The cost of 8 identical notebooks is ₹296. Find the cost of 13 such notebooks.

Step 1. Identify the variation. Cost varies directly with the number of notebooks bought at a fixed price, so CostNumber=k\dfrac{\text{Cost}}{\text{Number}} = k, with x1=8x_1 = 8 notebooks and y1=₹296y_1 = ₹296.

Step 2. Find kk, the cost of one notebook.

k=2968=37k = \frac{296}{8} = 37

So each notebook costs ₹37.

Step 3. Use direct variation to find the cost of 13 notebooks.

Cost=k×Number=37×13=481\text{Cost} = k \times \text{Number} = 37 \times 13 = 481

Step 4. Check with the proportion form. With x1=8, y1=296, x2=13, y2=?x_1 = 8,\ y_1 = 296,\ x_2 = 13,\ y_2 = ?,

8296=13y2  ⟹  y2=13×2968=38488=481\frac{8}{296} = \frac{13}{y_2} \implies y_2 = \frac{13 \times 296}{8} = \frac{3848}{8} = 481

Both methods agree. 13 notebooks cost ₹481.

Competitive stretch

A car travelling at a steady speed covers 165 km in 3 hours. How long will it take to cover 385 km at the same speed? Here distance dd varies directly with time tt: d=ktd = kt, so k=1653=55k = \dfrac{165}{3} = 55 km/h. Setting 385=55t385 = 55t gives t=38555=7t = \dfrac{385}{55} = 7. A proportion check, 1653=385t\dfrac{165}{3} = \dfrac{385}{t}, gives 165t=1155165t = 1155, so t=7t = 7 again. The car takes 7 hours. Notice the same four-step method solved a completely different real-world pair — cost/notebooks and distance/time — because both situations are, underneath, the same equation y=kxy = kx.

Common traps

  • Confusing direct with inverse variation. In direct variation, both quantities increase or decrease together; do not cross-multiply as if one increasing meant the other decreasing — that pattern belongs to inverse variation instead.
  • Assuming direct variation without checking. Not every "more of one, more of the other" situation is a clean direct variation. Verify with at least two pairs of values that y/xy/x is genuinely the same constant before applying y=kxy = kx.
  • Setting up the proportion upside down. Writing x1y1=y2x2\dfrac{x_1}{y_1} = \dfrac{y_2}{x_2} instead of x1y1=x2y2\dfrac{x_1}{y_1} = \dfrac{x_2}{y_2} gives a wrong, often absurd, answer — keep the same quantity in the numerator on both sides.
  • Mixing units mid-problem, such as leaving one distance in metres and another in kilometres, which silently corrupts the constant kk.

Ask the tutor: If you have a word problem and are not sure whether it is direct variation, share it with the AI tutor and ask it to identify the constant-rate phrase that gives it away.

How do I know a word problem is direct variation and not something else

Look for a fixed rate, price, or speed staying the same throughout the problem — phrases like "at the same rate," "at a constant speed," or "each costs the same." If two given pairs of values produce the same ratio y/xy/x, that confirms direct variation. If, instead, one quantity going up makes the other go down in a way where their product stays constant, that is inverse variation, a different relationship covered separately.

Do I always need to calculate k, or can I skip straight to the proportion

Either method works and they must give the same answer, so use whichever is faster for the numbers in front of you. If kk comes out as a clean whole number, finding it first (as in the notebook example) is quick and lets you sanity-check "does one notebook cost a sensible amount." If the numbers are awkward, the proportion form x1y1=x2y2\dfrac{x_1}{y_1} = \dfrac{x_2}{y_2} often avoids messy intermediate fractions.

What if the ratio y/x is not exactly the same for every pair of values I am given

Then the quantities do not vary directly, and applying y=kxy = kx would give a wrong answer. Recheck the arithmetic first, since a small ratio mismatch is often a units slip (metres vs kilometres, or minutes vs hours). If the ratios are genuinely different, the relationship is something other than direct variation, and a different method is needed to solve the problem.

Before this

Where this leads