Linear Relationships and Functions

4. Direct Variation

Learning outcomes
  • I can define direct variation relationships.
  • I can identify the constant of variation.
  • I can write equations representing direct variation.
  • I can solve problems involving proportional relationships.
  • I can recognize direct variation in real-world contexts.

Direct Variation

A direct variation is a relationship between two variables in which one variable changes in direct proportion to the other.

For example, suppose apples cost $3 per kilogram.

If x represents the mass of apples in kilograms and y represents the total cost:

y = 3x

If you buy twice as many kilograms, the cost doubles. If you buy three times as many, the cost triples.

This is a direct variation because the ratio between y and x remains constant.


The Direct Variation Equation

A direct variation can be written in the form:

y = kx

where:

  • x = independent variable
  • y = dependent variable
  • k = constant of variation

The value k tells us how much y changes for each unit of x.

For example:

y = 5x

has:

k = 5

This means y is always 5 times x.


The Constant of Variation

The constant of variation is the constant ratio between the two variables.

From:

y = kx

divide both sides by x:

k = y/x

Therefore, for a direct variation:

y/x = constant

For example, suppose:

x = 4

and:

y = 20

Then:

k = 20/4

k = 5

The direct variation equation is:

y = 5x


Understanding the Constant

Suppose:

d = 60t

where:

d = distance in kilometres

t = time in hours

The constant of variation is:

60

In context, this means:

60 km/h

The constant of variation often represents a real-world rate such as:

  • price per item
  • speed
  • pay per hour
  • mass per unit
  • distance per unit time
  • amount used per person

Direct Variation and Proportional Relationships

A direct variation is also called a proportional relationship.

If:

y = kx

then:

y/x = k

The ratio between the two quantities remains constant.

For example:

x y
1 4
2 8
3 12
4 16
5 20

Calculate y/x:

4/1 = 4

8/2 = 4

12/3 = 4

16/4 = 4

20/5 = 4

The ratio is always:

4

Therefore:

k = 4

and:

y = 4x


Recognizing Direct Variation from a Table

Consider:

x y
2 6
4 12
6 18
8 24

Calculate:

y/x

6/2 = 3

12/4 = 3

18/6 = 3

24/8 = 3

Because the ratio is constant:

k = 3

Therefore:

y = 3x

This table represents direct variation.


A Table That Is Not Direct Variation

Consider:

x y
1 5
2 8
3 11
4 14

The y-values increase by 3 each time, so the relationship is linear.

However:

5/1 = 5

8/2 = 4

11/3 ≠ 4

14/4 = 3.5

The ratio y/x is not constant.

Therefore:

This is linear, but it is not a direct variation.

Its equation is:

y = 3x + 2

The +2 prevents it from being a direct variation.


Direct Variation Is a Special Linear Relationship

All direct variations are linear relationships.

However:

not all linear relationships are direct variations.

A general linear equation is:

y = mx + b

A direct variation has:

b = 0

Therefore:

y = kx

A direct variation has no non-zero starting value.


The Origin

When x = 0 in a direct variation:

y = k(0)

y = 0

Therefore, every direct variation contains the point:

(0, 0)

This point is called the origin.

A graph representing direct variation must pass through the origin.

https://images.openai.com/static-rsc-4/w4WQPHjAS9mL4RqGQOHxWH5ggv_PMp3TMYpIXNygRe0fAeYvIdz3UHLSUxLLcROUBaI6PvUycYhYLdwV2bj7X4rIYrIiPXZ5eC7SyqJjrQ43_IwY8cUyhKEOw8rPysJy8vpNilc2euntBwT3LSv9G94GeD17bYUIn4Bw2byzQDu35nHap0McCLyqCSLFxUA-?purpose=fullsize
 
https://images.openai.com/static-rsc-4/ZMGLjsbFvA7WJ_K2c-jjCZg0d2TGBudHx61UJ-Vu9lQpo79XUrHgKnYKiZrEbv93KNkzqrMt9ZarykncnukuDDHjHGgLoX8hfAoBW3YPg6s-CicWFbYO9EIHl4wQOgxvlHbqs9ez3r8FIG4sCUOZ-2bdxMPcla9-s4Wgwty6HqLqg5hZjkQXvNHYN662kPDv?purpose=fullsize
 
https://images.openai.com/static-rsc-4/GZ7hXMsDsegnCjeGefR07ZDX9Ptaqa5orgEb4nCoeQq6cQP9av44tOn9biETKdbQMiqSmSPxkLeV7oM_gBBMej9g9VGOe-1r9zDPZwE2K3DkmIeQ7BE1d_vTUOnoi3CCVz54vPJ05IgoLItsSbego9J2p-9Dsah2_kGLJrAbtYPxZV1QnYsQGnn8AG7xaGPu?purpose=fullsize
 
8

Direct Variation on a Graph

Consider:

y = 2x

Some points are:

x y
0 0
1 2
2 4
3 6
4 8

The graph:

  • is a straight line
  • passes through (0, 0)
  • has a constant slope
  • represents a proportional relationship

The slope is the constant of variation:

k = 2


Slope and the Constant of Variation

For a general linear equation:

y = mx + b

m represents slope.

For direct variation:

y = kx

therefore:

m = k

The slope and the constant of variation are the same value.

For example:

y = −4x

has:

slope = −4

constant of variation = −4


Positive Direct Variation

Consider:

y = 3x

As x increases, y increases.

If x doubles:

y doubles.

If x triples:

y triples.

For example:

x = 2 → y = 6

x = 4 → y = 12

x = 6 → y = 18

This is a positive direct variation.


Negative Direct Variation

Direct variation can also have a negative constant.

Consider:

y = −2x

If x increases:

y decreases.

For example:

x = 1 → y = −2

x = 2 → y = −4

x = 3 → y = −6

The ratio remains:

y/x = −2

Therefore, it is still a direct variation.


Finding k from One Pair of Values

Suppose y varies directly with x.

When:

x = 6

y = 24

Use:

k = y/x

k = 24/6

k = 4

Therefore:

y = 4x

Once the equation is known, we can determine any corresponding value.


Finding an Unknown Output

Suppose:

y varies directly with x

and:

y = 18 when x = 3.

First find k:

k = 18/3

k = 6

Therefore:

y = 6x

Now find y when x = 8:

y = 6(8)

y = 48


Finding an Unknown Input

Suppose:

y = 7x

and:

y = 63

Substitute:

63 = 7x

Divide by 7:

x = 9

Therefore, an output of 63 corresponds to an input of 9.


Solving with Proportions

Because direct variation has a constant ratio:

y/x = k

two corresponding pairs satisfy:

y₁/x₁ = y₂/x₂

For example, if:

x = 3 when y = 12

find y when x = 8.

Write:

12/3 = y/8

4 = y/8

Multiply by 8:

y = 32

This gives the same result as finding k first.


Two Methods for Direct Variation Problems

Suppose 5 notebooks cost $15. Find the cost of 8 notebooks.

Method 1: Find k

k = 15/5

k = 3

Equation:

C = 3n

For 8 notebooks:

C = 3(8)

C = $24

Method 2: Use a proportion

15/5 = C/8

3 = C/8

C = $24

Both methods use the same proportional relationship.


Scaling Up

If y varies directly with x, multiplying x by a factor multiplies y by the same factor.

Suppose:

y = 4x

If x changes from 3 to 12:

12 is:

4 times 3

Therefore, y also becomes four times larger.

At x = 3:

y = 12

At x = 12:

y = 48


Scaling Down

Suppose:

y = 10x

If x is divided by 2, y is also divided by 2.

For example:

x = 8 → y = 80

x = 4 → y = 40

This proportional scaling is a defining feature of direct variation.


Real-World Example: Hourly Pay

Suppose a worker earns:

$18 per hour

with no fixed bonus.

Let:

h = hours worked

P = total pay

Then:

P = 18h

The constant of variation is:

18 dollars/hour

If the worker works 6 hours:

P = 18(6)

P = $108

https://images.openai.com/static-rsc-4/x-ZXjuQGiFUOA7PTz_a_q7R1Fr5CNOlLklkLV2LpD0QWc8yu-P8q0J8VXM8iwQy1AfP8LcoxYQa76k8ldwjXWKJv1_eyEIlvhOMFAlt3s_8F9x_oIYYYvhqPNz519H2f2lN7EqEvZfHcsyBLeCc8QjdBN77-KXnLhF5r6Z5YwYTHpVw-8Rpclocst74uvp48?purpose=fullsize
 
https://images.openai.com/static-rsc-4/XFfiXe8h49rTftcs2kRdIxg9NAYrmtMxavLqrNGExTRyNpLrQVvwQaFf5j8XO2CKOQ0hbpJ27obsj07QX6X28eMZf1wVRmgvXN0lAp-vewmy8FSQxkfBzurLM42jVRJONFzetZjubgs8jvCwgJr0B_l3zOioBRQHzD78KQhd2QJzvZGqLMQNvzwpAWq3fUyF?purpose=fullsize
 
https://images.openai.com/static-rsc-4/JvkyyLnOPn956EJ_W-WYArze6NXSysb-o9Q9VFoRksKCZ_q1sWh1pElbGStH61JpDAYItQqMUkyN6YatzrlDf__duI9ZIPhSUFfuwnBheXNQWGAGc8NgANZfssRkYKZbwIt45MUWX_hDvSliVHkkMHatkaMChASAw8lBSmmI7NMe2HNFT8Wo4tv-zWEoB0vk?purpose=fullsize
 
6

Why a Fixed Bonus Changes the Relationship

Suppose the worker instead receives:

$18 per hour plus a $25 bonus

Then:

P = 18h + 25

This is linear.

However, it is not direct variation because:

P ≠ 0 when h = 0.

The graph does not pass through the origin.

This distinction is important.


Real-World Example: Constant Speed

Suppose a cyclist travels at a constant speed of:

15 km/h

Distance is:

d = 15t

where:

d = distance in kilometres

t = time in hours

The constant of variation is:

15 km/h

After 4 hours:

d = 15(4)

d = 60 km

Distance varies directly with time when speed remains constant.


Real-World Example: Cost per Item

Suppose pens cost:

$2.50 each

Let:

n = number of pens

C = total cost

Then:

C = 2.5n

The constant of variation is:

$2.50 per pen

For 12 pens:

C = 2.5(12)

C = $30


Real-World Example: Recipe Quantities

A recipe requires:

250 g of flour for each batch

Let:

b = number of batches

F = flour required in grams

Then:

F = 250b

For 3 batches:

F = 250(3)

F = 750 g

For half a batch:

F = 250(0.5)

F = 125 g

The amount of flour varies directly with the number of batches.

https://images.openai.com/static-rsc-4/pwswY4CAT6lg3OEICD1EMxhF4FwACysCG0t5wAUBOpfwfjTRXIJANI78qjlLZu_N4IAOPEICUEOByXxUe9ShODewb8JocIFyQye2LB6m-_pd4pygGLkgFstIIaGVTNq8D7xU1mTINz7wRfzPOA3XTRVQZD6LN-ptDB7LOzB888sQlXRqSLIGdjViUagPU6bp?purpose=fullsize
 
https://images.openai.com/static-rsc-4/tGylaRg4-tvHpSjBMux4v4CBfmNE0Mf40mxfYmTa5qNKxzgiSnF1G9frhGEyXOrFDs9oR9abz-PcHp1G5_42Il2B5Cx6UczsKfHMgo9P_05oV9SQzKdc97CV7AuSX8znwjOYR75aXkg_mS-_V0f3AaKaucxpTjtec3xxCDtk1HgG0tfobtH7EWr0OEBN-ztB?purpose=fullsize
 
https://images.openai.com/static-rsc-4/Z8TtZqpHURDzOoYJx-fZDU7vwt8wO8wGtwaSXGuKPYTsE2VZ1B6tVn0z4bIqozzBcZlKL3ytvQKOew5UYbCXDR2bKyZrCCNVdML50SSj3KHsZUDSbj-v59TwntiWOgLDoKQ5Ml96Kj_DNKGNz5wMm3LbfzCv_UdbpA6MXEj3SiOhrYNe657kZQldZQJcOvHq?purpose=fullsize
 
7

Real-World Example: Mass and Number of Objects

Suppose identical metal blocks each have a mass of:

2.4 kg

Let:

n = number of blocks

M = total mass

Then:

M = 2.4n

The constant of variation is:

2.4 kg/block

If there are 15 blocks:

M = 2.4(15)

M = 36 kg


Real-World Example: Distance on a Map

Suppose a map uses the scale:

1 cm = 5 km

Let:

m = map distance in centimetres

D = actual distance in kilometres

Then:

D = 5m

The constant of variation is:

5 km/cm

If two locations are 7.5 cm apart on the map:

D = 5(7.5)

D = 37.5 km


Real-World Example: Currency Conversion

Suppose, for a simplified example, one unit of currency A converts to 1.4 units of currency B at a fixed rate.

Let:

A = amount in currency A

B = amount in currency B

Then:

B = 1.4A

The constant of variation is:

1.4

If A = 50:

B = 1.4(50)

B = 70

Actual exchange rates can change, but at a fixed conversion rate the relationship is proportional.


Real-World Example: Density

For a material with constant density:

mass = density × volume

Suppose a material has density:

2.7 g/cm³

Then:

m = 2.7V

where:

m = mass in grams

V = volume in cm³

Mass varies directly with volume.

The constant of variation is the density:

k = 2.7 g/cm³

For V = 20 cm³:

m = 2.7(20)

m = 54 g


Real-World Example: Distance and Time

At constant speed:

d = vt

If the speed is fixed at:

v = 12 m/s

then:

d = 12t

This is direct variation between distance and time.

The constant of variation is:

12 m/s

Notice that the familiar science equation becomes a direct variation when one quantity, in this case speed, remains constant.


Recognizing Direct Variation from Words

Look for phrases such as:

  • "per"
  • "for each"
  • "at a constant rate"
  • "proportional to"
  • "varies directly with"
  • "for every"

For example:

"A printer produces 25 pages per minute."

If p is pages and t is time:

p = 25t

This is direct variation.


But "Per" Does Not Always Guarantee Direct Variation

Suppose a taxi charges:

$4 per kilometre plus a $6 starting fee

The cost equation is:

C = 4d + 6

Although the situation contains "$4 per kilometre," there is also a non-zero starting value.

Therefore:

This is not direct variation.

Always check whether the relationship has the form:

y = kx


Identifying Direct Variation from an Equation

Which equations represent direct variation?

y = 5x

Yes.

y = −3x

Yes.

y = 0.4x

Yes.

y = 5x + 2

No.

y = 7 − 3x

No.

y = x²

No.

A direct variation must be expressible as:

y = kx


Identifying Direct Variation from a Graph

A graph represents direct variation when it:

  • is a straight line
  • passes through the origin (0, 0)

Both conditions are necessary.

A straight line that crosses the y-axis somewhere other than zero is linear but not proportional.

https://images.openai.com/static-rsc-4/7yk8kw99JyaA4Ns9Bs_8LgMVjSAcM07F41_PlOJNuw20fBuXhsZPcLy4j2EF44xsonFkqXbj9HQet9YPveqkEKc4d5d-k4URgiHl-tf-phujtTZSV9umBzw2mc89N4j3Nbanuw3CotcnuT1YWboRpn7Cn8nqmS2gKR2798PpuyiUwv4ABHeOgEmvks1B0Sk_?purpose=fullsize
 
https://images.openai.com/static-rsc-4/TC1k7isEfRYIXoFypF8BuFwIPij-wE6KdnvM5I4oM2V2osB83r9LXccJYjTO5axCnqwBKDHa7JCKywGkc5TqVll93UYVMWUSxMelsMF_KhTtxemdzbckpGAc3SBGZJmeCeWopnngsSQ01P2i0bm9ot3E-0MmyRJFAbqVaI0Gl0lo0Nt28DSJm9-Bf6D6bPWK?purpose=fullsize
 
https://images.openai.com/static-rsc-4/zqLOOHrtWHQ014fCqn9IrI8aFBz5RAVoKxn3K55Wo8WNjwzrxlHgS-03hN5csgO3fEs7a5HUn4d6io6Hp7USGT11cf6HGqKJw2mAA_BnQk0PxlteONjtMBoa0WP9amnjxemlyxoEV_yZMk0a-tpEF1s5o226xMldHsZTRTDCdB7szIURZQYv690L7eMAn2wQ?purpose=fullsize
 
7

Direct Variation vs Other Linear Relationships

Compare:

A: y = 4x

and:

B: y = 4x + 6

Both have slope:

4

Both are linear.

But only A is direct variation.

For A:

when x = 0, y = 0.

For B:

when x = 0, y = 6.

Therefore, B has a non-zero intercept and is not directly proportional.


Constant Difference vs Constant Ratio

This distinction is important.

A linear relationship has a constant rate of change.

A direct variation also has a constant ratio y/x.

Consider:

y = 3x + 5

Its slope is constantly 3.

But:

y/x

does not remain constant.

Therefore, the relationship is linear but not proportional.

For:

y = 3x

both the rate of change and y/x remain 3.

Therefore, it is direct variation.


Building an Equation from a Table

Consider:

x y
3 21
5 35
8 56
10 70

Calculate:

21/3 = 7

35/5 = 7

56/8 = 7

70/10 = 7

Therefore:

k = 7

Equation:

y = 7x


Checking the Equation

For:

y = 7x

use x = 8:

y = 7(8)

y = 56

The table contains:

(8, 56)

The equation correctly represents the relationship.

Checking several pairs provides stronger verification.


Finding a Missing Table Value

Suppose:

x y
2 10
4 20
7 ?
9 45

From:

10/2 = 5

the constant is:

k = 5

Therefore:

y = 5x

For x = 7:

y = 5(7)

y = 35


Finding a Missing Input

Suppose:

y = 8x

and the output is:

y = 72

Then:

72 = 8x

x = 9

Therefore:

x = 9


Comparing Two Direct Variations

Consider:

A: y = 3x

B: y = 5x

Both are direct variations.

For A:

k = 3

For B:

k = 5

For the same positive input, B produces a larger output because its constant of variation is larger.


Direct Variation and Unit Rates

The constant of variation often represents a unit rate.

Suppose:

4 kg of fruit costs $14.

Find the cost per kilogram:

k = 14/4

k = 3.5

Therefore:

C = 3.5m

The unit rate is:

$3.50/kg

For 9 kg:

C = 3.5(9)

C = $31.50


Finding a Better Buy

Suppose Store A sells:

5 notebooks for $15.

Unit rate:

15/5 = $3 per notebook

Store B sells:

8 notebooks for $20.

Unit rate:

20/8 = $2.50 per notebook

If each store uses a constant price per notebook, the cost equations are:

Store A:

C = 3n

Store B:

C = 2.5n

Store B has the smaller constant of variation and therefore the lower cost per notebook.


Solving a Multi-Step Context Problem

A machine produces 180 components in 12 minutes at a constant rate.

Find the constant of variation.

Let:

C = components produced

t = time in minutes

Use:

k = C/t

k = 180/12

k = 15

Therefore:

C = 15t

How many components are produced in 35 minutes?

C = 15(35)

C = 525


Solving for Time

Using:

C = 15t

how long does it take to produce 900 components?

900 = 15t

Divide:

t = 60

Therefore:

60 minutes

are required.


Verifying a Proportional Relationship

Suppose someone claims this table represents direct variation:

x y
2 8
4 16
6 24
10 40

Check the ratios:

8/2 = 4

16/4 = 4

24/6 = 4

40/10 = 4

The ratio is constant.

Therefore:

k = 4

and the claim is correct.


Detecting a Non-Proportional Table

Consider:

x y
1 5
2 8
3 11
4 14

The differences are constant:

+3, +3, +3

So it is linear.

But the ratios are:

5/1 = 5

8/2 = 4

11/3 ≈ 3.67

14/4 = 3.5

The ratios are not constant.

Therefore:

The relationship is linear but not direct variation.


A Reliable Strategy for Direct Variation Problems

When working with direct variation:

  1. Identify the two variables.
  2. Determine whether the relationship is proportional.
  3. Write the general model:

    y = kx

  4. Use known values to calculate:

    k = y/x

  5. Include units when interpreting k.
  6. Write the complete direct variation equation.
  7. Substitute the required input or output.
  8. Solve for the unknown.
  9. Check that the answer is reasonable.
  10. Interpret the result in context.

How to Recognize Direct Variation Quickly

Ask:

Equation:
Can it be written as y = kx?

Table:
Is y/x constant?

Graph:
Is it a straight line through (0, 0)?

Situation:
Does one quantity change proportionally with the other, with no fixed starting amount?

If these conditions are satisfied, the relationship represents direct variation.


Common Mistakes

Thinking every linear relationship is direct variation

For example:

y = 3x + 5

is linear but not direct variation.

Ignoring the y-intercept

A direct variation must have:

b = 0

Checking only the differences in a table

Constant differences show linearity, but direct variation requires a constant ratio y/x.

Dividing in the wrong order

For:

y = kx

use:

k = y/x

Thinking the constant must be positive

A direct variation can have a negative constant.

Ignoring units

In real-world applications, k often represents a meaningful rate.

Assuming a straight line always represents direct variation

It must also pass through the origin.

Adding a starting value to y = kx

An equation such as:

y = 4x + 10

is no longer direct variation.

Confusing direct variation with inverse variation

In direct variation, increasing x by a factor causes y to increase by the same factor when k is positive. In an inverse relationship, one quantity decreases as the other increases in a different proportional way.


Key Terms

Direct variation — relationship in which one variable is a constant multiple of another.

Proportional relationship — relationship with a constant ratio between corresponding quantities.

Constant of variation — constant k in the equation y = kx.

Constant of proportionality — another name for the constant of variation.

Ratio — comparison of two quantities by division.

Unit rate — rate describing the amount of one quantity for one unit of another.

Origin — coordinate point (0, 0).

Slope — rate of change of a linear relationship.

y-intercept — point where a graph crosses the y-axis.

Linear relationship — relationship with a constant rate of change.

Variable — quantity represented using a symbol that can take different values.

Proportion — equation stating that two ratios are equal.

Scaling — increasing or decreasing quantities by a common factor.


Key Takeaways

  • Direct variation describes a proportional relationship between two variables.
  • The general equation is y = kx.
  • The value k is the constant of variation.
  • The constant can be calculated using k = y/x.
  • In a direct variation, the ratio y/x remains constant.
  • Direct variation is a special type of linear relationship.
  • Every direct variation has a y-intercept of zero.
  • The graph of a direct variation is a straight line through the origin.
  • The constant of variation is also the slope of the graph.
  • Direct variation can have positive, negative, fractional, or decimal constants.
  • Multiplying the input by a factor causes the output to be multiplied by the same factor.
  • Tables representing direct variation have constant y/x ratios.
  • A linear table with a constant difference is not necessarily proportional.
  • Equations such as y = mx + b are direct variations only when b = 0.
  • The constant of variation often represents a unit rate in real-world situations.
  • Direct variation appears in constant-speed motion, hourly pay without a fixed bonus, cost per item, recipe scaling, map scales, and mass-volume relationships at constant density.
  • Proportions and direct variation equations are two methods for solving the same type of proportional problem.
  • Real-world interpretations should include the units and meaning of the constant.

Check Your Understanding

  1. Define direct variation in your own words.
  2. Identify the constant of variation in y = 7x.
  3. Determine whether y = 4x + 3 represents direct variation. Explain your answer.
  4. Determine whether the table represents direct variation. If it does, find k and write the equation.
x y
2 10
4 20
6 30
9 45
  1. Determine whether this table represents direct variation. Explain how you know.
x y
1 6
2 10
3 14
4 18
  1. If y varies directly with x and y = 28 when x = 4, find the constant of variation and write the equation.
  2. Using your equation from Question 6, determine y when x = 15.
  3. If y = 6x and y = 102, determine x.
  4. Five movie tickets cost $62.50. Assuming the cost varies directly with the number of tickets, find the cost per ticket and determine the cost of 8 tickets.
  5. A cyclist travels 42 km in 2.5 hours at constant speed. Write a direct variation equation relating distance and time. Use it to determine the distance travelled in 6 hours.
  6. A recipe uses 360 g of flour for 3 batches. Assuming direct variation, find the constant of variation and determine the amount of flour required for 7 batches.
  7. A material has a constant density. A 12 cm³ sample has a mass of 96 g. Write an equation relating mass m to volume V and determine the mass of a 35 cm³ sample.
  8. Compare y = 2.5x and y = 4x. Identify the constant of variation for each and explain what the larger constant means for positive values of x.
  9. A student says that y = 5x + 10 represents direct variation because y increases by 5 whenever x increases by 1. Explain why the student is incorrect and describe what additional condition is required for direct variation.
  10. A factory produces 280 components in 16 minutes at a constant rate. Define variables, calculate the constant of variation with units, write a direct variation equation, determine how many components should be produced in 45 minutes, and calculate how long it should take to produce 1050 components.