The formula this page uses
y = k x k = y / x
Use the free direct variation calculator to model the algebraic relationship, calculate the requested quantity, and verify it in the original expression. Choose a focused operation below to calculate, inspect the method, and connect the result to a visual model.
The visual updates with your calculation.
y = k x k = y / x
A spring stretches 45 mm when a 12 N weight hangs on it
Yes, and it is the fastest test there is. y = kx with x = 0 gives y = 0 no matter what k is, so any relationship with a fixed starting amount, like a delivery fee or a base salary, is disqualified straight away.
Negative is fine: y = −2x still has a constant ratio of −2, it just slopes downhill. Zero is not useful, because y = 0x makes y always 0 and x stops mattering entirely.
Yes, but the thing doing the varying is x², not x. You find k with k = y ÷ x². Dividing by plain x will give you a number that keeps changing, which is exactly what the table above shows for y = x².
Divide y by x on every row. Real measurements wobble a little, so look for a ratio that stays close rather than exactly equal. A ratio that drifts steadily in one direction is the sign of a start-up amount or a power hiding in the rule.
This workspace keeps the formula and the meaning together. Decimal results are rounded for display; retain full precision when you continue a calculation.
Match each input to the quantities in the problem and keep units consistent.
The result panel identifies the formula or algorithm and shows the main substitutions.
Use the diagram, plot, or data display to check scale, direction, and plausibility.
Move to targeted questions once you can explain why the method applies.
A calculator confirms an answer. Working the method yourself is what makes the next problem faster.