Skip to content

Use Direct and Inverse Variation

By the end of this section, you will be able to: solve direct variation problems, and solve inverse variation problems.

When two quantities are related by a proportion, we say they are proportional to each other. Another way to express this relation is to talk about the variation of the two quantities. We will discuss direct variation and inverse variation in this section.

Solve direct variation problems

Lindsay gets paid $15 per hour at her job. If we let ss be her salary and hh be the number of hours she has worked, we could model this situation with the equation

s=15hs = 15h

Lindsay’s salary is the product of a constant, 1515, and the number of hours she works. We say that Lindsay’s salary varies directly with the number of hours she works. Two variables vary directly if one is the product of a constant and the other.

Direct variation. For any two variables xx and yy, yy varies directly with xx if

y=kx, where k0.y = kx, \text{ where } k \neq 0.

The constant kk is called the constant of variation.

In applications using direct variation, generally we will know values of one pair of the variables and will be asked to find the equation that relates xx and yy. Then we can use that equation to find values of yy for other values of xx.

Example. If yy varies directly with xx and y=20y = 20 when x=8x = 8, find the equation that relates xx and yy.

Write the formula for direct variation.y=kxSubstitute the given values for the variables.20=k8Solve for the constant of variation.208=k2.5=kWrite the equation with the value we found for k.y=2.5x \begin{array}{lrcl} \text{Write the formula for direct variation.} & y &=& kx \\[4pt] \text{Substitute the given values for the variables.} & 20 &=& k \cdot 8 \\[4pt] \text{Solve for the constant of variation.} & \tfrac{20}{8} &=& k \\[4pt] & 2.5 &=& k \\[4pt] \text{Write the equation with the value we found for } k. & y &=& 2.5x \end{array}

Solve direct variation problems.

  1. Write the formula for direct variation.
  2. Substitute the given values for the variables.
  3. Solve for the constant of variation.
  4. Write the equation that relates xx and yy.

If yy varies directly with xx and y=3y = 3 when x=10x = 10, find the constant of variation kk. (Enter its value.)

Now we’ll solve a few applications of direct variation.

Example. When Raoul runs on the treadmill at the gym, the number of calories, cc, he burns varies directly with the number of minutes, mm, he uses the treadmill. He burned 315315 calories when he used the treadmill for 1818 minutes. (a) Write the equation that relates cc and mm. (b) How many calories would he burn if he ran on the treadmill for 2525 minutes?

(a) The number of calories varies directly with the number of minutes, and c=315c = 315 when m=18m = 18. Using c=kmc = km:

Substitute the given values.315=k18Solve for the constant of variation.31518=k17.5=kWrite the equation that relates c and m.c=17.5m \begin{array}{lrcl} \text{Substitute the given values.} & 315 &=& k \cdot 18 \\[4pt] \text{Solve for the constant of variation.} & \tfrac{315}{18} &=& k \\[4pt] & 17.5 &=& k \\[4pt] \text{Write the equation that relates } c \text{ and } m. & c &=& 17.5m \end{array}

(b) Find cc when m=25m = 25:

c=17.5(25)=437.5c = 17.5(25) = 437.5

Raoul would burn 437.5437.5 calories if he used the treadmill for 2525 minutes.

In the previous example, the variables cc and mm were named in the problem. Usually that is not the case. We will have to name the variables in the next example as part of the solution, just like we do in most applied problems.

Example. The number of gallons of gas Eunice’s car uses varies directly with the number of miles she drives. Last week she drove 469.8469.8 miles and used 14.514.5 gallons of gas. (a) Write the equation that relates the number of gallons of gas used to the number of miles driven. (b) How many gallons of gas would Eunice’s car use if she drove 10001000 miles?

(a) Let gg be the number of gallons of gas and mm be the number of miles driven. Using g=kmg = km:

Substitute the given values.14.5=k(469.8)Solve for k, rounding to the nearest thousandth.14.5469.8=k0.031=kWrite the equation that relates g and m.g=0.031m \begin{array}{lrcl} \text{Substitute the given values.} & 14.5 &=& k(469.8) \\[4pt] \text{Solve for } k \text{, rounding to the nearest thousandth.} & \tfrac{14.5}{469.8} &=& k \\[4pt] & 0.031 &=& k \\[4pt] \text{Write the equation that relates } g \text{ and } m. & g &=& 0.031m \end{array}

(b) Find gg when m=1000m = 1000:

g=0.031(1000)=31g = 0.031(1000) = 31

Eunice’s car would use 3131 gallons of gas if she drove 10001000 miles.

In some situations, one variable varies directly with the square of the other variable. When that happens, the equation of direct variation is y=kx2y = kx^2. We solve these applications just as we did the previous ones, by substituting the given values into the equation to solve for kk.

Example. The maximum load a beam will support varies directly with the square of the diagonal of the beam’s cross-section. A beam with diagonal 44'' will support a maximum load of 7575 pounds. (a) Write the equation that relates the maximum load to the cross-section. (b) What is the maximum load that can be supported by a beam with diagonal 88''?

(a) Let LL be the maximum load and cc be the diagonal of the cross-section. Using L=kc2L = kc^2:

Substitute the given values.75=k42Solve for the constant of variation.7516=k4.6875=kWrite the equation that relates L and c.L=4.6875c2 \begin{array}{lrcl} \text{Substitute the given values.} & 75 &=& k \cdot 4^2 \\[4pt] \text{Solve for the constant of variation.} & \tfrac{75}{16} &=& k \\[4pt] & 4.6875 &=& k \\[4pt] \text{Write the equation that relates } L \text{ and } c. & L &=& 4.6875c^2 \end{array}

(b) Find LL when c=8c = 8:

L=4.6875(8)2=300L = 4.6875(8)^2 = 300

A beam with diagonal 88'' could support a maximum load of 300300 pounds.

Solve inverse variation problems

Many applications involve two variables that vary inversely. As one variable increases, the other decreases. The equation that relates them is y=kxy = \tfrac{k}{x}.

Inverse variation. For any two variables xx and yy, yy varies inversely with xx if

y=kx, where k0.y = \frac{k}{x}, \text{ where } k \neq 0.

The constant kk is called the constant of variation.

The word “inverse” in inverse variation refers to the multiplicative inverse. The multiplicative inverse of xx is 1x\tfrac{1}{x}.

We solve inverse variation problems in the same way we solved direct variation problems. Only the general form of the equation has changed.

Solve inverse variation problems.

  1. Write the formula for inverse variation.
  2. Substitute the given values for the variables.
  3. Solve for the constant of variation.
  4. Write the equation that relates xx and yy.

Example. If yy varies inversely with xx and y=20y = 20 when x=8x = 8, find the equation that relates xx and yy.

Write the formula for inverse variation.y=kxSubstitute the given values.20=k8Solve for the constant of variation.8(20)=8(k8)160=kWrite the equation that relates x and y.y=160x \begin{array}{lrcl} \text{Write the formula for inverse variation.} & y &=& \tfrac{k}{x} \\[4pt] \text{Substitute the given values.} & 20 &=& \tfrac{k}{8} \\[4pt] \text{Solve for the constant of variation.} & 8(20) &=& 8\left(\tfrac{k}{8}\right) \\[4pt] & 160 &=& k \\[4pt] \text{Write the equation that relates } x \text{ and } y. & y &=& \tfrac{160}{x} \end{array}

If yy varies inversely with xx and y=8y = 8 when x=2x = 2, find the constant of variation kk. (Enter its value.)

Example. The fuel consumption (mpg) of a car varies inversely with its weight. A car that weighs 31003100 pounds gets 2626 mpg on the highway. (a) Write the equation of variation. (b) What would be the fuel consumption of a car that weighs 40304030 pounds?

(a) Let ff be the fuel consumption and ww be the weight. Using f=kwf = \tfrac{k}{w}:

Substitute the given values.26=k3100Solve for the constant of variation.3100(26)=3100(k3100)80,600=kWrite the equation that relates f and w.f=80,600w \begin{array}{lrcl} \text{Substitute the given values.} & 26 &=& \tfrac{k}{3100} \\[4pt] \text{Solve for the constant of variation.} & 3100(26) &=& 3100\left(\tfrac{k}{3100}\right) \\[4pt] & 80{,}600 &=& k \\[4pt] \text{Write the equation that relates } f \text{ and } w. & f &=& \tfrac{80{,}600}{w} \end{array}

(b) Find ff when w=4030w = 4030:

f=80,6004030=20f = \frac{80{,}600}{4030} = 20

A car that weighs 40304030 pounds would have fuel consumption of 2020 mpg.

Example. The frequency of a guitar string varies inversely with its length. A 2626'' long string has a frequency of 440440 vibrations per second. (a) Write the equation of variation. (b) How many vibrations per second will there be if the string’s length is reduced to 2020'' by putting a finger on a fret?

(a) Let ff be the frequency and LL be the length. Using f=kLf = \tfrac{k}{L}:

Substitute the given values.440=k26Solve for the constant of variation.26(440)=26(k26)11,440=kWrite the equation that relates f and L.f=11,440L \begin{array}{lrcl} \text{Substitute the given values.} & 440 &=& \tfrac{k}{26} \\[4pt] \text{Solve for the constant of variation.} & 26(440) &=& 26\left(\tfrac{k}{26}\right) \\[4pt] & 11{,}440 &=& k \\[4pt] \text{Write the equation that relates } f \text{ and } L. & f &=& \tfrac{11{,}440}{L} \end{array}

(b) Find ff when L=20L = 20:

f=11,44020=572f = \frac{11{,}440}{20} = 572

A 2020'' guitar string has frequency 572572 vibrations per second.

Key terms

direct variation — a relationship in which y=kxy = kx: one variable is a constant multiple of the other, so as xx grows, yy grows in proportion. inverse variation — a relationship in which y=kxy = \tfrac{k}{x}: as one variable increases, the other decreases. constant of variation — the nonzero constant kk in a variation equation, found by substituting a known pair of values and solving.


This section is adapted from Elementary Algebra 2e, Section 8.9: Use Direct and Inverse Variation by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: condensed the worked examples into aligned step tables and prose, recast the “How To” procedures as callouts; omitted the Be Prepared quiz, Self Check checklist, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.