<< Chapter < Page Chapter >> Page >
This module defines what a variable is and what it does.

A variable is a letter that stands for a number you don’t know, or a number that can change.

A few examples:

Good examples of variable definitions

  • “Let p be the number of people in a classroom.”
  • “Let A be John’s age, measured in years.”
  • “Let h be the number of hours that Susan has been working.”

In each case, the letter stands for a very specific number. However, we use a letter instead of a number because we don’t know the specific number. In the first example above, different classrooms will have different numbers of people (so p can be different numbers in different classes); in the second example, John’s age is a specific and well-defined number, but we don’t know what it is (at least not yet); and in the third example, h will actually change its value every hour. In all three cases, we have a good reason for using a letter: it represents a number, but we cannot use a specific number such as “–3” or “ 4 1 2 ”.

Bad examples of variable definitions

  • “Let n be the nickels.”
  • “Let M be the number of minutes in an hour.”

The first error is by far the most common. Remember that a variable always stands for a number. “The nickels” are not a number. Better definitions would be: “Let n be the number of nickels” or “Let n be the total value of the nickels, measured in cents” or “Let n be the total mass of the nickels, measured in grams.”

The second example is better, because “number of minutes in an hour” is a number. But there is no reason to call it “The Mysterious Mr. M” because we already know what it is. Why use a letter when you just mean “60”?

Bad variable definitions are one of the most common reasons that students get stuck on word problems—or get the wrong answer. The first type of error illustrated above leads to variable confusion: n will end up being used for “number of nickels” in one equation and “total value of the nickels” in another, and you end up with the wrong answer. The second type of error is more harmless—it won’t lead to wrong answers—but it won’t help either. It usually indicates that the student is asking the wrong question (“What can I assign a variable to?”) instead of the right question (“What numbers do I need to know?”)

Variables aren’t all called x. get used to it.

Many students expect all variables to be named x , with possibly an occasional guest appearance by y . In fact, variables can be named with practically any letter. Uppercase letters, lowercase letters, and even Greek letters are commonly used for variable names. Hence, a problem might start with “Let H be the home team’s score and V be the visiting team’s score.”

If you attempt to call both of these variables x , it just won’t work. You could in principle call one of them x and the other y , but that would make it more difficult to remember which variable goes with which team. It is important to become comfortable using a wide range of letters. (I do, however, recommend avoiding the letter o whenever possible, since it looks like the number 0.)

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Math 1508 (lecture) readings in precalculus. OpenStax CNX. Aug 24, 2011 Download for free at http://cnx.org/content/col11354/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Math 1508 (lecture) readings in precalculus' conversation and receive update notifications?

Ask