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

Solving equations by graphing

You probably already solved a system of equations by graphing the equations and looking for intersection points. This method can actually be used to solve (or find an approximate solution to) any single equation, no matter what kind! This is a very exciting tool.

Want to join the conversation?

  • leaf grey style avatar for user Marcel Hrdina
    Are there tools in the future courses that will allow me to solve a problem like this?
    That is without doing it using brute force and let the computer graph the functions for me.
    (8 votes)
    Default Khan Academy avatar avatar for user
    • leaf green style avatar for user kubleeka
      The tools needed to solve this equation algebraically aren't on Khan Academy. This equation can only be solved in terms of something called the Lambert W function, which is only presented in some college math courses.

      However, Khan Academy will provide better tools to approximate the solution by hand in the calculus section.
      (25 votes)
  • duskpin ultimate style avatar for user yikian2021
    Can someone give me a basic review on functions like what it means by putting in a impute to get an output?
    (4 votes)
    Default Khan Academy avatar avatar for user
    • eggleston orange style avatar for user francisco.scorsato
      Imagine you have a machine (call that a function) that, when fed with something, spits something else out.
      This machine follows the rules:
      * Take the name of a person
      * Give the name of the biological mother of that person
      So, if I input myself, I would get as an answer my mother.
      In this case, the person's name is the input, the mother's name is the output and the machine is the function.
      Now let's try it with numbers.
      Say we have a machine (function) that takes any number and doubles it. We can represent that as f(x) = 2x (reads "f of x equals two x"). That means that, when we input any x into f(x), our answer is going to be 2 times that x. f(2) = 2*2 = 4.
      The input is simply the x I chose (in this case 2) and the output was what the function spat out (in this case, 4).
      And we can do more complicated functions, like:
      f(x) = x²
      What this function tells us is to square any number that we input into the function.

      Things that are important about functions:
      A function can only be a function if it has only one output per input. What this means is, if I input a number, the answer should always be only that one output. f(x)=2x can never give different results for the same x. By consequence, f(x) = +/-√x is not a function, because the square root of 4 can be either 2 or -2.
      We can also always graph a function, denoting the y-axis as f(x). What this means is that, for every x in the x-axis, we input that into the function we're graphing, and the result is going to be the y-coordinate of that x.

      I hope that helped a little bit. Not only you, but other people that may read this comment.
      (4 votes)
  • starky ultimate style avatar for user WhiteFox
    “pause this video and see if you can solve this” farewell my last remaining brain cell, you will be missed
    (3 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Mike
    How would you solve that logarithm with algebra?
    (6 votes)
    Default Khan Academy avatar avatar for user
  • piceratops ultimate style avatar for user Jimmy
    Did you guys hear the siren at the end of the video?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • piceratops ultimate style avatar for user Jimmy
    If you know how to solve this algebraically you are really smart.
    (2 votes)
    Default Khan Academy avatar avatar for user

Video transcript

- [Instructor] Let's say you wanted to solve this equation, two to the x squared minus three power is equal to one over the cube root of x. Pause the video and see if you can solve this. Well you probably realize that this is not so easy to solve. The way that I would at least attempt to tackle it is, you would say this is two to the x squared minus three is equal to x to the, I could rewrite this, this is one over x to the 1/3, so this is x to the negative 1/3 power. Maybe I can simplify it by raising both sides to the negative three power. And so then I would get, if I raise something to an exponent, then raise that to an exponent, I could just multiply the exponents. So it would be two to the negative three x squared plus nine power. I just multiplied both of these terms times negative three, is equal to x to the negative 1/3 to the negative three. Negative 1/3 times negative three is just 1, so that's just going to be equal to x. So it looks a little bit simpler, but still not so easy. I could try to take log base two of both sides and I'd get negative three x squared plus nine is equal to log base two of x. But once again not havin' an easy time solve this. And the reason why I gave you this equation is to appreciate that some equations are not so easy to solve algebraically. But we have other tools, we have things like computers, we can graph things and they can at least get us really close to knowing what the solution is. And the way that we can do that is we can say hey, well what if I had one function or one equation, that was y is equal to two x, two to the x squared minus three I should say. And you had another that was y is equal to one over the cube root of x. And then you could graph each of these and then you could see where they intersect. Because where they intersect that means two to the x squared minus three is giving you the same y as one over the cube root of x. Or another way to think about it is they're going to intersect at an x value, where these two expressions are equal to each other. And so what we could do is we could go to a graphing calculator, or we could go to a site like Desmos and graph it and at least try to approximate what the point of intersection is, and so let's do that. So I graphed this ahead of time on Desmos. So you can see here, this is our two sides of our equation but now we've expressed each of them as a function. Right here in blue we have two, we have f of x, or I could even say this is y is equal to f of x which is equal to two to the x squared minus three. And then in this yellowish color I have y is equal to g of x which is equal to one over the cube root of x, and we can see where they intersect. They intersect right over there. And we're not going to get an exact answer, but even at this level of zoom and on a tool like Desmos you can keep zooming in in order to get to get a more and more precise answer. In fact you can even scroll over this and it'll even tell you where they intersect. But even if we're trying to approximate, just looking at the graph. We can see that the x value, right over here it looks like it is happening at around, let's see this is 1.5, and each of these is a tenth. So this is 1.6 and then it looks like it's about two thirds of the way to the next one. So this looks like it's about, I'll say this is approximately 1.66. And if you were to actually find the exact solution, you would actually find this awfully close to 1.66. So the whole point here is, is that, even when it's algebraically difficult to solve something you could set up or restate your problem or reframe your problem in a way that makes it easier to solve. You can set this up as, hey let's make two functions, and then let's graph them and see where they intersect And the x value where they intersect well that would be a solution to that equation, and that's exactly what we did right there. We're saying that hey, the x value, the x solution here is roughly 1.66.