Skip to content
Your progress

Checking your sign-in…

Who's learning?

Each profile keeps its own read lessons, badges, streak, and practice scores on this device.

Lesson 3 of 11

One input, one output

Show on a big screen

9 min

Text size

Put a number into 4x − 3. One number comes out. What comes out when x = 2?

Loading lab…

Input x. Multiply by 12. Then add 30.
Step 1 of 3
  1. Input x. Multiply by 12. Then add 30.
  2. Input 3. Multiply: 12 × 3 = 36.
  3. Add 30: 36 + 30 = 66. Output 66.

The rule

At x = 2, 4x − 3 is 4 × 2 − 3 = 8 − 3 = 5.

A linear rule is y = ax + b, and a is not 0. Here x is the input and y is the output. The letters a and b are fixed numbers.

If a is 0, the rule is y = b. That is a constant. It never changes.

Multiply the input by a, then add b. The order is fixed.

An auto charges ₹30 to start and ₹12 for each kilometre. Let x be the kilometres and y the fare in rupees. The rule is y = 12x + 30.

  • Multiply first: 12 × 3 = 36.
  • Then add: 36 + 30 = 66. The fare is ₹66.
  • Adding first is wrong: 3 + 30 = 33, then 12 × 33 = 396.

Put 2 in place of x to get the value at 2.

One fare rule, four distances
Kilometres12 × km+ 30Fare
0030₹30
11242₹42
33666₹66
784114₹114

The rule accepts any number, even a negative one. Each input gives one output.

Try the lab to finish this lesson.