Skip to content
Family Table Math
Auto

Direct and Inverse Variation

Many laws of science have the simple form y=axny = ax^n: the braking distance of a car grows with the square of its speed, the pressure of a gas is inversely proportional to its volume, and light gets dimmer with the square of the distance. These are called variation models. On this page you’ll learn to recognize them, find the constant aa from data, read their graphs and asymptotes, and fit cubic models, all while working through the modelling cycle the IB expects you to use.

yy varies directly as xnx^n (written y∝xny \propto x^n) when

y=axn,n∈Z, n>0y = ax^n, \qquad n \in \mathbb{Z}, \ n \gt 0

for some constant a≠0a \ne 0, called the constant of variation (or constant of proportionality).

  • y∝xy \propto x: y=axy = ax, a straight line through the origin.
  • y∝x2y \propto x^2: y=ax2y = ax^2, a parabola with vertex at the origin.
  • y∝x3y \propto x^3: y=ax3y = ax^3, a cubic through the origin.

The key test: the ratio yxn\dfrac{y}{x^n} is the same for every data point, and it equals aa.

yy varies inversely as xnx^n (written y∝1xny \propto \dfrac{1}{x^n}) when

y=axn=ax−n,n∈Z, n>0y = \frac{a}{x^n} = ax^{-n}, \qquad n \in \mathbb{Z}, \ n \gt 0

So inverse variation is the same family f(x)=axnf(x) = ax^n with a negative integer power. The most common cases are y∝1xy \propto \dfrac{1}{x} (for example Boyle’s law for a gas) and y∝1x2y \propto \dfrac{1}{x^2} (an inverse-square law, like light intensity or gravity).

The key test: the product xnyx^n y is the same for every data point, and it equals aa.

Left: direct variation graphs y = 2x and y = 0.5x squared, both through the origin. Right: inverse variation graphs y = 4/x and y = 4/x squared, with asymptotes x = 0 and y = 0. −2 2 −4 −2 2 4 6 Direct variation y = 0.5x² y = 2x −2 2 −4 −2 2 4 6 Inverse variation y = 4/x² y = 4/x asymptotes: x = 0 and y = 0
Direct variation graphs pass through the origin. For a negative power, the yy-axis is a vertical asymptote and the xx-axis is a horizontal asymptote.
ModelPasses through the origin?Asymptotes
y=axny = ax^n, n>0n \gt 0yesnone
y=axny = ax^n, n<0n \lt 0no (x=0x = 0 is not in the domain)vertical: x=0x = 0 (the yy-axis); horizontal: y=0y = 0 (the xx-axis)

For n<0n \lt 0, the domain is {x∈R∣x≠0}\{x \in \mathbb{R} \mid x \ne 0\}. In real contexts the input is usually positive (a volume, a distance), so only the branch with x>0x \gt 0 matters.

If y=axny = ax^n and xx is multiplied by kk, then yy is multiplied by knk^n:

a(kx)n=kn⋅axna(kx)^n = k^n \cdot ax^n

So if y∝x2y \propto x^2, doubling xx multiplies yy by 44. If y∝1x2y \propto \dfrac{1}{x^2} (that is, n=−2n = -2), doubling xx multiplies yy by 2−2=142^{-2} = \dfrac{1}{4}.

A cubic model has the form

f(x)=ax3+bx2+cx+df(x) = ax^3 + bx^2 + cx + d

It can rise, fall and rise again (or the reverse), so it suits data with up to two turning points: a profit that grows and then falls, the volume of a box as you change one length, or the power produced by a wind turbine. To find the parameters, substitute known points and solve the resulting system of linear equations with your GDC. If the yy-intercept is known (for example a starting value at x=0x = 0), then dd is known straight away, and only three equations in aa, bb and cc remain.

The IB describes modelling as a cycle, not a one-off calculation:

  1. Develop the model. From the context and the shape of the data, choose a type (y=axny = ax^n, cubic, exponential, …) and decide on a reasonable domain (what inputs make sense?).
  2. Fit the model. Find the parameters: from one or more data points, from an initial condition, or by solving equations with technology.
  3. Test the model. Compare its predictions with data you didn’t use. Are the differences small?
  4. Reflect. Is the model reasonable in context? Justify your choice from the shape of the data, the properties of the curve, or the situation itself.
  5. Use the model. Read values, interpret parameters and make predictions, remembering that extrapolation (predicting outside the data) is risky.

If the test or reflection shows a problem, go back to step 1 and try again. For more practice choosing between linear, quadratic, exponential and sinusoidal models, see function modelling. For fitting curves to all the data at once (regression), see non-linear regression.

The braking distance dd metres of a car varies directly as the square of its speed vv km/h. At 5050 km/h the braking distance is 12.512.5 m.

  • (a) Find a formula for dd in terms of vv.
  • (b) Find the braking distance at 100100 km/h.
  • (c) Find the speed at which the braking distance is 4040 m.

Solution.

(a) d∝v2d \propto v^2, so d=av2d = av^2. Substitute v=50v = 50, d=12.5d = 12.5:

12.5=a(50)2⇒a=12.52500=0.00512.5 = a(50)^2 \quad\Rightarrow\quad a = \frac{12.5}{2500} = 0.005

So d=0.005v2d = 0.005v^2.

(b) d=0.005(100)2=50d = 0.005(100)^2 = 50 m. Notice that doubling the speed multiplied the distance by 22=42^2 = 4: from 12.512.5 m to 5050 m.

(c) Solve 0.005v2=400.005v^2 = 40:

v2=400.005=8000⇒v=8000≈89.4 km/h(3 s.f.)v^2 = \frac{40}{0.005} = 8000 \quad\Rightarrow\quad v = \sqrt{8000} \approx 89.4 \text{ km/h} \quad (3 \text{ s.f.})

Take the positive root, since a speed is positive here.

A fixed amount of gas is kept at constant temperature. Its pressure PP (kPa) is measured at different volumes VV (L).

VV (L)1122445588
PP (kPa)40040020020010010080805050
  • (a) Show that PP varies inversely as VV, and write the model.
  • (b) State the equations of the asymptotes of the graph, and a reasonable domain.
  • (c) Find the volume when the pressure is 250250 kPa.

Solution.

(a) When VV doubles from 11 to 22, PP halves, which suggests P∝1VP \propto \dfrac{1}{V}. Check the products PVPV:

1×400=2×200=4×100=5×80=8×50=4001 \times 400 = 2 \times 200 = 4 \times 100 = 5 \times 80 = 8 \times 50 = 400

They are all equal, so P=400VP = \dfrac{400}{V} (that is, P=400V−1P = 400V^{-1}).

(b) The vertical asymptote is V=0V = 0 and the horizontal asymptote is P=0P = 0. A volume must be positive, so a reasonable domain is V>0V \gt 0 (in practice, only the range of volumes the container allows).

(c) 250=400V250 = \dfrac{400}{V}, so V=400250=1.6V = \dfrac{400}{250} = 1.6 L.

The intensity II (lux) of light from a lamp is measured at distance xx metres.

xx (m)11223344
II (lux)144014403603601601609090
  • (a) Decide whether I∝1xI \propto \dfrac{1}{x} or I∝1x2I \propto \dfrac{1}{x^2}, and write the model.
  • (b) Predict the intensity at 66 m.
  • (c) At what distance is the intensity 1010 lux?

Solution.

(a) Test both. If I∝1xI \propto \dfrac{1}{x}, then xIxI is constant; if I∝1x2I \propto \dfrac{1}{x^2}, then x2Ix^2 I is constant.

xx11223344
xIxI14401440720720480480360360
x2Ix^2 I14401440144014401440144014401440

Only x2Ix^2 I is constant, so this is an inverse-square law:

I=1440x2I = \frac{1440}{x^2}

(b) I=144036=40I = \dfrac{1440}{36} = 40 lux. (Check with the scaling rule: from 33 m to 66 m the distance doubles, so the intensity is divided by 44: 160÷4=40160 \div 4 = 40. ✓)

(c) 1440x2=10\dfrac{1440}{x^2} = 10 gives x2=144x^2 = 144, so x=12x = 12 m.

Example 4: A cubic profit model and the modelling cycle

Section titled “Example 4: A cubic profit model and the modelling cycle”

A new café records its monthly profit PP, in thousands of dollars, tt months after opening. It opened with a loss of 55 thousand dollars.

tt (months)00224466
PP (thousand $)−5-5−4.0-4.01.81.87.67.6

The owner models the profit with P(t)=at3+bt2+ct+dP(t) = at^3 + bt^2 + ct + d.

  • (a) Find aa, bb, cc and dd.
  • (b) The profit at t=8t = 8 was 8.48.4 thousand dollars. Test the model with this value.
  • (c) Find the maximum monthly profit predicted by the model.
  • (d) Use the model to predict the profit at t=12t = 12, and reflect on the result.

Solution.

(a) At t=0t = 0, P=d=−5P = d = -5. Substitute the other three points into P(t)=at3+bt2+ct−5P(t) = at^3 + bt^2 + ct - 5:

8a+4b+2c−5=−4.0⇒8a+4b+2c=1.064a+16b+4c−5=1.8⇒64a+16b+4c=6.8216a+36b+6c−5=7.6⇒216a+36b+6c=12.6\begin{aligned} 8a + 4b + 2c - 5 &= -4.0 &&\Rightarrow\quad 8a + 4b + 2c = 1.0 \\ 64a + 16b + 4c - 5 &= 1.8 &&\Rightarrow\quad 64a + 16b + 4c = 6.8 \\ 216a + 36b + 6c - 5 &= 7.6 &&\Rightarrow\quad 216a + 36b + 6c = 12.6 \end{aligned}

Solve the system with your GDC’s simultaneous-equation solver: a=−0.1a = -0.1, b=1.2b = 1.2, c=−1.5c = -1.5.

P(t)=−0.1t3+1.2t2−1.5t−5P(t) = -0.1t^3 + 1.2t^2 - 1.5t - 5

(b) P(8)=−0.1(512)+1.2(64)−1.5(8)−5=−51.2+76.8−12−5=8.6P(8) = -0.1(512) + 1.2(64) - 1.5(8) - 5 = -51.2 + 76.8 - 12 - 5 = 8.6. The actual profit was 8.48.4, so the model is off by only 0.20.2 thousand dollars. The model passes this test.

(c) Graph PP on your GDC and find the maximum: at t≈7.32t \approx 7.32 months, P≈9.10P \approx 9.10, so a maximum profit of about $9100 per month (to 3 s.f.).

(d) P(12)=−0.1(1728)+1.2(144)−18−5=−23P(12) = -0.1(1728) + 1.2(144) - 18 - 5 = -23, a loss of $23 000 in a month. In fact the model reaches P=0P = 0 at t=10t = 10 and falls steeply after that, because every cubic with a<0a \lt 0 eventually decreases without limit. Nothing in the data suggests the café will collapse, so this is a warning about extrapolation: the model is reasonable for about 0≤t≤80 \le t \le 8 (the data), and predictions far beyond that shouldn’t be trusted. To predict further ahead, the owner should collect more data and refit (back to step 1 of the cycle).

Writing the constant from the wrong ratio. For y∝x2y \propto x^2, the constant is a=yx2a = \dfrac{y}{x^2}, not yx\dfrac{y}{x}. For y∝1x2y \propto \dfrac{1}{x^2}, it’s a=x2ya = x^2 y. Write the general equation first (y=ax2y = ax^2 or y=ax2y = \dfrac{a}{x^2}), then substitute.

Checking only one pair of points. Any single point gives some value of aa. To decide which law fits a table, compute yxn\dfrac{y}{x^n} or xnyx^n y for every point and look for a constant value.

Thinking inverse variation means “subtract”. “As xx increases, yy decreases” isn’t enough: y=10−xy = 10 - x also decreases. Inverse variation means xnyx^n y stays constant, so doubling xx divides yy by 2n2^n.

Forgetting the asymptotes and the domain. For y=axny = ax^n with n<0n \lt 0, x=0x = 0 is not in the domain; the yy-axis is a vertical asymptote and the xx-axis is a horizontal asymptote. In context, restrict the domain further to values that make sense (for example V>0V \gt 0).

Taking the negative root without thinking. Solving 0.005v2=400.005v^2 = 40 gives v=±89.4v = \pm 89.4, but a speed or a length must be positive. State which root you keep and why.

Trusting a cubic far outside the data. A cubic always heads to ±∞\pm\infty at both ends. A model that fits well on the data can give absurd predictions a short way beyond it. Always state a reasonable domain.

1. (Warm-up) yy varies directly as xx, and y=18y = 18 when x=4x = 4. Find yy when x=10x = 10.

Solution

y=axy = ax with 18=4a18 = 4a, so a=4.5a = 4.5. Then y=4.5(10)=45y = 4.5(10) = 45.

2. (Warm-up) yy is inversely proportional to x2x^2, and y=5y = 5 when x=2x = 2. Find yy when x=4x = 4 and when x=0.5x = 0.5.

Solution

y=ax2y = \dfrac{a}{x^2} with 5=a45 = \dfrac{a}{4}, so a=20a = 20 and y=20x2y = \dfrac{20}{x^2}.

x=4x = 4: y=2016=1.25y = \dfrac{20}{16} = 1.25.

x=0.5x = 0.5: y=200.25=80y = \dfrac{20}{0.25} = 80.

3. (Warm-up) Let f(x)=6x−1f(x) = 6x^{-1}. Write down the equations of the asymptotes of the graph of ff, and its domain and range.

Solution

f(x)=6xf(x) = \dfrac{6}{x}. Vertical asymptote x=0x = 0; horizontal asymptote y=0y = 0.

Domain {x∈R∣x≠0}\{x \in \mathbb{R} \mid x \ne 0\}; range {y∈R∣y≠0}\{y \in \mathbb{R} \mid y \ne 0\}.

4. (Core) Here is a table of values.

xx11223355
yy0.60.62.42.45.45.41515
  • (a) Show that y∝x2y \propto x^2 and find the model.
  • (b) Find the positive value of xx for which y=60y = 60.
Solution

(a) yx2\dfrac{y}{x^2}: 0.61=0.6\dfrac{0.6}{1} = 0.6, 2.44=0.6\dfrac{2.4}{4} = 0.6, 5.49=0.6\dfrac{5.4}{9} = 0.6, 1525=0.6\dfrac{15}{25} = 0.6. The ratio is constant, so y=0.6x2y = 0.6x^2.

(b) 0.6x2=600.6x^2 = 60 gives x2=100x^2 = 100, so x=10x = 10.

5. (Core) Charles’s law says that, at constant pressure, the volume VV of a gas varies directly as its temperature TT in kelvin. A balloon has a volume of 2.52.5 L at 300300 K.

  • (a) Find the volume at 360360 K.
  • (b) Find the temperature, in kelvin and in degrees Celsius, at which the volume is 2.02.0 L. (Use T(K)=T(∘C)+273.15T(\text{K}) = T(^\circ\text{C}) + 273.15.)
  • (c) Explain why the domain of this model must be T>0T \gt 0.
Solution

(a) V=aTV = aT with a=2.5300=1120a = \dfrac{2.5}{300} = \dfrac{1}{120}. So V=360120=3V = \dfrac{360}{120} = 3 L.

(b) T120=2.0\dfrac{T}{120} = 2.0 gives T=240T = 240 K, which is 240−273.15=−33.15240 - 273.15 = -33.15, about −33.2 ∘C-33.2\,^\circ\text{C} (3 s.f.).

(c) Temperatures in kelvin can’t be negative (and a gas would liquefy long before 00 K), and the model would give a zero or negative volume at T≤0T \le 0, which is impossible.

6. (Core) A theatre finds that the number of tickets qq it sells for a show varies inversely as the price pp dollars. At a price of $8 it sells 450450 tickets.

  • (a) Find the model, and the number of tickets sold at $12.
  • (b) Show that the model predicts the same revenue at every price.
  • (c) Comment on whether the model is reasonable for very low prices.
Solution

(a) q=apq = \dfrac{a}{p} with a=8×450=3600a = 8 \times 450 = 3600. So q=3600pq = \dfrac{3600}{p}, and at $12, q=360012=300q = \dfrac{3600}{12} = 300 tickets.

(b) Revenue =pq=p⋅3600p=3600= pq = p \cdot \dfrac{3600}{p} = 3600, so $3600 whatever the price.

(c) Not reasonable. As p→0p \to 0 the model predicts q→∞q \to \infty, but the theatre has a fixed number of seats. At $5 it already predicts 720720 tickets, which a small theatre may not have. The model should only be used over a limited range of prices.

7. (Core) The temperature TT (°C) in a greenhouse hh hours after 6 a.m. is modelled by T(h)=ah3+bh2+ch+dT(h) = ah^3 + bh^2 + ch + d.

hh00224466
TT (°C)121214.514.519.419.424.324.3
  • (a) Write down the value of dd, and set up three equations for aa, bb and cc.
  • (b) Solve them with your GDC and write down the model.
  • (c) Find the maximum temperature predicted, and the time it occurs.
  • (d) Predict the temperature at h=16h = 16 and comment.
Solution

(a) T(0)=d=12T(0) = d = 12. Then

8a+4b+2c=2.564a+16b+4c=7.4216a+36b+6c=12.3\begin{aligned} 8a + 4b + 2c &= 2.5 \\ 64a + 16b + 4c &= 7.4 \\ 216a + 36b + 6c &= 12.3 \end{aligned}

(b) a=−0.05a = -0.05, b=0.6b = 0.6, c=0.25c = 0.25, so T(h)=−0.05h3+0.6h2+0.25h+12T(h) = -0.05h^3 + 0.6h^2 + 0.25h + 12.

(c) Using the GDC’s maximum feature: h≈8.20h \approx 8.20, T≈26.8 ∘CT \approx 26.8\,^\circ\text{C}. So the maximum is about 26.8 ∘C26.8\,^\circ\text{C} at about 2:12 p.m.

(d) T(16)=−0.05(4096)+0.6(256)+4+12=−204.8+153.6+16=−35.2 ∘CT(16) = -0.05(4096) + 0.6(256) + 4 + 12 = -204.8 + 153.6 + 16 = -35.2\,^\circ\text{C}. That’s absurd for a greenhouse at 10 p.m.: the cubic keeps falling steeply after its maximum. The model is only reasonable for roughly the daytime hours covered by the data (about 0≤h≤100 \le h \le 10).

8. (Challenge) The power PP produced by a wind turbine is proportional to the cube of the wind speed vv. At 66 m/s it produces 5050 kW.

  • (a) Find the power at 1212 m/s.
  • (b) By what percentage must the wind speed increase to double the power?
Solution

(a) Doubling vv multiplies PP by 23=82^3 = 8, so P=8×50=400P = 8 \times 50 = 400 kW. (Or: a=50216a = \dfrac{50}{216}, and P=50216(12)3=400P = \dfrac{50}{216}(12)^3 = 400.)

(b) If vv is multiplied by kk, PP is multiplied by k3k^3. We need k3=2k^3 = 2, so k=23≈1.2599k = \sqrt[3]{2} \approx 1.2599. The wind speed must increase by about 26.0%26.0\% (3 s.f.).

9. (Challenge) The gravitational force FF between two objects is inversely proportional to the square of the distance dd between their centres.

  • (a) If dd increases by 25%25\%, by what percentage does FF decrease?
  • (b) By what factor must dd change for FF to become 19\dfrac{1}{9} of its original value?
Solution

(a) F=ad2F = \dfrac{a}{d^2}. Replacing dd by 1.25d1.25d multiplies FF by 11.252=11.5625=0.64\dfrac{1}{1.25^2} = \dfrac{1}{1.5625} = 0.64. So FF decreases by 36%36\%.

(b) We need 1k2=19\dfrac{1}{k^2} = \dfrac{1}{9}, so k2=9k^2 = 9 and k=3k = 3 (a distance factor is positive). The distance must be tripled.