Student finding the constant of variation k equals 6 for direct variation, then working out y equals 66 when x equals 11.

Direct and Inverse Variation

“y varies directly as x, and y equals 42 when x equals 7. Find y when x equals 11.” Find k first, or so it seems. Divide x by y: 7 divided by 42 is 1/6. The equation is y = x/6. For x equals 11, y is 1.83. But x went up from 7 to 11, so y should go up from 42, not crash to 1.83. That cannot be right.

That is the whole trap of variation. The equation is easy. Finding k the right way round is the actual skill. I always ask one question before I touch a calculator. Which model is it, and how do I find k? Find k first. That is the whole post.

Direct or inverse? The equations

Direct variation means two quantities grow together in a fixed ratio, and inverse variation means one grows while the other shrinks so their product stays fixed. In symbols, direct variation is y = kx and inverse variation is y = k/x, where k is the constant of variation. The earlier guide on this site, Direct vs Inverse Proportion Explained, taught which way two quantities move together and how to check whether two ratios are equal. This post goes one step further and teaches the equations. Once you can write the equation for a situation, you can find any missing value in it. The skill has three moves: name the model, find k from one known pair, and use the equation for a new value. The letter k is the constant of variation. It is the one number that stays the same while x and y change, and it is different in every problem. In direct variation, k is the value of y when x equals 1. In inverse variation, k is the product of any matching pair of x and y. Finding k is the whole job. Once k is known, the equation is finished, and the rest is arithmetic. Find k first.

Which model is it? Read the wording

Before any numbers go into an equation, read the wording and decide which model fits. Direct variation shows up in phrases like “varies directly as”, “is proportional to”, and “costs the same per item”. The test is simple: if x doubles, does y double too? The cost of posters is a good example. Twice as many posters cost twice as much, because each poster adds the same price. Distance at a steady speed works the same way. Twice the time at 55 miles per hour covers twice the distance. Inverse variation shows up in phrases like “varies inversely as” and “takes less time with more workers”. The test is the opposite: if x doubles, does y get cut in half? The time to paint a hall is a good example. Twice as many painters finish in half the time, because the total work stays the same. Speed and time for a fixed distance work the same way. Drive twice as fast over 120 miles and the trip takes half as long.

Direct first: y = 42 when x = 7

Here is the first worked example, a direct one. Suppose y varies directly as x, and y equals 42 when x equals 7. Write the general equation first: y = kx. Then put in the pair you know: 42 = k times 7. Divide both sides by 7, and k equals 6. The equation is y = 6x. When x equals 11, y equals 6 times 11, which is 66. Check by putting the answer back: 66 divided by 11 equals 6, which is k, so the answer fits. Try those same numbers on the Proportion Calculator in Solve mode and see whether you get 66. The calculator checks the arithmetic, and the equation you wrote is what makes the setup right. Find k first.

Try it. y varies directly as x, and y equals 24 when x equals 4. Find k, write the equation, and find y when x equals 9. k is 24 divided by 4, which is 6, so the equation is y = 6x. When x equals 9, y equals 6 times 9, which is 54. Check: 54 divided by 9 equals 6.

Inverse next: y = 18 when x = 5

Now the same three moves for an inverse problem. Suppose y varies inversely as x, and y equals 18 when x equals 5. Write the general equation first: y = k/x. Then put in the pair you know: 18 = k/5. Multiply both sides by 5, and k equals 90. The equation is y = 90/x. Now put it to work on a new value. When x equals 9, y equals 90 divided by 9, which is 10. Check by putting the answer back: 9 times 10 equals 90, which is k, so the answer fits. Notice the difference in how k was found. For direct variation, k came from dividing y by x. For inverse variation, k came from multiplying x by y. Mixing those two up is the most common error in this topic, and the trap section below shows what it costs. If you want a second voice on the same idea, the OpenStax Prealgebra textbook explains proportions and their uses in plain English in section 6.5, Solve Proportions and their Applications. It is a good place to check your understanding after working through the examples here.

Try it. y varies inversely as x, and y equals 12 when x equals 8. Find k, write the equation, and find y when x equals 12. k is 8 times 12, which is 96, so the equation is y = 96/x. When x equals 12, y equals 96 divided by 12, which is 8. Check: 12 times 8 equals 96.

What does the table say?

A table of values can name the model for you, if you run the right test on it. There are two tests, and only one of them will stay the same across every row. First, divide y by x for every row. If the answer is the same each time, the table shows direct variation, and that steady answer is k. Second, multiply x by y for every row. If the product is the same each time, the table shows inverse variation, and that steady product is k. Run both tests on the same table, because the test that fails is just as useful as the test that passes. A failing test rules a model out, and ruling one out is half the answer.

Tablex and y pairsy divided by xx times yVerdict
Direct table3 and 21, 6 and 42, 9 and 637 each time63, 252, 567Direct, y = 7x
Inverse table2 and 30, 4 and 15, 5 and 1215, 3.75, 2.460 each timeInverse, y = 60/x

The test that stays the same names the model. In the direct table, y divided by x is 7 in every row, while the products jump around. In the inverse table, x times y is 60 in every row, while the ratios jump around. One steady column is all it takes, and the other column changing is expected, not a mistake. Here are the numbers behind the direct row, worked out so you can check them. The x values are 3, 6, and 9, and the y values are 21, 42, and 63. Divide y by x for each row: 21 divided by 3 equals 7, 42 divided by 6 equals 7, and 63 divided by 9 equals 7. The ratio is 7 every time, so this is direct variation with k equals 7, and the equation is y = 7x. The product test fails here, which is the point: 3 times 21 equals 63, but 6 times 42 equals 252, so the products do not match and the table is not inverse.

Here are the numbers behind the inverse row. The x values are 2, 4, and 5, and the y values are 30, 15, and 12. Multiply x by y for each row: 2 times 30 equals 60, 4 times 15 equals 60, and 5 times 12 equals 60. The product is 60 every time, so this is inverse variation with k equals 60, and the equation is y = 60/x. The ratio test fails here: 30 divided by 2 equals 15, but 15 divided by 4 equals 3.75, so the ratios do not match and the table is not direct. Notice how the two tables look alike at a glance. Both have three rows and numbers that change, and only the steady column tells them apart. That is why the test is worth running in full instead of guessing from the shape of the numbers. The two models also look different on a graph, and picturing that difference helps the idea stick. A direct variation graph is a straight line through the origin, the point (0, 0), and k is the slope of that line. An inverse variation graph is a curve that never touches either axis. One more thing about the origin: the point (0, 0) cannot fix k in direct variation. The equation y = kx gives 0 = k times 0 for every value of k, so that point fits all of them and tells you nothing. You need a pair where x is not zero to find k.

Try it. A table has x and y pairs 2 and 10, 5 and 25, 8 and 40. Which model is it? Divide y by x: 10 divided by 2 is 5, 25 divided by 5 is 5, and 40 divided by 8 is 5. The ratio is 5 every time, so this is direct variation with k equals 5, and the equation is y = 5x. The product test fails: 2 times 10 is 20, but 5 times 25 is 125.

Two word problems, two models

Word problems test whether you can choose the model from the wording, so this section puts one direct problem and one inverse problem side by side. Read each one and name the model before you reach for a number. Direct word problem, printing cost. The cost of posters varies directly with the number of posters. Suppose 9 posters cost 27 dollars. Name the model first: more posters cost more money, and each poster adds the same price, so this is direct variation. Find k: 27 divided by 9 equals 3 dollars per poster. The equation is cost equals 3 times the number of posters. Now the question: what do 20 posters cost? Multiply 3 by 20, which is 60 dollars. Check: 60 divided by 20 equals 3, which is the price per poster, so the answer fits. Find k first.

Inverse word problem, painters. The time to paint a hall varies inversely with the number of painters. Suppose 5 painters take 12 days. Name the model first: more painters means fewer days, and the total work stays the same, so this is inverse variation. Find k: 5 times 12 equals 60 painter days. The equation is time equals 60 divided by the number of painters. Now the question: how long would 10 painters take? Divide 60 by 10, which is 6 days. Check: 10 times 6 equals 60, which is k, so the answer fits. Word problems like these are covered in more depth in Proportion Word Problems: Recipes, Maps and Money, which teaches the label first setup that keeps the two sides of a proportion in the right order. Try the painter numbers on the Proportion Calculator as a check. If 5 painters take 12 days, the calculator can confirm that 10 painters take 6 days, but only the equation tells you why.

Try it. Direct: 6 posters cost $18. What do 15 posters cost? k is 18 divided by 6, which is 3 dollars per poster, so 15 posters cost 3 times 15, which is $45. Check: 45 divided by 15 equals 3. Inverse: 4 painters take 15 days to paint a hall. How long would 12 painters take? k is 4 times 15, which is 60 painter days, so 12 painters take 60 divided by 12, which is 5 days. Check: 12 times 5 equals 60.

Where the reciprocal trap hides

The most common mistake in variation problems is also the quietest one, because the wrong answer looks like a sensible number. It comes from dividing in the wrong order when finding k. For direct variation, k is y divided by x. Divide the other way, x divided by y, and you get the reciprocal of the true k, and every answer after that is wrong. Take the first example in this guide, where y equals 42 when x equals 7 and the true k is 6. Divide the wrong way and you get 7 divided by 42, which is 1/6. Use that wrong k in the equation and you get y equals x divided by 6. For x equals 11, that gives 1.83, not 66. That was the mistake at the top of this page. The habit that prevents it is simple: for direct variation, always put y on top and x underneath when finding k. Here is a trick I say out loud, every time. “y over x for direct, x times y for inverse.” Say the words as you write it, and the order stays right.

The same care matters when a question asks for the value of an unknown letter in a proportion. Two recent examples follow the pattern. First, find n in the proportion n/9 = 8/12. Cross multiply: 12n equals 72, so n equals 6. Check by simplifying both sides: 6/9 simplifies to 2/3, and 8/12 simplifies to 2/3, so the two sides match. The steps for cross multiplication are explained in full in Cross Multiplication Explained. Second, find p in the proportion p/15 = 4/5. Cross multiply: 5p equals 60, so p equals 12. Check: 12/15 simplifies to 4/5, so the two sides match again. In both cases the numbers used here are clean pairs chosen for the pattern, because the search queries that raised them did not give pairs that formed a true proportion as written.

Try two on your own

First problem. Suppose y varies directly as x, and y equals 35 when x equals 5. Find k, write the equation, and then find y when x equals 12. The answer: k equals 35 divided by 5, which is 7, so the equation is y = 7x. When x equals 12, y equals 7 times 12, which is 84. Check: 84 divided by 12 equals 7, which is k. Second problem. Suppose y varies inversely as x, and y equals 14 when x equals 6. Work out k, write the equation, and then find y when x equals 12. The answer: k equals 6 times 14, which is 84, so the equation is y = 84/x. When x equals 12, y equals 84 divided by 12, which is 7. Check: 12 times 7 equals 84, which is k.

Questions students ask next

What is direct variation in simple words? One quantity changes in the same direction as the other, and the ratio stays fixed. It follows y equals kx, where k is the constant of variation. If x doubles, y doubles too.

What is inverse variation in simple words? One quantity goes up while the other goes down, and the product stays fixed. It follows y equals k divided by x. If x doubles, y is cut in half.

How do you find k in a variation problem? Write the general equation first, direct or inverse. Then put in the one pair of values you know and solve for k. For direct variation divide y by x. For inverse variation multiply x by y.

How can a table tell you which variation it is? Divide y by x for every row. If the answer is the same each time, it is direct variation and that answer is k. If instead x times y is the same each time, it is inverse variation and that product is k.

Why does (0, 0) not fix k in direct variation? Because y equals kx gives 0 equals k times 0 for every value of k, so that point fits all of them. You need a pair where x is not zero to find k.

Before your next variation problem

Write the equation before touching any numbers. Name the model from the wording, find k from the one pair you know, and only then use the equation for the value the question asks for. Then check the answer by putting it back into the equation and seeing whether k comes out the same. That check takes ten seconds and catches the flipped division, the wrong model, and the arithmetic slip all at once. When you are ready, take a problem from your own homework and run it through the same three moves on the Proportion Calculator.

Scroll to Top