Main content

## Algebra 1

### Course: Algebra 1 > Unit 1

Lesson 3: Substitution and evaluating expressions- Evaluating expressions with two variables
- Evaluating expressions with two variables
- Evaluating expressions with multiple variables
- Evaluating expressions with two variables: fractions & decimals
- Evaluating expressions with two variables: fractions & decimals
- Evaluating expressions with multiple variables: fractions & decimals

© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Evaluating expressions with two variables

We've already evaluated expressions with one variable. Now it's time to do it with two variables.

## How to evaluate an expression with two variables

Let's say we want to evaluate the expression 10, plus, 2, p, minus, 3, r. Well, first we need to know the values of p and r. For example, to evaluate the expression when start color #11accd, p, equals, 4, end color #11accd and start color #e07d10, r, equals, 5, end color #e07d10, we just replace start color #11accd, p, end color #11accd with start color #11accd, 4, end color #11accd and start color #e07d10, r, end color #e07d10 with start color #e07d10, 5, end color #e07d10:

So, the expression 10, plus, 2, p, minus, 3, r equals 3 when p, equals, 4 and r, equals, 5.

## Now, let's practice

## Want to join the conversation?

- On the first question, it says my answer is wrong and I got 18 as my answer.(64 votes)
- At first i got that too, but then i realized there was a -6 at the end of the problem. So the actual answer was 12. :)(72 votes)

- i dont get the 2nd q how do we solve it when its an fraction(17 votes)
- a fraction is division. so 10 divided by 5 can be written as a fraction 10/5, and x/y means x divided by y. does that help? you would do it along with multiplication in the order of operations.(28 votes)

- how do you expand and simplify: 2(x- 1)(x+1)+(2x-1)(2x-1)(11 votes)
- First distribute 3x over (2x+5) and then distribute -2x over (x-6):

3x(2x+5) - 2x(x-6)

= 6x^2 + 15x - 2x^2 + 12x [Note: -2x * -6 = +12x, not -12x]

= 6x^2 - 2x^2 + 15x + 12x [Rewrite with like terms in order.]

= 4x^2 + 27x(18 votes)

- how can i find the answer in the equation 5x - x/y when x=4 and y =2(8 votes)
- 1) Substitute each value into the expression for their respective variable
`5(4) - 4/2`

2) Follow PEMDAS

-- Multiply:`20 - 4/2`

-- Divide:`20 - 2`

-- Subtract:`18`

Hope this helps.(14 votes)

- How come when evaluating expressions with two variables (the previous section) that the minus was completed prior to the plus. The questions was xy - y + 3x where x = 3 and y =2. BOMDAS 3 x 2 - 2 + 3 x 3 =

6 - 2 + 9

6 - 11(5 votes)- xy-y+3x , if x=3 and y=2 results to 6 - 2 + 9 = 13.

Either a parenthesis in the exercise got lost or the solution is wrong,

but for the given expression the above result is the correct solution.(13 votes)

- After coming back from the Holiday BELIEVE ME! I had to go through these problems more than (2)- (3) times. Knowing how much I love math this, probably was one of the toughest days ever. This is how I solved the First and second problems:

10+2p-3k ( p=4, r=5)

10 +2*4-3*5

10+8-15

18-15=3

6a+4b-6 ( a=1, b=3)

6*1+4*3-6

6+12-6

18-6=12(11 votes)- That is correct! Great job!(1 vote)

- I still don’t get 5 * y - x/y when x= 4 and y=2(8 votes)
- First things first the question above is 5x - x/y

You copied it wrong

Even if you want the answer, here you go

Your question is- 5 * y - x/y

Let's substitute-5 * 4 - 4/2

Which gives us 5 * 4 - 2

20 - 2 = 8

Hope that helped(5 votes)

- are we always gonna be shown the numbers the variables represent when doing the work?(9 votes)
- Please help me understand answer from video demonstration

xy-y+3x, where x = 3 and y = 2

3(2)-2+3(3)

6-2+9

The answer is given as 13

Why isn't it 6-(2+9)= -5(5 votes)- Because that is not a way to group. Both 6 and 9 are positive and 2 is negative, so you could associate (6+9)-2, but not as you show which makes the 0 negative on distribution(6 votes)

- how would i do 5x-x/y when x is 4 and y is 2(5 votes)
- First, we need to plug the numbers into the expression.

So, 5x-x/y becomes 5 x 4 - 4/2.

Next, we need to follow PEMDAS, so we need to do the multiplication and division first.

Then, this expression becomes 20 - 2.

And the result is 18.

I hope it helps.(9 votes)