# At a Glance - Independent and Dependent Variables

Let's take a closer look at how independent and dependent variables work by working through some examples.

### Sample Problem

Jim gets paid $10 per hour. The amount Jim gets paid in a week depends on the number of hours he works that week. If all he did was put in two hours shelving books at the library, he'll barely be able to afford to buy a book. Good thing he works at the library.

On the other hand, if he works 12-hour days in the assembly line of an automobile factory, he can afford to buy all the books he wants. Same rate (input), different pay (output).

What's an equation that represents his pay?

Let's say *p* represent the amount Jim gets paid in a week, and* h* represent the number of hours Jim works that week. That means we can set up the following equation:

*p* = 10*h*

The letters *p* and *h* are called variables because they're not fixed numbers. This fact reminds us: be sure to have your numbers spayed or neutered. The quantity *h* varies because Jim may work a different number of hours each week. The quantity *p* varies because *p* depends on *h*.

#### Example 1

Tara throws a party every month. She's a little desperate for attention. The number of cupcakes she bakes for her guests depends on how many kids will be at the party. Tara likes to have two cupcakes per kid. She would also like to have some adult friends, but good luck with that, Tara. How should we express this situation algebraically? |

#### Example 2

Fred and John are brothers. John, who is the older of the two and was largely deprived of attention as a young boy, is constantly trying to one-up Fred. Both brothers enjoy clothes shopping. However, because of John's competitiveness, every time Fred buys a new pair of jeans, John will go out and buy a pair that's exactly $10 more expensive. Express in symbols the relationship between the amount of money Fred spends on a pair of jeans and the amount of money John spends on a pair of jeans. Let |

#### Exercise 1

Ruth gets $2 every time she helps her dad gather sticks in the yard. Apparently, there's a major stick epidemic in their neighborhood. Let *t* be the number of times Ruth helps her dad gather sticks in the yard, and let *R* be the amount of money Ruth gets for picking up the sticks. What's an equation that shows the relationship between *R* and *t*?

#### Exercise 2

Ruth gets $2 every time she helps her dad gather sticks in the yard. Let *t* be the number of times Ruth helps her dad gather sticks in the yard, and let *R* be the amount of money Ruth gets for picking up the sticks. Does *R* depend on *t* or does *t* depend on *R*?