>> Welcome back to our fourth and last example here of a proof by contradiction. It's a proof that the number square root of 2 is an irrational number. Now, this is a classic proof that every math student should know by heart. So let's prove that the square root of 2 is irrational. A couple things before we begin. First, note that this is another instance of a general rule that we mentioned in the first video. Namely, that proof by contradiction is often useful when proving statements that are given in the negative. This is one such statement. Because, when we say the square root of 2 is irrational, what we're doing is saying that it is not rational. That it does not belong to the set of rational numbers. The other thing before we begin is related to that. And that is we need to have a very clear idea before we set out of what a rational number is before we try to prove that the square root of 2 is not one of them. Recall the definition and keep it very close to heart here. A rational number is any number that can be written as a fraction of two integers, A and B, with B in the denominator not equal to zero. And in addition, we can assume that A and B have no common factors. That's because, if A and B had common factors, we could just divide them out. So, again, A and B have no common factors. So the fraction A/B is in lowest form. So with that in hand, let's prove this by contradiction. So we begin, as always, by assuming the negation of the statement we want to prove. If we want to prove that square root of 2 is irrational, then the negation would be to assume that the square root of 2 is rational. So do that. Now, what does this mean? By definition it means that there exists integers A and B with B not zero. And, again, very importantly, A and B have no common factors. So that the square root of 2 equals A divided by B. Now, as with the last video, this would be a good point to pause and answer the question, what next? What's the next step in the proof going to be? So pause the video and come back when you're ready. And welcome back. I think a good next step would be to square both sides to rid ourselves of the square root. You might also clear the fractions out first by cross multiplying. And then maybe then square in the next step. And that will get us to the same place we're headed now. So square both sides to get 2 equals A squared divided by B squared. Now everything is an integer. I'll clear the fractions out to get 2B squared equals A squared. Now, what does this mean? Well, among the things that it means is that A squared is an even integer. You see here that I have A squared equal to 2 times an integer. And that makes A squared even. Now, think all the way back to screencast 3.2.1. In that screencast we proved by contraposition that, if A squared is even, then A is even. So now we can pull that in and conclude that A is even. Now, so far all of these are valid mathematical and factual steps. Merely doing correct calculations. Using previously known results. And agreed upon definitions. Now, since A is even, I can write it as 2 times some integer K. So let's do that and now loop back to the second line and substitute in 2K for A. That will give you 2B squared equals 4K squared. And if you divide both sides of that by 2, it gives you B squared equals 2K squared. Now, that implies that B squared is even. Because I've written it as 2 times an integer. Using the result from screencast 3.2.1, I can now say that B is even. But wait, this is a, wait for it, it's a contradiction. Now, if it seems like this contradiction comes out of nowhere, I don't blame you. What exactly did we contradict? We have to think back to all the assumptions that we made about the objects that we're working with. What we've contradicted is a prior assumption that A and B had no common factors. We did assume this. But in assuming it, I've arrived at the fact that A and B are both even. And if they are even, they have a common factor of 2. So which is it? Do A examine B have common factors or not? It can't be both. And yet our work says both. This contradiction forces us to reject the assumption that led us here in the first place. And that assumption is that the square root of 2 is a rational number. Since square root of 2 can't be rational because it leads us to this contradiction, it must be irrational. And that is the end of the proof. With a little tweaking and some help from the proof techniques coming up in the next section, we can actually prove that the square root of any prime number is irrational. And that also uses contradiction. Again, contradiction is very powerful, very useful. And I really hope you enjoy using it.