A variable is a box, and it exists to contain a value. Sometimes the value is already inside the box, and you have to figure out what that value is. Other times, the box is empty, and you get to pick the value to put inside.
Some Greeks used variables in their work back in the third century. Then there is no record of their use for about a millenium, with Europeans finally resurrecting their use in the early 1200's. But they didn't really take off until the 1500's. (More info here.)
(You may want to save a link to the home page of the site at the link above. If you ever need background info on math topics, this site is "the" reference to use.)
Content Continues Below
Remember when you were in elementary school, and you were learning your addition? The teacher would hand you worksheets that said things like:
□ + 2 = 5; fill in the box.
Variables are the same thing. Now we say:
x + 2 = 5; solve for x.
We switched from boxes to letters because letters are better. Boxes come in only a few meaningless shapes; letters come in many varieties, and they can stand for something. For instance, the formula from geometry for finding a circle's circumference is:
C = 2 π r
This formula makes more sense than, say:
□ = 2 π △
The two formulae say exactly the same thing, but using "C" for "circumference" and "r" for "radius" is more useful than using "square" and "triangle, respectively. Boxes are fine, but letters are better.
Affiliate
In the above discussion, I illustrated both uses of variables:
Affiliate
A variable is independent if you get to pick its value; it's dependent if all you can do is solve for its one fixed value. In other words, a "dependent" variable is one whose value has already been determined by other things; its value is dependent upon those things. An "independent" variable is one whose value is up to you; you get to pick it, independently, on your own.
In the equation "x + 2 = 5" in the first example above, x can only have a value of 3. The statement (the equation) is not true for any other value. That is to say, the value of x is "fixed"; we just have to figure out what that fixed value is. In this context (that is, when the variable "holds" a fixed value that you can find by solving), the variable may also be called "the unknown".
On the other hand, in the equation "C = 2πr" in the second example above, the radius r can be any non-negative number we choose — we get to pick! — and then we get to figure out what the circumference C is. We got to put the value in ourselves.
Note: While the value of the radius r in "C = 2πr" is independent, the resulting value of the circumference C is dependent upon whatever value we picked for r. If we picked instead independently picked a value for C, then we'd have to solve for the corresponding value of r, making r, in that case, the dependent variable.
Affiliate
In this context (that is, where you get to plug a value into one letter, and then can find the value for another letter), the variable whose value you pick (in this case, the r) is called the "independent" variable, because you, independently of others, got to pick the value; and the variable for which you can then find the value (in this case, the C) is called the "dependent" variable, because its value was entirely dependent upon what you picked for the value of r.
Advertisement
Now that we have variables, what do we do with them? Go back in your mind again to elementary school: Your teacher would have you add "2 apples plus 6 apples is 8 apples". The same rules apply to variables:
"2 boxes plus 6 boxes is 8 boxes"
...or, using variables:
"2x + 6x = 8x"
Or:
"A box and another box is two boxes"
...which translates as:
"x + x = 2x"
Using negatives:
"Two dollars, less the ten that you owe to your friend, means that you're eight dollars in the red"
or:
"2x − 10x = −8x".
But note: "2 apples plus 6 oranges" is just 2 apples and 6 oranges; they might make a nice fruit salad, but they're not 8 of anything. In the same way, "2x + 6y" is just 2x + 6y; you can't combine the two variables into one. The variable portions of the things being added (the "terms") aren't the same — in mathematical parlance, the terms are "unlike" — so they cannot be "combined".
By the way, this form of multiplication notation, where a number and a letter are put next to each other, is called "multiplication by juxtaposition" ("juhx-tuh-po-ZIH-shun"), because the number and the letter are "juxtaposed" (that is, they're placed right next to each other). Any time you see a number and a variable, or two or more variables, placed right next to each other like this, it means that the number and the variable, or the many variables, are to be multiplied together.
When multiplying, we use exponents. For instance, (5)(5) = 52. Of course, we can simplify this as 52 = 25. Similarly, (x)(x) = x2. But, until we know what value to put in for x, we cannot simplify this any further.
Warning: Don't confuse multiplication and addition: (x)(x) does not equal 2x, just as (5)(5) does not equal (2)(5); instead, (x)(x) equals x2.
By the way, take note of the technique I just used: I used plain old numbers, with which I was well familiar before I ever took algebra, in order to example-fy what is going on in the world of algebra. You can do the same thing in your own studies. If you're not sure what to do with the variables, try using regular numbers, where you know what to do. Then, whatever you did with the numbers, try doing the same thing with the variables.
Content Continues Below
When evaluating variable expression, it is important to pay attention to the fact that the variable is a "box" into which you're plugging a value. Any multipliers, powers, or other things are happening outside of that box. For instance:
Evaluate x2 when x = −3
Sometimes people will write the following as their evaluation expression:
Wrong way!
−32 = −(3)(3) = −9
But this moves the squaring inside the box, and takes the "minus" outside of the box. This is backwards. Instead, the evaluation expression should be:
Right way:
(−3)2 = (−3)(−3) = 9
There are often difficulties when the "minus" is outside of the box. For instance:
Evaluate −x2 for x = −3
There tend to be two errors that are the result of the above. Either people will do this:
Wrong way!
−(−(32)) = +32 = 9
...or this:
Wrong way!
(−(−3))2 = (+3)2 = 9
However, the correct evaluation expresson is the following:
Right way:
−(−3)2 = −(9) = −9
Take your time with variables. They are incredibly useful, and you'll need to have a solid grasp of how they work in your future studies. For further information on how to work with variables, try simplifying with parentheses, simplifying with exponents, how to translate English into math.
URL: https://www.purplemath.com/modules/variable.htm
© 2024 Purplemath, Inc. All right reserved. Web Design by