🎉 Launch offer — save 30% on every plan, locked in for early families. See plans →

Direct Variation Equation: Definition, Method and Examples

MathPublished

Direct Variation Equation

A direct variation equation is a linear equation that describes a constant ratio between two variables. When one variable changes, the other changes at the exact same rate. This means the relationship between the two variables is directly proportional.

What is a direct variation equation?

A direct variation equation represents a relationship where the quotient of two variables remains completely constant. As the input variable increases, the output variable increases or decreases by a consistent multiple.


If two quantities vary directly, their graph always forms a perfectly straight line that passes exactly through the origin, which is the coordinate point (0,0)(0, 0). The relationship never has a starting value other than zero.

Identify the form y equals kx

The standard formula for a direct variation equation is written as y=kxy = kx.

In this formula, the variables xx and yy represent the changing quantities. The letter kk represents the constant of proportionality, which is the fixed multiplier connecting the two variables.

A visual breakdown of the equation y equals kx, identifying y as the dependent variable, k as the constant of variation, and x as the independent variable.

The constant kk can be any real number except zero. If a linear equation includes an added or subtracted value at the end, such as y=3x+2y = 3x + 2, it is not a direct variation equation because its graph does not pass through the origin.

Find the constant of variation

To write a direct variation equation, you must first find the numerical value of kk. Because y=kxy = kx, you can isolate kk by dividing both sides of the equation by xx.


The constant of variation is found by dividing the output by the input.


The formula to find the constant of variation is k=yxk = \dfrac{y}{x}.

Substitute any valid pair of xx and yy values into this formula. For example, if a bicycle travels 4545 kilometers in 33 hours, the constant kk is 4545 divided by 33, which equals 1515. In word problems, this constant often represents a unit rate, such as 1515 kilometers per hour.

BUILT AROUND YOUR CHILD

A learning plan shaped by your child, not the class

State-aligned Math plus our own Logic and English curriculum. An adaptive baseline test finds the gaps and fills them.

Write an equation from values

When given a data table or a set of paired values, you can write the direct variation equation by calculating the constant multiplier connecting each pair.

A two-column table showing x values of 2, 5, and 8, and y values of 6, 15, and 24. Arrows show that multiplying each x value by 3 results in the corresponding y value.

Follow these exact steps to build the equation:

  1. Select one pair of non-zero values for xx and yy.
  2. Divide the yy value by the xx value to calculate kk.
  3. Check another pair of values from the table to confirm the ratio remains identical.
  4. Substitute your verified value of kk into the standard equation form y=kxy = kx.

Write an equation from a graph

You can also determine the direct variation equation by analyzing its visual representation on a coordinate grid. Directly proportional graphs are always straight lines extending from the origin, (0,0)(0, 0).

A coordinate plane showing a straight line passing through the origin 0,0 and the point 4, 10. The x-axis goes from 0 to 8 and the y-axis goes from 0 to 14.
  1. Verify that the graphed line is straight and intersects the origin.
  2. Identify the exact coordinates of another clear point on the line, written as (x,y)(x, y).
  3. Divide the yy-coordinate by the xx-coordinate to find the constant kk.
  4. Write the final formula by substituting kk into the equation y=kxy = kx.

Worked examples

Review these step-by-step examples to see how the direct variation equation is built in different mathematical contexts.

Example 1: Finding an equation from a word problem


Question: A painter earns 240240 dollars for 88 hours of work. The total pay yy varies directly with the number of hours worked xx. Write the direct variation equation for this relationship.


Method:

  1. Identify the given values: y=240y = 240 and x=8x = 8.
  2. Calculate the constant of variation using k=yxk = \dfrac{y}{x}.
  3. Substitute the values: k=2408=30k = \dfrac{240}{8} = 30.
  4. Write the standard equation: y=kxy = kx.
  5. Substitute the constant: y=30xy = 30x.

Answer: The direct variation equation is y=30xy = 30x.


Check: Multiply 3030 by 88 hours to confirm it produces exactly 240240 dollars.


Example 2: Writing an equation with a fractional constant


Question: If yy varies directly with xx, and y=6y = 6 when x=24x = 24, what is the direct variation equation?


Method:

  1. Identify the values: y=6y = 6 and x=24x = 24.
  2. Find the constant of variation: k=yxk = \dfrac{y}{x}.
  3. Substitute the numbers: k=624k = \dfrac{6}{24}.
  4. Simplify the fraction by dividing the numerator and denominator by 66. The result is k=14k = \dfrac{1}{4}.
  5. Insert kk into y=kxy = kx.

Answer: The direct variation equation is y=14xy = \dfrac{1}{4}x.


Check: Substitute x=24x = 24 into the equation. 14×24=6\dfrac{1}{4} \times 24 = 6, which matches the original given value.


Example 3: Checking if a mixed equation is a direct variation


Question: Does the equation 5y=35x5y = 35x represent direct variation? If yes, find the constant of variation.


Method:

  1. A direct variation must be written in the form y=kxy = kx.
  2. Isolate yy in the given equation by dividing both sides by 55.
  3. Calculate the right side: 35x5=7x\dfrac{35x}{5} = 7x.
  4. The simplified equation is y=7xy = 7x. This strictly matches the form y=kxy = kx with no added terms.

Answer: Yes, it is a direct variation equation. The constant of variation is 77.


Check: The equation y=7xy = 7x has no yy-intercept other than zero, meaning it passes directly through the origin.

A parent reviewing their child's subject progress on a laptop
FOR PARENTS

See exactly where your child is strong — and where not

Chapter-by-chapter progress, mastery scores and lesson reports. Request custom worksheets from an academic counsellor.

Common mistakes

Dividing in the wrong order. Students frequently calculate k=xyk = \dfrac{x}{y} instead of k=yxk = \dfrac{y}{x}. Always divide the dependent output variable by the independent input variable.


Adding a constant value. A direct variation equation cannot have a non-zero yy-intercept. An equation like y=4x+1y = 4x + 1 is a valid linear equation, but it is not a direct variation because the line would cross the yy-axis at 11, missing the origin completely.

Frequently asked questions

Can the constant of variation be a fraction or a decimal?

Yes, kk can be any non-zero real number. Equations like y=23xy = \dfrac{2}{3}x or y=1.25xy = 1.25x are completely valid direct variation equations.


Can the constant of variation be negative?

Yes. A negative constant means that as the xx value increases, the yy value decreases at a constant rate. The graph of an equation like y=−5xy = -5x still forms a straight line passing through the origin, sloping downward.


What is the difference between direct and inverse variation?

In direct variation, the two variables increase or decrease together while maintaining a constant ratio. In direct and inverse variation, an inverse variation means one variable decreases proportionately as the other increases, keeping a constant product where x×y=kx \times y = k.

Practice questions

Question

A coordinate grid with a line passing through the origin 0,0 and the point 3, 12. The x-axis goes up to 6 and the y-axis goes up to 16.

Which direct variation equation represents the line shown in the graph?

  • y=14xy = \dfrac{1}{4}x

  • y=4xy = 4x

  • y=3xy = 3x

  • y=12xy = 12x

Answer:

y=4xy = 4x

Question

If yy varies directly with xx, and y=42y = 42 when x=6x = 6, what is the constant of variation?

  • k=17k = \dfrac{1}{7}

  • k=48k = 48

  • k=7k = 7

  • k=252k = 252

Answer:

k=7k = 7

Question

A machine produces 150150 parts in 55 hours. If the total number of parts yy varies directly with the number of hours xx, which equation models this relationship?

  • y=130xy = \dfrac{1}{30}x

  • y=30xy = 30x

  • y=150xy = 150x

  • y=5x+150y = 5x + 150

Answer:

y=30xy = 30x

Question

A value table showing three pairs of variables. When x is 4, y is 10. When x is 10, y is 25. When x is 12, y is 30.

Which direct variation equation matches the values in the table?

  • y=6xy = 6x

  • y=25xy = \dfrac{2}{5}x

  • y=52xy = \dfrac{5}{2}x

  • y=2.4xy = 2.4x

Answer:

y=52xy = \dfrac{5}{2}x

Question

Which of the following equations does not represent a direct variation?

  • y=9xy = 9x

  • y=34xy = \dfrac{3}{4}x

  • 8y=16x8y = 16x

  • y=2x+7y = 2x + 7

Answer:

y=2x+7y = 2x + 7

Early access

Join the COPRIMES waitlist

Tell us a little about your child. We'll email you when your spot opens, and early families lock in launch pricing.

Early-access emails only. Unsubscribe anytime.