Allday Education

Direct Variation

Direct variation is the simplest relationship two quantities can have: yy is always the same multiple of xx. Its equation is y=kxy = kx, where kk is called the constant of variation. Double xx and yy doubles; triple xx and yy triples.

On a graph, direct variation is a line through the origin — when x=0x = 0, y=kx=0y = kx = 0, always. That through-the-origin test is the fastest way to recognize direct variation, and the constant kk is just the line's slope.

Finding kk

Since y=kxy = kx, dividing both sides by xx gives k=yxk = \dfrac{y}{x}. One pair of values is all you need: divide yy by xx and you have the constant.

In a table, direct variation shows itself as a constant ratio. Divide each yy by its xx — if every row gives the same number, the table is a direct variation and that number is kk. If the ratios differ, it is not direct variation, no matter how linear the table looks.

The table below is a direct variation: every y÷xy \div x gives the same constant, here 44.

xxyy
1144
2288
331212
552020

Writing the equation and making predictions

Once you know kk, write the equation y=kxy = kx and it answers every question about the relationship. Given a new xx, multiply by kk to predict yy. Given a new yy, divide by kk to recover xx.

This two-step pattern — find kk from one pair, then reuse it on another — is the whole skill. Every direct variation word problem is those two steps wearing different clothes.

Direct variation vs. other lines

Every direct variation is linear, but not every line is a direct variation. The line y=3x+2y = 3x + 2 has a constant slope, but it crosses the yy-axis at 22, not at the origin — so yy is not a constant multiple of xx. Only lines of the form y=kxy = kx, passing through (0,0)(0, 0), qualify.

Below, the solid line y=2xy = 2x is a direct variation — it runs straight through the origin — while the dashed line y=2x+2y = 2x + 2 has the same slope but crosses the yy-axis at 22, so it is not.

-4-3-2-11234-4-3-2-11234xy

Worked examples

Example 1: find kk and write the equation

yy varies directly with xx, and y=9y = 9 when x=6x = 6. Write the equation.

Find the constant of variationk=yx=96k = \dfrac{y}{x} = \dfrac{9}{6}
Reducek=32k = \dfrac{3}{2}
Write the equationy=32xy = \dfrac{3}{2}x

Answer: y=32xy = \dfrac{3}{2}x

Example 2: predict a new value

yy varies directly with xx. When x=20x = 20, y=8y = 8. Predict yy when x=35x = 35.

Find kkk=820=25k = \dfrac{8}{20} = \dfrac{2}{5}
Write the equationy=25xy = \dfrac{2}{5}x
Substitute x=35x = 35y=25(35)=14y = \dfrac{2}{5}(35) = 14

Answer: y=14y = 14

Example 3: find kk from a table

A table shows the pairs (2,6)(2, 6), (3,9)(3, 9), (4,12)(4, 12). Find the constant of variation.

Divide yy by xx in the first row62=3\dfrac{6}{2} = 3
Check the other rows93=3,124=3\dfrac{9}{3} = 3,\quad \dfrac{12}{4} = 3
Every ratio is the same

Answer: k=3k = 3

Try one yourself

Common questions

How do I know a relationship is a direct variation?

Check that yx\dfrac{y}{x} is the same for every pair, or that the graph is a straight line through the origin. Both tests say the same thing: yy is a constant multiple of xx.

Is the constant of variation the same as slope?

Yes. Writing y=kxy = kx is the slope-intercept form y=mx+by = mx + b with m=km = k and b=0b = 0. The constant of variation is the slope of the line.

Can kk be negative or a fraction?

Both. A negative kk means yy decreases as xx increases — the line falls through the origin. A fractional kk like 32\dfrac{3}{2} just means yy is one and a half times xx.

Why isn't y=3x+2y = 3x + 2 a direct variation?

Because of the +2+\,2. At x=0x = 0 it gives y=2y = 2, so the line misses the origin and yx\dfrac{y}{x} changes from point to point. Direct variation needs y=kxy = kx exactly.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1