On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Arithmetic Operations · Grade 6-8

Direct Variation

Direct variation is a proportional relationship y=kx that passes through the origin: when one quantity doubles, so does the other.

y=kx(k≠0)
y = 4 · x012345(0, 0)

A line through the origin where y is always 4 times x: double x and y doubles.


Quick Answer

Direct variation is a proportional relationship y=kx that passes through the origin: when one quantity doubles, so does the other. Use it when a story says one amount varies directly with another, or when zero of one must mean zero of the other and both grow by the same factor: pay and hours at a fixed wage, distance and time at a steady speed. One known pair gives k=yx, and then y=kx answers every other case.

Why This Matters

Direct variation turns one measurement into a complete rule: if 3 hours of work pays $45, then k=15 and every number of hours has a price. It is also the model behind unit conversions, map scales and recipe scaling. Using it where it does not belong, such as a bill with a call-out fee, gives answers that drift further off the bigger the job.

Intuitive Explanation

Walk at a steady 5 km per hour. After 0 hours you have gone 0 km, after 1 hour 5 km, after 2 hours 10 km, after 3 hours 15 km. Double the time and you double the distance; triple it and you triple the distance. Distance varies directly with time, d=5t, and the constant of variation is k=5.

Two features mark direct variation. Zero goes with zero: no time walking, no distance. And every pair has the same quotient, here 51=102=153=5. On a graph these two facts make a straight line through the origin. So one known pair is enough: if y=12 when x=3, then k=4 and y=4x gives every other value.

A straight line is not automatically direct variation. A bowling alley that charges $4 for shoes plus $6 per game charges $10 for one game and $16 for two. Doubling the games did not double the bill, because the $4 is paid even before the first game. The graph is a line that starts at 4, not at the origin.

Direct is also the opposite of inverse. In inverse variation, such as more workers finishing a job in less time, one quantity rises while the other falls and their product stays fixed. In direct variation both rise or fall together.

Think of it like this. Direct variation behaves like buying loose apples at a fixed price each: no apples cost nothing, twice the apples cost twice as much, and the price of one apple gives the cost of any bagful. A store that adds a charge for the bag breaks the pattern, because zero apples would no longer cost zero.

Core idea. In direct variation y=kx, zero input gives zero output and the two quantities scale together by a fixed factor.


When to Use

Use direct variation when a problem says varies directly or directly proportional, or when the situation forces zero with zero and doubling one amount must double the other: wages at a fixed hourly rate, distance at a steady speed, cost at a fixed price per item. Find k=yx from one pair and write y=kx. With a starting fee or a head start, use y=mx+b; if one amount falls as the other rises with a fixed product, use inverse variation, y=kx.

Tip. Ask: When x=0 is y=0, and does doubling x double y?

How to Recognize It

Before you write y=kx, look at how the two amounts move together and whether any part of the total is fixed no matter what.

  1. Do the two amounts move in the same direction, so more hours means more pay?

    That is needed for direct variation with a positive k. If more of one means less of the other, like more painters and fewer days, check whether x×y stays fixed: that is inverse variation.

  2. Is part of the total charged or added whatever the amount, such as a $2 bag fee or a 5 km head start?

    Then the graph is a straight line that misses the origin, a general linear relationship y=mx+b, not direct variation, even if the rest scales nicely.

  3. Does the question ask for a missing value or the rule, rather than only the number k?

    Then find k from one known pair and use it: if y=21 when x=3, then k=7, and x=10 gives y=70. If only k is wanted, the constant of proportionality is the whole answer.

  4. Is y tied to x itself, rather than to x2 or another power?

    Plain direct variation uses x to the first power. A circle's area varies directly with the square of its radius, A=πr2, so doubling r makes A four times as big; treat r2 as the input.

Direct Variation compared with Inverse variation, General linear relationship, and Constant of proportionality

All three relationships link x and y through one fixed number, and the constant of proportionality is that number in direct variation. Ask how it is used: as the quotient yx, as the product xy, or as a slope with a starting value.

Direct Variation

Meaning
Use this when two quantities are proportional and the relationship passes through the origin with no starting offset.
Key test
When x=0 is y=0, and does doubling x double y?
Formula
y=kx(k≠0)
Example
Maria earns $45 for 3 hours of work. If pay varies directly with time, what does she earn for 7 hours?

Inverse variation

Meaning
As one quantity goes up the other goes down; product is constant.
Key test
Use when more of one means less of the other, like workers vs. time.
Formula
y=kx
Example
8 workers take half the time of 4

General linear relationship

Meaning
A straight line that may not pass through the origin.
Key test
Use when there is a nonzero starting value b.
Formula
y=mx+b
Example
$3 taxi fee plus $2/mile

Constant of proportionality

Meaning
The number k inside the variation, not the relationship itself.
Key test
Use when you specifically need that linking constant.
Formula
k=yx
Example
k=60 in d=60t

Formula & Notation

y=kx(k≠0)
y∝x  ⟺  ∃ k≠0:y=kx,  so (0,0) is always a solution

How to read it: 'y varies directly as x' or 'y is directly proportional to x'

Worked Examples

Example 1 — Pay per hour

Easy

Maria earns $45 for 3 hours of work. If pay varies directly with time, what does she earn for 7 hours?
Show the steps and the answer
  1. Find the constant: k=453=15.

    Pay varies directly with time, so pay divided by hours is the same for every job: $15 an hour.

  2. Write the rule P=15h.

    Zero hours pays $0 and each hour adds $15, which is exactly the form y=kx.

  3. Substitute h=7: P=15×7=105.

    The rule gives the pay for any number of hours.

  4. Check by scaling: 7 hours is 73 of 3 hours, and 73×45=105.

    Scaling the known pair gives the same answer, as it must in direct variation.

Answer: $105

Takeaway: In direct variation one pair gives k=yx, and y=kx then answers every other case.

Example 2 — Flat fee plus rate

Standard

A plumber charges $50 to show up plus $30 per hour, so 3 hours costs $140. Does pay vary directly with hours?
Show the steps and the answer
  1. Find the bill for 0 hours: $50.

    Direct variation needs zero hours to cost $0, and this bill starts at $50.

  2. Compare quotients: 1 hour costs $80, so 801=80; 3 hours cost $140, so 1403≈46.67.

    The quotient changes, so no single k links hours to cost.

  3. Test doubling: 2 hours cost 50+60=110 dollars, not 2×80=160.

    Doubling the time does not double the bill.

  4. Write the real rule: C=30h+50.

    It is linear with slope 30 and intercept 50, a line that misses the origin.

Answer: No, the $50 start breaks direct variation

Takeaway: A fixed starting charge rules out direct variation even when the graph is straight; check that zero gives zero.

Example 3 — Find the mistake: direct or inverse?

Application

y varies directly with x, and y=12 when x=4. Find y when x=8. Zoe writes: "xy=4×12=48, so y=48÷8=6." Find the mistake and correct it.
Show the steps and the answer
  1. Spot Zoe's move: she kept the product xy=48 fixed.

    A fixed product is the rule for inverse variation, where y falls as x rises.

  2. Use the direct-variation constant instead: k=yx=124=3.

    In direct variation the quotient, not the product, stays the same.

  3. Put x=8 into y=3x: y=3×8=24.

    Once k is known, the rule gives the output for any input.

  4. Check by doubling: x went from 4 to 8 and y from 12 to 24.

    Doubling x doubled y, as "varies directly" requires; Zoe's 6 halved it instead.

Answer: y=24, not 6.

Takeaway: Varies directly means a constant quotient yx; a constant product xy belongs to inverse variation.

Where You'll See It

  • The spring inside a kitchen scale

    A scale's spring stretches 2 mm for every 100 g placed on it, so stretch =0.02× mass in grams. A 750 g bag stretches it 0.02×750=15 mm. Because the stretch varies directly with mass, the dial can be marked in even steps.

  • Distance at a steady cycling speed

    A cyclist holding 18 km/h covers d=18t: 9 km in half an hour, 45 km in 212 hours. If she starts 5 km from home and measures from home, the rule becomes d=18t+5, which is no longer direct variation.

  • Ordering copies at a print shop

    A shop charges $0.12 per page with no set-up fee, so 250 pages cost 0.12×250=30 dollars and 500 pages cost $60. Doubling the order doubles the price: direct variation with k=0.12.

Common Mistakes

  1. The slip: Calling any straight line direct variation

    Instead: it must pass through the origin (b=0).

  2. The slip: Confusing direct with inverse variation

    Instead: direct keeps the quotient yx constant; inverse keeps the product xy constant.

  3. The slip: Forgetting to check k is the same for all pairs

    Instead: if yx drifts, it isn't direct variation.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. y varies directly with x, and y=24 when x=4. Find k and y when x=9.

    Hint: Find k=yx first.

  2. A car's distance varies directly with time. It goes 135 miles in 3 hours. How far does it go in 5 hours?

    Hint: Find the distance for 1 hour first.

  3. Does y=−2x show direct variation? Check x=0 and x=3.

    Hint: Does it pass through the origin, and is yx the same each time?

  4. The weight of a stack of identical books varies directly with the number of books. 8 books weigh 12 kg. How many books weigh 21 kg?

    Hint: Find the weight of one book.

  5. Doubling the number of identical pumps halves the time needed to empty a pool. Is this direct or inverse variation?

    Hint: When the pumps double, does the time double too?

  6. Sam says y=3x+4 is direct variation because it is a straight line with k=3. Correct him.

    Hint: What is y when x=0?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

If y varies directly with x, does x vary directly with y?

Yes. From y=kxy = kx you can divide both sides by kk to get x=1kyx = \frac{1}{k}y, so xx varies directly with yy with constant 1k\frac{1}{k}. If pay is $12 per hour, the hours worked are 112\frac{1}{12} of the pay: $60 means 5 hours. This only works because kk is not zero, which is why the definition rules out k=0k = 0.

Do real measurements ever fit y=kx exactly?

Rarely. Measured data has small errors, so the quotients yx\frac{y}{x} come out close but not identical, such as 2.98, 3.01 and 3.02. Scientists then say the data is consistent with direct variation and estimate kk as about 3, often by drawing the best line through the origin. If the quotients drift steadily up or down instead of scattering, the relationship is probably not direct variation.

Is a circle's circumference in direct variation with its diameter?

Yes, and the constant is famous: C=πdC = \pi d, so k=π≈3.14k = \pi \approx 3.14. Every circle, from a coin to a running track, has a circumference about 3.14 times its diameter. A wheel 70 cm across rolls about 220 cm in one full turn. People first estimated π\pi this way: measure around and across many round objects and divide.

Learning Path

Direct Variation

You are here

You need Proportional Relationships (a constant ratio between two amounts) and Linear Relationships (straight-line graphs with slope and intercept) first. Direct variation is the linear case with intercept 0, written y=kx. Next, Linear Functions handle lines with any intercept, and Inverse Variation studies the opposite pattern, y=kx, where a product rather than a quotient stays constant.

See Also