If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Solutions to 2-variable equations

The solution of an equation with one variable is a number. How does the solution of a 2-variable equation look like? Well, it is an ordered pair. Learn more about it and how to test solutions to 2-variable equations.

Want to join the conversation?

  • marcimus purple style avatar for user Viji George
    I need some examples of linear equations in 2 variables
    (8 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user ezhang
    this video helps but I could use more help
    (9 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user yahy8760
    serious question . Does anyone actually use this ? if so for what ? cus honestly i dont see the point
    (2 votes)
    Default Khan Academy avatar avatar for user
    • aqualine ultimate style avatar for user AD Baker
      Yahy,

      Solving linear equations is a foundation step for solving systems of linear equations, which is a foundation step for linear programming (which, surprisingly, is not computer programming) or linear optimization.

      Linear programming is a method for calculating an optimal result given a set of constraints. Linear programming is used in business all the time.

      For example, if you owned a shop, you might want to know the best combination of items to stock in the limited capacity of the shop in order to maximize cash flow. Your most profitable item might not be the best selling or your space might only hold 10 of your most profitable item or 40 of a less profitable item. Linear programming helps you to determine whether to stock 5 of the most profitable item and 20 of the less profitable item or 4 of the most profitable and 30 of the less profitable to keep the cash flowing steadily.

      If you don't own the shop, but you work there, you want your boss to be able to do linear programming so there is money for you to be paid.

      If you are able to do the linear programming, you would be able to see whether the boss has the right idea and, perhaps, you could make a suggestion that will get you a raise.
      (4 votes)
  • hopper cool style avatar for user Zena
    WHY is this so confusing? Sinks into Confusion
    (6 votes)
    Default Khan Academy avatar avatar for user
  • leafers ultimate style avatar for user jacksoncassidy
    Is there a way to solve for x and y to find the correct value of x and y? At , is the only way to solve these two variable equations with plugging in each answer khan academy gives us?
    (6 votes)
    Default Khan Academy avatar avatar for user
    • stelly blue style avatar for user Kim Seidel
      Yes, you can directly find points that are solutions to an equation. This is just an intro video to show you how to recognize if a point is a solution or not. It is useful to understand this to check your work. The videos that follow this one will show you how to directly find points that are solutions to the linear equation.
      (1 vote)
  • duskpin tree style avatar for user Sayem Cat
    How can I solve an equation with two variables? An equation like ' 2x + 4y =100 solve for y and x '
    (2 votes)
    Default Khan Academy avatar avatar for user
    • mr pink green style avatar for user David Severin
      Solving for a variable is also called isolating the variable, so you want to move everything away from it.
      To isolate y, first subtract 2x from both sides (4y = -2x + 100), then divide by 4 (y = -1/2 x + 25). This is the more common usage because this is a linear function in slope intercept form - y in terms of x or y dependent on x.
      To solve for x, subtract 4y from both sides (2x = - 4y + 100), then divide by 2 (x = - 2y + 50).
      (7 votes)
  • primosaur ultimate style avatar for user Steve
    So this may make no sense... but is it possible to have a line be represented by an expression and not an equation? Is that even possible?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user aditya rajkumar
    Is there a way to find two variables without options given
    eg:- 4y+5x=12 but without options given
    (3 votes)
    Default Khan Academy avatar avatar for user
    • leaf orange style avatar for user A/V
      If the goal is to find x and y intersection, one question can't answer that. You must have at least 2 equations to solve the two variables, since you can't have an intersection point w one equation.

      hope that helps !
      (3 votes)
  • blobby green style avatar for user chlhale
    I feel like this is pretty simple math but what is it used for in real life?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • leafers tree style avatar for user Fira1031
    Is there a more efficient way to do this other than trial and error?
    (1 vote)
    Default Khan Academy avatar avatar for user
    • stelly blue style avatar for user Kim Seidel
      This video is showing you how to test given ordered pairs to see if they are points on the line (solutions to the linear equation).

      You can calculate points directly. You pick a value for one of the variables. Then substitute it into the equation to calculate the other variable. For example, for the equation in the video: -3x-y=6
      -- If x=0: -3(0)-y=6 becomes -y=6 then y=-6. So the point (0,-6) is a point on this line.

      Hope this helps.
      (3 votes)

Video transcript

- [Voiceover] Which of the ordered pairs is a solution of the following equation? Negative three x minus y is equal to six. What we have to remind ourselves is when we're give an ordered pair, the first number is the x coordinate and the second number is the y coordinate, or the y value. So when they tell us the ordered pair, negative four comma four, they're saying "hey look, if x is equal to "negative four, and y is equal to positive four, "does that satisfy this equation?" And what we can do, is we can just try that out. So we have negative three and everywhere we see an x, everywhere we see an x, we can replace it with negative four. So it's negative three times negative four, minus, minus and everywhere we see a y, we can replace it with positive four. We replace it with positive four. So negative three times x minus y, which is four, needs to be equal to six. Needs to be equal to six. Now is this indeed the case? Negative three times negative four is positive 12. Positive 12 minus four, positive 12 minus four is equal to eight, it's not equal to six. Is not equal, is not equal to six. So this one does not work out. So let's see, negative three comma three. We can do the same thing here. Let's see what happens when x is equal to negative three and y is equal to positive three. So we substitute back in, we get negative three. Negative three times x, which now we're going to try out x being equal to negative three. Minus y, minus y. Y is positive three here. Minus y, gonna do that y color blue. Minus y now needs to be equal to, now needs to be equal, just like before needs to be equal to six. So negative three times negative three. That's going to be positive nine. Nine minus three is indeed equal to six. Nine minus three is indeed equal to six. Nine minus three is six. That is equal to six. This works out. So negative three comma three is an ordered pair that is a solution to this equation.