3.1 Variation
Two types of functions are widely used in modeling and are known by special names: direct variation and inverse variation.
Direct Variation
Two variables are directly proportional (or just proportional) if the ratios of their corresponding values are always equal. Consider the functions described in the tables below. The first table shows the price of gasoline as a function of the number of gallons purchased.
| Gallons of gasoline | Total price | Price/ Gallons |
|---|---|---|
| Years | Population | People/Years |
|---|---|---|
The ratio , or price per gallon, is the same for each pair of values in the first table. This agrees with everyday experience: The price per gallon of gasoline is the same no matter how many gallons you buy. Thus, the total price of a gasoline purchase is directly proportional to the number of gallons purchased.
The second table shows the population of a small town as a function of the town’s age. The ratio gives the average rate of growth of the population in people per year. You can see that this ratio is not constant; in fact, it increases as time goes on. Thus, the population of the town is not proportional to its age.
When does a table represent direct variation?
_____
A table can represent direct variation if the ratio output/input is constant
When does a table represent direct variation?
- If it has a constant slope.
- If it includes the point .
- If the ratio output/input is constant.
- If each output is double the previous one.
The graphs of these two functions are shown below.
We see that the price, , of a fill-up is a linear function of the number of gallons, , purchased. This should not be surprising if we write an equation relating the variables and . Because the ratio of their values is constant, we can write
where is a constant. In this example, the constant is , the price of gasoline per gallon. Solving for in terms of , we have
which we recognize as the equation of a line through the origin.
In general, we make the following definition.
Direct variation defines a linear function of the form
The positive constant in the equation is just the slope of the graph, so it tells us how rapidly the graph increases. Compared to the standard form for a linear function, , the constant term, , is zero, so the graph of a direct variation passes through the origin.
Which of the graphs above could represent direct variation? Explain why.
_____
(b): The graph is a straight line through the origin.
Which of the graphs above could represent direct variation? Explain why.
(b): The graph is a straight line through the origin.
If \(y\) varies directly with \(x\), what does the constant of variation tell us?
_____
If \(y\) varies directly with \(x\), the constant of variation is the slope of the graph
If varies directly with , what does the constant of variation tell us?
- The -intercept of the graph.
- The slope of the graph.
- What happens to when you double .
- The size of the input values.
The Scaling Property of Direct Variation
The fact that the constant term is zero in a direct variation is significant: If we double the value of , then the value of will double also. In fact, increasing by any factor causes to increase by the same factor. For example, in the table of gasoline prices, doubling the number of gallons of gas purchased, say, from gallons to gallons or from gallons to gallons, causes the total price to double also.
Or, consider investing $ for one year at 7% simple interest, as in Exampleb. The interest earned is
If we increase the investment by a factor of to , or $, the interest will be
You can check that multiplying the original interest of $ by a factor of does give the same figure for the new interest, $.
What does the scaling property of direct variation mean?
_____
If we multiply the input by , the output will also be multiplied by .
What does the scaling property of direct variation mean?
- The output is found by scaling the input.
- The output can be regarded as a scale.
- The constant of variation can be multiplied by any factor.
- If we multiply the input by , the output will also be multiplied by .
Which tables could represent direct variation? Explain why. (Hint: What happens to if you multiply by a constant?)
_____
(a): If we multiply by , is also multiplied by .
Which table could represent direct variation? Explain why. (Hint: What happens to if you multiply by a constant?)
Table (a): If we multiply by , is also multiplied by .
Finding a Formula for Direct Variation
If we know any one pair of values for the variables in a direct variation, we can find the constant of variation. We can then use the constant to write a formula for one of the variables as a function of the other.
Is the function an example of direct variation?
_____
No, the graph does not pass through the origin.
Is the function an example of direct variation?
- Yes, it is linear.
- Yes, the scale factor is 0.3.
- No, the graph does not pass through the origin.
- No, its slope is less than 1.
The volume of a bag of rice, in cups, is directly proportional to the weight of the bag. A 2-pound bag contains 3.5 cups of rice.
- Express the volume, , of a bag of rice as a function of its weight, .
__________ - How many cups of rice are in a -pound bag?
_____
The volume of a bag of rice, in cups, is directly proportional to the weight of the bag. A 2-pound bag contains 3.5 cups of rice.
- Express the volume, , of a bag of rice as a function of its weight, .
- How many cups of rice are in a -pound bag?
- cups
Direct Variation with a Power of
We can generalize the notion of direct variation to include situations in which is proportional to a power of , instead of itself.
The volume of a sphere varies directly with the cube of its radius. A balloon of radius 5 centimeters has volume cubic centimeters, or about 524 cubic centimeters. Find a formula for the volume, , of a sphere as a function of its radius, .
__________
Use "pi" for .
, and solving for we find that , so
The volume of a sphere varies directly with the cube of its radius. A balloon of radius 5 centimeters has volume cubic centimeters, or about 524 cubic centimeters. Find a formula for the volume, , of a sphere as a function of its radius, .
, and solving for we find that , so .
In any example of direct variation, as the input variable increases through positive values, the output variable increases also. Thus, a direct variation is an increasing function, as we can see when we consider the graphs of some typical direct variations shown below.
Even without an equation, we can check whether a table of data describes direct variation or merely an increasing function. If varies directly with , then , or, equivalently,.
How can you test whether a table for represents direct variation with a power?
_____
Check whether is a constant.
How can you test whether a table for represents direct variation with a power?
- Plot the points.
- Check whether is a constant.
- Check whether is a constant.
- Check whether is a constant.
Does vary directly with the cube of ? Explain your decision.
_____
Yes, is constant.
Does vary directly with the cube of ? Explain your decision.
Yes, is constant.
Scaling
Recall that if varies directly with , then doubling causes to double also. But:
- Is the area of a -inch circular pizza double the area of an -inch pizza?
- If you double the dimensions of a model of a skyscraper, will its weight double also?
You probably know that the answer to both of these questions is No. The area of a circle is proportional to the square of its radius, and the volume (and hence the weight) of an object is proportional to the cube of its linear dimension. Variation with a power of produces a different scaling effect.
Use the formula for the area of a circle to show that doubling the diameter of a pizza quadruples its area.
The formula for the area of a circle of radius is _____
Enter "pi" to get .
If we double the diameter, the new radius is _____
Substitute this expression into the area formula to get the area of the new circle _____
So is _____ times the original area.
Doubling the diameter means doubling the radius.
Use the formula for the area of a circle to show that doubling the diameter of a pizza quadruples its area.
Doubling the diameter means doubling the radius.
In general, if varies directly with a power of , that is, if , then doubling the value of causes to increase by a factor of . In fact, if we multiply by any positive number , then
so the value of is multiplied by .
We will call the scaling exponent, and you will often see variation described in terms of scaling. For example, we might say that "the area of a circle scales as the square of its radius." (In many applications, the power is called the scale factor, even though it is not a factor but an exponent.)
Inverse Variation
How long does it take to travel a distance of miles? The answer depends on your average speed. If you are on a bicycle trip, your average speed might be miles per hour. In that case, your traveling time will be
(Of course, you will have to add time for rest stops; the hours are just your travel time.)
If you are driving your car, you might average miles per hour. Your travel time is then
If you take a commercial air flight, the plane’s speed might be miles per hour, and the flight time would be
You can see that for higher average speeds, the travel time is shorter. In other words, the time needed for a -mile journey is a decreasing function of average speed. In fact, a formula for the function is
This function is an example of inverse variation. A table of values and a graph of the function are shown below.
To decide whether two variables truly vary inversely, we can check whether their product is constant. For instance, in the preceding travel-time example, we see from the table that .
How can you test whether a table for represents inverse variation?
_____
Check whether is a constant.
How can you test whether a table for represents inverse variation?
- Check whether is a constant.
- Check whether the function is decreasing.
- Check whether is the reciprocal of .
- Check whether is a constant.
We can also define inverse variation with a power of the variable.
We may also say that is inversely proportional to .
The amount of force, , (in pounds) needed to loosen a rusty bolt with a wrench is inversely proportional to the length, , of the wrench. Thus,
If you increase the length of the wrench by 50% so that the new length is , what happens to the amount of force required to loosen the bolt?
_____
The amount of force, , (in pounds) needed to loosen a rusty bolt with a wrench is inversely proportional to the length, , of the wrench. Thus,
If you increase the length of the wrench by 50% so that the new length is , what happens to the amount of force required to loosen the bolt?
In Example and Practice 7, as the independent variable increases through positive values, the dependent variable decreases. An inverse variation is an example of a decreasing function. The graphs of some typical inverse variations are shown below. Notice that both graphs have a vertical asymptote at .
In Example and Practice 7, as the independent variable increases through positive values, the dependent variable decreases. An inverse variation is an example of a decreasing function. The graphs of some typical inverse variations are shown below. Notice that both graphs have a vertical asymptote at .
Finding a Formula for Inverse Variation
If we know that two variables vary inversely and we can find one pair of corresponding values for the variables, we can determine , the constant of variation.
Delbert's officemates want to buy a $120 gold watch for a colleague who is retiring. The cost per person is inversely proportional to the number of people who contribute.
- Express the cost per person, , as a function of the number of people, , who contribute.
__________ - Sketch the function on the domain .
The graph of cost per person is
_____
- A graph is also shown below.
- or
Delbert's officemates want to buy a $120 gold watch for a colleague who is retiring. The cost per person is inversely proportional to the number of people who contribute.
- Express the cost per person, , as a function of the number of people, , who contribute.
- Sketch the function on the domain .
What distinguishes inverse variation from other decreasing functions? Mention properties of the graph and the formula.
_____
What distinguishes inverse variation from other decreasing functions? Mention properties of the graph and the formula.
Section Summary
Vocabulary
Look up the definitions of new terms in the Glossary.
- Direct variation
- Directly proportional
- Constant of variation
- Scaling exponent
- Inverse variation
- Inversely proportional
CONCEPTS
- The graph of a direct variation passes through the origin. The graph of an inverse variation has a vertical asymptote at the origin.
- If , we say that scales as .
STUDY QUESTIONS
- Describe the graph of if varies directly with .
- What is true about the ratio of two variables if they are directly proportional?
- If is inversely proportional to , then the graph of versus is a transformation of which basic graph?
- If varies directly with a power of , write a formula for as a function of .
- If varies inversely with a power of , write a formula for as a function of .
- If , what happens to if you double ?
- State a test to determine whether varies inversely with .
- If , and we double the value of , what happens to the value of ?
SKILLS
Practice each skill in the Homework problems listed.
- Find the constant of variation: #1–4, 13–26
- Write a formula for direct or inverse variation: #1–4, 13–26, 35–46
- Recognize direct and inverse variation from a table of values: #27–34, 39–42
- Recognize direct or inverse variation from a graph: #9–12, 35–38
- Use scaling in direct and inverse variation: #13–20, 43–46
Homework 3.1
Delbert's credit card statement lists three purchases he made while on a business trip in the Midwest. His company's accountant would like to know the sales tax rate on the purchases.
- Compute the ratio of the tax to the price of each item. Is the tax proportional to the price? What is the tax rate?
- Express the tax, , as a function of the price, , of the item.
- Sketch a graph of the function by hand, and label the scales on the axes.
Yes;
At constant acceleration from rest, the distance traveled by a race car is proportional to the square of the time elapsed. The highest recorded road-tested acceleration in 2023 was to miles per hour in seconds, which produces the following data.
- Compute the ratios of the distance traveled to the square of the time elapsed. What was the acceleration, in feet per second squared?
- Express the distance traveled, , as a function of time in seconds, .
- Sketch a graph of the function by hand, and label the scales on the axes.
The marketing department for a paper company is testing wrapping paper rolls in various dimensions to see which shape consumers prefer. All the rolls contain the same amount of wrapping paper.
- Compute the product of the length and width for each roll of wrapping paper. What is the constant of inverse proportionality?
- Express the length, , of the paper as a function of the width, , of the roll.
- Sketch a graph of the function by hand, and label the scales on the axes.
square feet
The force of gravity on a -kilogram mass is inversely proportional to the square of the object's distance from the center of the Earth. The table shows the force on the object, in newtons, at distances that are multiples of the Earth's radius.
- Compute the products of the force and the square of the distance. What is the constant of inverse proportionality?
- Express the gravitational force, on a -kilogram mass as a function of its distance, from the Earth's center, measured in Earth radii.
- Sketch a graph of the function by hand, and label the scales on the axes.
- How can you tell from a table of values whether varies directly with ?
- How can you tell from a table of values whether varies inversely with ?
- The ratio is a constant.
- The product is a constant.
- How can you tell from a table of values whether varies directly with a power of ?
- How can you tell from a table of values whether varies inversely with a power of ?
The length of a rectangle is inches, and its width is inches. Suppose we increase the length of the rectangle while holding the width constant.
- Fill in the table.
Length Width Perimeter Area - Does the perimeter vary directly with the length?
- Write a formula for the perimeter of the rectangle in terms of its length.
- Does the area vary directly with the length?
- Write a formula for the area of the rectangle in terms of its length.
Length Width Perimeter Area - No
- Yes
The base of an isosceles triangle is centimeters, and the equal sides have length centimeters. Suppose we increase the base of the triangle while holding the sides constant.
- Fill in the table.
Base Sides Height Perimeter Area - Does the perimeter vary directly with the base?
- Write a formula for the perimeter of the triangle in terms of its base.
- Write a formula for the area of the triangle in terms of its base.
- Does the area vary directly with the base?
Which of the graphs could describe direct variation? Explain your answer.
(b) could be direct variation with a power of .
Which of the graphs could describe direct variation? Explain your answer.
Which of the graphs could describe inverse variation? Explain your answer.
(c)
Which of the graphs could describe inverse variation? Explain your answer.
The weight of an object on the Moon varies directly with its weight on Earth. A person who weighs pounds on Earth would weigh only pounds on the Moon.
- Find a function that gives the weight of an object on the Moon in terms of its weight on Earth. Complete the table and graph your function in a suitable window.
- How much would a person weigh on the Moon if she weighs pounds on Earth?
- A piece of rock weighs pounds on the Moon. How much will it weigh back on Earth?
- If you double the weight of an object on Earth, what will happen to its weight on the Moon?
- lb
- lb
- It will double.
Hubble's law says that distant galaxies are receding from us at a rate that varies directly with their distance. (The speeds of the galaxies are measured using a phenomenon called redshifting.) A galaxy in the constellation Ursa Major is million light-years away and is receding at a speed of kilometers per second.
- Find a function that gives the speed, , of a galaxy in terms of its distance, , from Earth. Complete the table and graph your function in a suitable window. (Distances are given in millions of light-years.)
- How far away is a galaxy in the constellation Hydra that is receding at kilometers per second?
- A galaxy in Leo is million light-years away. How fast is it receding from us?
- If one constellation is twice as distant as another, how do their speeds compare?
The length, , of a pendulum varies directly with the square of its period, , the time required for the pendulum to make one complete swing back and forth. The pendulum on a grandfather clock is feet long and has a period of seconds.
- Express as a function of . Complete the table and graph your function in a suitable window.
- How long is the Foucault pendulum in the Pantheon in Paris, which has a period of seconds?
- A hypnotist uses a gold pendant as a pendulum to mesmerize his clients. If the chain on the pendant is inches long, what is the period of its swing?
- In order to double the period of a pendulum, how must you vary its length?
- ft
- sec
- It must be four times as long.
The load, , that a beam can support varies directly with the square of its vertical thickness, . A beam that is inches thick can support a load of pounds.
- Express as a function of . Complete the table and graph your function in a suitable window.
- What size load can be supported by a beam that is inches thick?
- How thick a beam is needed to support a load of pounds?
- If you double the thickness of a beam, how will the load it can support change?
Computer monitors produce a magnetic field. The effect of the field, , on the user varies inversely with his or her distance, , from the screen. The field from a certain color monitor was measured at milligauss inches from the screen.
- Express the field strength as a function of distance from the screen. Complete the table and graph your function in a suitable window.
- What is the field strength inches from the screen?
- An elevated risk of cancer can result from exposure to field strengths of milligauss. How far from the screen should the computer user sit to keep the field level below milligauss?
- If you double your distance from the screen, how does the field strength change?
- milligauss
- More than in
- It is one half as strong.
The amount of current, , that flows through a circuit varies inversely with the resistance, , on the circuit. An iron with a resistance of ohms draws amps of current.
- Express the current as a function of the resistance. Complete the table and graph your function in a suitable window.
- How much current is drawn by a light bulb with a resistance of ohms?
- What is the resistance of a toaster that draws amps of current?
- If the resistance of one appliance is double the resistance of a second appliance, how does the current they draw compare?
The amount of power, , generated by a windmill varies directly with the cube of the wind speed, . A windmill on Oahu, Hawaii, produces kilowatts of power when the wind speed is miles per hour.
- Express the power as a function of wind speed. Complete the table and graph your function in a suitable window.
- How much power would the windmill produce in a light breeze of miles per hour?
- What wind speed is needed to produce kilowatts of power?
- If the wind speed doubles, what happens to the amount of power generated?
- kilowatts
- mph
- It is multiplied by .
A crystal form of pyrite (a compound of iron and sulfur) has the shape of a regular solid with faces. Each face is a regular pentagon. This compound is called pyritohedron, and its mass, , varies directly with the cube of the length, , of one edge. If each edge is centimeters, then the mass is grams.
- Express the mass of pyritohedron as a function of the length of one edge. Complete the table and graph your function in a suitable window.
- What is the mass of a chunk of pyritohedron if each edge is centimeters?
- How long would each edge be for a -gram piece of pyritohedron?
- If one chunk has double the length of a second chunk, how do their masses compare?
For Problems 21–26,
- Use the values in the table to find the constant of variation, , and write as a function of .
- Fill in the rest of the table with the correct values.
- What happens to when you double the value of ?
varies directly with .
- doubles.
varies directly with .
varies directly with the square of .
- is quadrupled.
varies directly with the cube of .
varies inversely with .
- is halved.
varies inversely with the square of .
For Problems 27–30, decide whether
- varies directly with ,
- varies directly with , or
- does not vary directly with a power of .
Explain why your choice is correct. If your choice is (a) or (b), find the constant of variation.
(b)
(c) is not constant for any exponent .
For Problems 31–34, decide whether
- varies inversely with ,
- varies inversely with , or
- does not vary inversely with a power of .
Explain why your choice is correct. If your choice is (a) or (b), find the constant of variation.
(b)
(c) is not constant for any exponent .
The functions described by a table of data or by a graph in Problems 35–42 are examples of direct or inverse variation.
- Find an algebraic formula for the function, including the constant of variation, .
- Answer the question in the problem.
The faster a car moves, the more difficult it is to stop. The graph shows the distance, , required to stop a car as a function of its velocity, , before the brakes were applied. What distance is needed to stop a car moving at kilometers per hour?
- m
A wide pipe can handle a greater water flow than a narrow pipe. The graph shows the water flow through a pipe, , as a function of its radius, . How great is the water flow through a pipe of radius of inches?
If the price of mushrooms goes up, the amount consumers are willing to buy goes down. The graph shows the number of tons of shiitake mushrooms, , sold in California each week as a function of their price, . If the price of shiitake mushrooms rises to per pound, how many tons will be sold?
- ton
When an adult plays with a small child on a seesaw, the adult must sit closer to the pivot point to balance the seesaw. The graph shows this distance, , as a function of the adult's weight, . How far from the pivot must Kareem sit if he weighs pounds?
Ocean temperatures are generally colder at the greater depths. The table shows the temperature of the water as a function of depth. What is the ocean temperature at a depth of kilometers?
| Depth (km) | Temperature (C) |
|---|---|
- C
The shorter the length of a vibrating guitar string, the higher the frequency of the vibrations. The fifth string is centimeters long and is tuned to A (with a frequency of vibrations per second). The placement of the fret relative to the bridge changes the effective length of the guitar string. The table shows frequency as a function of effective length. How far from the bridge should the fret be placed for the note C ( vibrations per second)?
| Length (cm) | Frequency |
|---|---|
The strength of a cylindrical rod depends on its diameter. The greater the diameter of the rod, the more weight it can support before collapsing. The table shows the maximum weight supported by a rod as a function of its diameter. How much weight can a -centimeter rod support before collapsing?
| Diameter (cm) | Weight (newtons) |
|---|---|
- newtons
The maximum height attained by a cannonball depends on the speed at which it was shot. The table shows maximum height as a function of initial speed. What height is attained by a cannonball whose initial upward speed was feet per second?
| Speed (ft/sec) | Height (ft) |
|---|---|
The wind resistance, , experienced by a vehicle on the freeway varies directly with the square of its speed, .
- If you double your speed, what happens to the wind resistance?
- If you drive one-third as fast, what happens to the wind resistance?
- If you decrease your speed by , what happens to the wind resistance?
- Wind resistance quadruples.
- It is one-ninth as great.
- It is decreased by because it is of the original.
The weight, , of a bronze statue varies directly with the cube of its height, .
- If you double the height of the statue, what happens to its weight?
- If you make the statue one-fourth as tall, what happens to its weight?
- If you increase the height of the statue by , what happens to its weight?
The intensity of illumination, , from a lamp varies inversely with the square of your distance, , from the lamp.
- If you double your distance from a reading lamp, what happens to the illumination?
- If you triple the distance, what happens to the illumination?
- If you increase the distance by , what happens to the illumination?
- It is one-fourth the original illumination.
- It is one-ninth the illumination.
- It is of the illumination.
The resistance, , of an electrical wire varies inversely with the square of its diameter, .
- If you replace an old wire with a new one whose diameter is half that of the old one, what happens to the resistance?
- If you replace an old wire with a new one whose diameter is two-thirds of the old one, what happens to the resistance?
- If you decrease the diameter of the wire by , what happens to the resistance?
The quoted material in Problems 47–50 is taken from the article "Quantum Black Holes," by Bernard J. Carr and Steven B. Giddings, in the May 2005 issue of Scientific American. (See Algebra Skills Refresher Scientific Notation to review scientific notation.)
“The density to which matter must be squeezed [to create a black hole] scales as the inverse square of the mass. For a hole with the mass of the Sun, the density is about kilograms per cubic meter, higher than that of an atomic nucleus.”
- Recall that the density of an object is its mass per unit volume. Given that the mass of the sun is about kilograms, write a formula for the density, , of a black hole as a function of its mass, .
- “The known laws of physics allow for a matter density up to the so-called Planck value of kilograms per cubic meter.” If a black hole with this density could be created, it would be the smallest possible black hole. What would its mass be?
- Assuming that a black hole is spherical, what would be the radius of the smallest possible black hole?
- kg
“A black hole radiates thermally, like a hot coal, with a temperature inversely proportional to its mass. For a solar-mass black hole, the temperature is around a millionth of a kelvin.”
- The solar mass is given in Problem 47. Write a formula for the temperature, , of a black hole as a function of its mass, .
- What is the temperature of a black hole of mass kilograms, about the mass of a mountain?
“The total time for a black hole to evaporate away is proportional to the cube of its initial mass. For a solar-mass hole, the lifetime is an unobservably long years.”
- The solar mass is given in Problem 47. Write a formula for the lifetime, , of a black hole as a function of its mass, .
- The present age of the universe is about years. What would be the mass of a black hole as old as the universe?
- kg
“String theory predicts that space has dimensions beyond the usual three. In three dimensions, the force of gravity quadruples as you halve the distance between two objects. But in nine dimensions, gravity would get times as strong.” In three dimensions, the force of gravity varies inversely with the square of distance. Write a formula for the force of gravity in nine dimensions.
Use algebra to support your answers to Problems 51–56. Begin with a formula for direct or inverse variation.
Suppose varies directly with . Show that if you multiply by any constant , then will be multiplied by the same constant.
implies that .
Suppose varies inversely with . Show that if you multiply by any constant , then will be divided by the same constant.
Explain why the ratio is a constant when varies directly with .
If , then dividing both sides of the equation by gives .
Explain why the product is a constant when varies inversely with .
If varies directly with and varies directly with , does vary directly with ?
Yes
If varies inversely with and varies inversely with , does vary invesely with ?
Modeling, Functions, and Graphs by Katherine Yoshiwara (yoshiwarabooks.org), GNU Free Documentation License 1.2 or later. Adapted for the XYZ HTML edition with the authors' permission (recorded 2026-07-04). License: GFDL-1.2-or-later.