Transcript
0:01 in this video we're going to take a look at a method of proof called direct proof so in a direct proof essentially we are just going to assume that the antecedent is true and then use the rules of inference axioms definitions Etc to show that the consequent is true so we're assuming p is true we're proving excuse me proving Q is true so that is our goal we did this a little bit already when we talked about the
0:28 rules of inference we did a direct proof um and it was a formal direct proof so for each and every step we gave the Axiom or rule that we used in order to prove it's true so on the next uh couple of examples that we're going to do together these are going to be direct proofs but they are going to be informal proofs let's do our first direct proof together so we are to prove if n is an
0:57 odd integer then n^2 is odd now keep in mind whenever we're dealing with a direct proof which is what we're doing we're essentially looking at our propositional logic we're saying if P then Q we're assuming p is true so it's good to think about that when you're starting a proof like this in this case I've got an if then and so it's pretty clear that this is p and this is q and therefore this is an if P then Q it's an
1:26 implication so when I go about proving this remember I'm going to assume then that P is true that's a direct proof now before I get started on this I want to talk to you about two definitions that you may or may not be familiar with but you're going to use them all of the time when we're dealing with things like even and odd we need ways to reexpress those so that we can manipulate them in proofs or equations if I'm dealing with
1:54 an even integer let's say n is even if n is even I can reexpress n as 2 * K where K is some other integer and of course the reason I can do that is if you have an even integer the definition of an even integer is that it can be divided by two and the result is another integer with no remainder if I have an odd
2:27 integer say n is odd n can then be reexpressed as 2K + 1 because obviously if we take an even integer and we add one we get an odd integer and again K must be an integer as well so now that we have everything we need let's start this proof when we start a direct proof we assume p is true so I'm going to assume n is an odd
2:57 integer based on that then I'm going to use my definition of an odd integer that says then n = 2 k + 1 where K is some other integer and now I'm going to go about proving what I can say by definition oops got a little extra something in there by definition of an
3:27 odd integer so from there I'm going to say Where am I trying to get to I'm trying to say n^2 is odd so if n is 2K + 1 then I'm going to square each side because I'm trying to get to N2 so that gives me n^ 2 equals and then of course I'm going to foil this out so please don't give me 4K 2 + 1 because I
4:02 just I can't even this is 2K + 1 * 2K + 1 so foil it out when you do that you get 4 k^ 2 + 4K + 1 and that still doesn't help me because what I'm trying to get to is to say that n^2 is odd now how am I going to show it's odd well lucky for us we have a definition of what an odd integer looks like so I'm going to
4:34 continue by taking a two out of my first two terms 2 k^2 + 2 k + 1 so from here I'm feeling pretty good because this does seem to be in the correct format but a lot of people don't like that because there's still kind of a lot going on here so quite often what you'll see is n^2 = 2 r + 1 where R = 2 k^ 2 + 2 K and R is an
5:09 integer so now what have I done now I've said hey I've done all of this work I have found that my n^2 gives me an odd integer so at the end I'm just going to summarize what I have found and what I have found is therefore n^2 is odd now again those three little dots mean therefore and a lot of times you'll see then a square at the end of a proof
5:40 which is basically saying hey I'm done you might see a little triangle at the end of your proof or you might see QED QED um is essentially a Latin phrase that is says something like what was to be demonstrated and so essentially we're saying we demonstrated what was to be demonstrated here's another proof for us to try and it's always a good idea to challenge yourself so if you'd like go ahead and press pause and try this one on your own
6:10 but remember when I'm doing something with a direct proof I'm looking at that if P then q and this one isn't really written in that format so if it's helpful to you not a bad idea to think about what this would look like as an if then so it says the sum of two even integers is even so if I add two even integers
6:41 then the sum is even something to that effect is how I could write this as an if then statement which means that I've got two even integers which is p and I'm adding them together and getting a sum that's even is Q so for p I'm basically going to say I have two even integers so when I get started on my proof I'm going to say
7:11 assume A and B are even integers which is essentially what this is saying now I didn't include the ADD but that's okay because over here Su implies that I'm adding so assume A and B are even integers guess what I'm I'm going to do next exactly what I did last time then a = 2K for some K that is an
7:43 integer and b equal 2 m for some M that is an integer now keep in mind I have to have different variables for those two I can't just assume they're the same variable because that would be assuming that A and B are the exact same even integer so the this is allowing for any possibility of two even integers so that's what I did next
8:15 now from here I'm going to focus on the math part of it it says I'm adding the two even integers so I'm going to take a + b and say a plus b is the same as 2K because that's what a a was and 2 m because that's what B was now I can rewrite this as 2 k + m again using the distributive property and then I can rewrite that as
8:47 2 R where R is equal to k + M and R is an integer that was a bad Z but you get the idea so what I have said is when I'm adding these two even integers I get some other even integers so therefore the sum of two even
9:18 integers is even Q D I would encourage you to continue practicing the method of direct proof on your own but for us we're going to move on to our next method of proof which is proof by contraposition
Summary
- Direct proof involves assuming the antecedent (P) is true to prove the consequent (Q).
- Definitions of even and odd integers are crucial: an odd integer can be expressed as \( n = 2k + 1 \) and an even integer as \( n = 2k \).
- The proof that the square of an odd integer is odd is demonstrated by manipulating the expression \( n^2 = (2k + 1)^2 \).
- The result shows \( n^2 \) can be expressed in the form \( 2r + 1 \), confirming it is odd.
- Another example proves that the sum of two even integers is even by expressing them as \( a = 2k \) and \( b = 2m \).
- The sum \( a + b \) is shown to be \( 2(k + m) \), which is also even.
- The video encourages viewers to practice direct proofs and introduces the next topic: proof by contraposition.