1 00:00:00,000 --> 00:00:00,870 2 00:00:00,870 --> 00:00:03,610 Welcome to the video on completing the square. 3 00:00:03,609 --> 00:00:04,439 What's completing the square? 4 00:00:04,440 --> 00:00:06,740 Well, it's a way to solve a quadratic equation. 5 00:00:06,740 --> 00:00:09,699 And actually, let me just write down a quadratic equation, and 6 00:00:09,699 --> 00:00:11,570 then I will show you how to complete the square. 7 00:00:11,570 --> 00:00:13,460 And then we'll do another example, and then maybe talk 8 00:00:13,460 --> 00:00:16,650 a little bit about why it's called completing the square. 9 00:00:16,649 --> 00:00:27,769 So let's say I have this equation: x squared plus 16x 10 00:00:27,769 --> 00:00:32,600 minus 57 is equal to 0. 11 00:00:32,600 --> 00:00:36,130 So what are the tools in our toolkit right now that we 12 00:00:36,130 --> 00:00:36,970 could use to solve this? 13 00:00:36,969 --> 00:00:38,570 Well, we could try to factor it out. 14 00:00:38,570 --> 00:00:41,770 We could say, what two numbers add up to 16, and then when you 15 00:00:41,770 --> 00:00:44,060 multiply them they're minus 57? 16 00:00:44,060 --> 00:00:45,450 And you'd have to think about it a little bit. 17 00:00:45,450 --> 00:00:47,359 And you might get whole numbers, but you're not even 18 00:00:47,359 --> 00:00:49,049 sure if there are two whole numbers that work 19 00:00:49,049 --> 00:00:49,539 out like that. 20 00:00:49,539 --> 00:00:50,630 This problem there are. 21 00:00:50,630 --> 00:00:53,510 But, you know, sometimes the solution is a decimal number 22 00:00:53,509 --> 00:00:54,189 and you don't know it. 23 00:00:54,189 --> 00:00:58,149 So the only time you can really factor is if you're sure that 24 00:00:58,149 --> 00:01:01,000 you could factor this into kind of integer expressions. 25 00:01:01,000 --> 00:01:03,619 You know, x plus some integer or x minus some integer 26 00:01:03,619 --> 00:01:05,920 times, you know, x plus some other integer. 27 00:01:05,920 --> 00:01:06,989 Or likewise. 28 00:01:06,989 --> 00:01:09,239 The other option is to do the quadratic equation. 29 00:01:09,239 --> 00:01:11,420 And what we're going to see is actually the quadratic equation 30 00:01:11,420 --> 00:01:15,510 is just essentially a shortcut to completing the square. 31 00:01:15,510 --> 00:01:18,410 The quadratic equation is actually proven using 32 00:01:18,409 --> 00:01:19,420 completing the square. 33 00:01:19,420 --> 00:01:21,420 So what is completing the square? 34 00:01:21,420 --> 00:01:23,340 So what do we do? 35 00:01:23,340 --> 00:01:27,079 Well, before we move into this video let's see what happens 36 00:01:27,079 --> 00:01:30,929 if I square an expression. 37 00:01:30,930 --> 00:01:33,220 Let me do it in this down here. 38 00:01:33,219 --> 00:01:40,250 What is x plus a, squared? 39 00:01:40,250 --> 00:01:50,939 Well that equals x squared plus 2ax plus a squared. 40 00:01:50,939 --> 00:01:51,679 Right? 41 00:01:51,680 --> 00:01:55,420 So if you ever see something in this form, you know that it's 42 00:01:55,420 --> 00:01:57,739 x plus something squared. 43 00:01:57,739 --> 00:02:01,039 So wouldn't it be neat if we could manipulate this equation 44 00:02:01,040 --> 00:02:05,900 so we can write it as x plus a squared equals something, 45 00:02:05,900 --> 00:02:08,140 and then we could just take the square root? 46 00:02:08,139 --> 00:02:11,579 And what we're going to do is, actually, do just that. 47 00:02:11,580 --> 00:02:13,090 And that is completing the square. 48 00:02:13,090 --> 00:02:15,009 So let me show you an example. 49 00:02:15,009 --> 00:02:16,514 I think an example will make it a little clearer. 50 00:02:16,514 --> 00:02:17,619 Let me box this away. 51 00:02:17,620 --> 00:02:19,310 This is what you need to remember. 52 00:02:19,310 --> 00:02:22,129 This is the whole rationale behind competing the squares-- 53 00:02:22,129 --> 00:02:25,650 to get an equation into this form, onto one side of the 54 00:02:25,650 --> 00:02:27,939 equation, and just have a number on the other side, so 55 00:02:27,939 --> 00:02:31,210 you could take the square root of both sides. 56 00:02:31,210 --> 00:02:32,000 So let's see. 57 00:02:32,000 --> 00:02:33,969 First of all, let's just check to make sure this isn't 58 00:02:33,969 --> 00:02:35,020 a perfect square. 59 00:02:35,020 --> 00:02:39,700 If this were, this coefficient would be equivalent to the 2a. 60 00:02:39,699 --> 00:02:40,469 Right? 61 00:02:40,469 --> 00:02:44,439 So a would be 8, and then this would be 64. 62 00:02:44,439 --> 00:02:48,270 This is clearly not 64, so this right here is not 63 00:02:48,270 --> 00:02:50,840 a squared expression. 64 00:02:50,840 --> 00:02:51,680 So what can we do? 65 00:02:51,680 --> 00:02:55,990 Well let me get rid of the 57 by adding 57 to both 66 00:02:55,990 --> 00:02:57,200 sides of this equation. 67 00:02:57,199 --> 00:03:07,549 So I would get x squared plus 16x is equal to 57. 68 00:03:07,550 --> 00:03:11,469 All I did is I added 57 to both sides of this equation. 69 00:03:11,469 --> 00:03:16,300 Now, what could I add here so that this, the left-hand side 70 00:03:16,300 --> 00:03:21,480 of this equation, becomes a square of some expression 71 00:03:21,479 --> 00:03:24,819 like x plus a? 72 00:03:24,819 --> 00:03:28,789 If you just follow this pattern down here, we have x squared 73 00:03:28,789 --> 00:03:37,879 plus 2ax-- so you could view this right here as 2ax. 74 00:03:37,879 --> 00:03:39,090 Right? 75 00:03:39,090 --> 00:03:40,900 That's 2ax. 76 00:03:40,900 --> 00:03:43,520 And then we need to add an a squared to it. 77 00:03:43,520 --> 00:03:44,040 Right? 78 00:03:44,039 --> 00:03:46,299 Plus a squared. 79 00:03:46,300 --> 00:03:48,010 And then we would have the form here. 80 00:03:48,009 --> 00:03:50,509 But we know from basic algebra that anything you do to one 81 00:03:50,509 --> 00:03:52,079 side of an equation you have to do to another. 82 00:03:52,080 --> 00:03:54,230 So we added an a squared here, so let's add an a 83 00:03:54,229 --> 00:03:56,840 squared here as well. 84 00:03:56,840 --> 00:04:01,349 And now you could essentially rewrite this as a square 85 00:04:01,349 --> 00:04:02,259 of some expression. 86 00:04:02,259 --> 00:04:04,209 But before that we have to figure out what a was? 87 00:04:04,210 --> 00:04:05,520 Well how do we do that? 88 00:04:05,520 --> 00:04:06,740 Well, what is a? 89 00:04:06,740 --> 00:04:10,719 If this expression right here is 2ax, what is a? 90 00:04:10,719 --> 00:04:15,379 Well 2a is going to equal 16, so a is equal to 8. 91 00:04:15,379 --> 00:04:18,019 And you could usually do that just by inspection; 92 00:04:18,019 --> 00:04:18,629 do it in your head. 93 00:04:18,629 --> 00:04:20,930 But if you wanted to see it done algebraically you could 94 00:04:20,930 --> 00:04:25,689 actually write 2ax is equal to 16x. 95 00:04:25,689 --> 00:04:29,089 And then divide both sides by 2x, and you get a is 96 00:04:29,089 --> 00:04:31,429 equal to 16x over 2x. 97 00:04:31,430 --> 00:04:36,949 And assuming that x doesn't equal 0 this evaluates to 8. 98 00:04:36,949 --> 00:04:38,129 So a is 8. 99 00:04:38,129 --> 00:04:42,430 So if a is 8 we could rewrite that expression-- I'll switch 100 00:04:42,430 --> 00:04:49,030 colors arbitrarily-- as x squared plus 16x 101 00:04:49,029 --> 00:04:50,469 plus a squared. 102 00:04:50,470 --> 00:04:54,180 Well, it's 64, because a is 8. 103 00:04:54,180 --> 00:04:59,170 Is equal to 57 plus 64. 104 00:04:59,170 --> 00:05:00,720 Right? 105 00:05:00,720 --> 00:05:04,600 I went through a fairly tedious explanation here, but all we've 106 00:05:04,600 --> 00:05:08,890 really done to get from there to there is we added 57 to both 107 00:05:08,889 --> 00:05:10,870 sides of this equation to kind of get it on the right-hand 108 00:05:10,870 --> 00:05:14,319 side, and then we added 64 to both sides of this equation. 109 00:05:14,319 --> 00:05:16,829 And why did I add 64 to both sides of this equation? 110 00:05:16,829 --> 00:05:21,069 So that the left-hand side expression takes this form. 111 00:05:21,069 --> 00:05:23,199 Now that the left-hand side expression takes this form 112 00:05:23,199 --> 00:05:26,029 I can rewrite it as what? 113 00:05:26,029 --> 00:05:27,169 x plus a, squared. 114 00:05:27,170 --> 00:05:28,620 I can rewrite it in this form. 115 00:05:28,620 --> 00:05:35,550 And we know that a is 8, so it becomes x plus 8, squared, 116 00:05:35,550 --> 00:05:39,730 is equal to-- and what's 57 plus 64? 117 00:05:39,730 --> 00:05:43,090 It's 121. 118 00:05:43,089 --> 00:05:47,269 Now we have what looks like a fairly straightforward-- it's 119 00:05:47,269 --> 00:05:48,959 still a quadratic equation, actually, because if you 120 00:05:48,959 --> 00:05:50,349 were to expand this side you'd get a quadratic. 121 00:05:50,350 --> 00:05:53,064 But we can solve this without using the quadratic equation 122 00:05:53,064 --> 00:05:54,610 or without having to factor. 123 00:05:54,610 --> 00:05:57,389 We can just take the square root of both sides of this. 124 00:05:57,389 --> 00:06:00,550 And if we take the square root of both sides what do we get? 125 00:06:00,550 --> 00:06:03,610 We get-- once again, arbitrarily switching colors-- 126 00:06:03,610 --> 00:06:09,230 that x plus 8 is equal to, and remember this, the plus or 127 00:06:09,230 --> 00:06:12,879 minus square root of 121. 128 00:06:12,879 --> 00:06:14,589 And what's the square root of 121? 129 00:06:14,589 --> 00:06:15,959 Well it's 11, right? 130 00:06:15,959 --> 00:06:17,629 So then we come here. 131 00:06:17,629 --> 00:06:18,800 Let me box this away. 132 00:06:18,800 --> 00:06:20,620 This was just an aside. 133 00:06:20,620 --> 00:06:26,829 So we get x plus 8 is equal to plus or minus 11. 134 00:06:26,829 --> 00:06:30,419 And so x is equal to-- subtract 8 from both sides-- minus 135 00:06:30,420 --> 00:06:33,860 8 plus or minus 11. 136 00:06:33,860 --> 00:06:41,590 And so x could equal-- so minus 8 plus 11 is 3. 137 00:06:41,589 --> 00:06:41,969 Right? 138 00:06:41,970 --> 00:06:44,800 139 00:06:44,800 --> 00:06:48,160 Let me make sure I did that right. 140 00:06:48,160 --> 00:06:53,310 x is equal to minus 8 plus or minus 11. 141 00:06:53,310 --> 00:06:54,139 Yes. 142 00:06:54,139 --> 00:06:55,349 That's right. 143 00:06:55,350 --> 00:06:59,270 So x could be equal to 3. 144 00:06:59,269 --> 00:07:02,959 And then if I took minus 8 minus 11, x could 145 00:07:02,959 --> 00:07:10,415 also equal minus 19. 146 00:07:10,415 --> 00:07:11,350 All right. 147 00:07:11,350 --> 00:07:13,200 And let's see if that makes sense. 148 00:07:13,199 --> 00:07:18,680 So in theory this should be able to be factored as x 149 00:07:18,680 --> 00:07:23,769 minus 3 times x plus 19 is equal to 0. 150 00:07:23,769 --> 00:07:24,029 Right? 151 00:07:24,029 --> 00:07:26,159 Because these are the two solutions of this equation. 152 00:07:26,160 --> 00:07:28,189 And that works out, right? 153 00:07:28,189 --> 00:07:31,339 Minus 3 times 19 is minus 57. 154 00:07:31,339 --> 00:07:36,919 And minus 3 plus 19 is plus 16x. 155 00:07:36,920 --> 00:07:39,120 We could have just immediately factored it this way, but if 156 00:07:39,120 --> 00:07:41,030 that wasn't obvious to us-- because, you know, at least 157 00:07:41,029 --> 00:07:43,599 19 is kind of a strange number-- we could do it 158 00:07:43,600 --> 00:07:46,800 completing the square. 159 00:07:46,800 --> 00:07:47,689 And so why is it called completing the square? 160 00:07:47,689 --> 00:07:49,920 Because you get it in this form and then you have to add this 161 00:07:49,920 --> 00:07:52,949 64 here to kind of complete the square-- to turn this 162 00:07:52,949 --> 00:07:56,019 left-hand expression into a squared expression. 163 00:07:56,019 --> 00:07:56,769 Let's do one more. 164 00:07:56,769 --> 00:07:59,919 And I'll do less explanation and more just chugging through 165 00:07:59,920 --> 00:08:02,105 the problem, and that actually might make it seem simpler. 166 00:08:02,105 --> 00:08:04,800 167 00:08:04,800 --> 00:08:07,079 But this is going to be a hairier problem. 168 00:08:07,079 --> 00:08:19,930 So let's say I have 6x squared minus 7x minus 3 is equal to 0. 169 00:08:19,930 --> 00:08:22,980 You could try to factor it, but personally I don't 170 00:08:22,980 --> 00:08:25,259 enjoy factoring things when I have a coefficient. 171 00:08:25,259 --> 00:08:27,589 And you can say, oh well why don't we divide both sides 172 00:08:27,589 --> 00:08:28,969 of this equation by 6? 173 00:08:28,970 --> 00:08:30,960 But then you'd get a fraction here and a fraction here. 174 00:08:30,959 --> 00:08:33,579 And that's even worse to factor just by inspection. 175 00:08:33,580 --> 00:08:35,190 You could do the quadratic equation. 176 00:08:35,190 --> 00:08:37,310 And maybe I'll show you in a future video, the quadratic 177 00:08:37,309 --> 00:08:39,500 equation-- and I think I've already done one where I proved 178 00:08:39,500 --> 00:08:40,629 the quadratic equation. 179 00:08:40,629 --> 00:08:42,379 But the quadratic equation is essentially 180 00:08:42,379 --> 00:08:43,169 completing the square. 181 00:08:43,169 --> 00:08:44,089 It's kind of a shortcut. 182 00:08:44,090 --> 00:08:46,280 It's just kind of remembering the formula. 183 00:08:46,279 --> 00:08:48,319 But let's complete the square here, because that's what the 184 00:08:48,320 --> 00:08:50,640 point of this video was. 185 00:08:50,639 --> 00:08:54,649 So let's add the 3 to both sides of that equation. 186 00:08:54,649 --> 00:08:56,299 We could do-- well, let's add the 3 first. 187 00:08:56,299 --> 00:09:04,819 So you get 6 x squared minus 7x is equal to 3. 188 00:09:04,820 --> 00:09:06,770 I added 3 to both sides. 189 00:09:06,769 --> 00:09:09,470 And some teachers will leave the minus 3 here, and then try 190 00:09:09,470 --> 00:09:11,050 to figure out what to add to it and all of that. 191 00:09:11,049 --> 00:09:13,169 But I like to get it out of the way so that I can figure out 192 00:09:13,169 --> 00:09:16,079 very clearly what number I should put here. 193 00:09:16,080 --> 00:09:18,230 But I also don't like the 6 here. 194 00:09:18,230 --> 00:09:19,550 It just complicates things. 195 00:09:19,549 --> 00:09:25,990 I like to have it x plus a squared, not some square root 196 00:09:25,990 --> 00:09:27,450 coefficient on the x term. 197 00:09:27,450 --> 00:09:31,530 So let's divide both sides of this equation by 6, and you get 198 00:09:31,529 --> 00:09:39,730 x squared minus 7/6 x is equal to-- 3 divided by 6 199 00:09:39,730 --> 00:09:41,566 is equal to 1/2. 200 00:09:41,566 --> 00:09:43,190 And we could have made that our first step. 201 00:09:43,190 --> 00:09:46,450 We could have divided by 6 right at that first step. 202 00:09:46,450 --> 00:09:49,250 Anyway, now let's try to complete the square. 203 00:09:49,250 --> 00:09:51,799 So we have x squared-- I'm just going to open up some space-- 204 00:09:51,799 --> 00:09:59,529 minus 7/6 x plus something is going to be equal to 1/2. 205 00:09:59,529 --> 00:10:02,399 And so we have to add something here so that this left-hand 206 00:10:02,399 --> 00:10:05,289 expression becomes a squared expression. 207 00:10:05,289 --> 00:10:06,620 So how do we do that? 208 00:10:06,620 --> 00:10:10,769 Well essentially we look at this coefficient, and keep 209 00:10:10,769 --> 00:10:14,610 in mind this is not just 7/6 it's minus 7/6. 210 00:10:14,610 --> 00:10:17,460 You take 1/2 of it, and then you square it. 211 00:10:17,460 --> 00:10:18,610 Right? 212 00:10:18,610 --> 00:10:19,690 Let me do it. 213 00:10:19,690 --> 00:10:25,290 x plus a, squared, is equal to x squared plus 214 00:10:25,289 --> 00:10:28,819 2ax plus a squared. 215 00:10:28,820 --> 00:10:29,070 Right? 216 00:10:29,070 --> 00:10:30,750 This is what you have to remember all the time. 217 00:10:30,750 --> 00:10:33,559 That's all completing the square is based off of. 218 00:10:33,559 --> 00:10:34,979 So what did I say just now? 219 00:10:34,980 --> 00:10:37,259 Well, this term is going to be 1/2 of this 220 00:10:37,259 --> 00:10:39,189 coefficient squared. 221 00:10:39,190 --> 00:10:40,190 And how do we know that? 222 00:10:40,190 --> 00:10:43,880 Because a is going to be 1/2 of this coefficient if you just 223 00:10:43,879 --> 00:10:45,850 do a little bit of pattern matching. 224 00:10:45,850 --> 00:10:48,759 So what's 1/2 of this coefficient? 225 00:10:48,759 --> 00:10:54,049 1/2 of minus 7/6 is minus 7/12. 226 00:10:54,049 --> 00:10:56,639 So if you want you could write a equals minus 227 00:10:56,639 --> 00:10:58,769 7/12 for our example. 228 00:10:58,769 --> 00:11:00,769 And I just multiplied this by 1/2. 229 00:11:00,769 --> 00:11:01,980 Right? 230 00:11:01,980 --> 00:11:03,659 So what do I add to both sides? 231 00:11:03,659 --> 00:11:06,029 I add a squared. 232 00:11:06,029 --> 00:11:08,929 So what's 7/12 squared? 233 00:11:08,929 --> 00:11:13,219 Well that's going to be 49/144. 234 00:11:13,220 --> 00:11:15,000 If I did it to the left-hand side I have to do it to 235 00:11:15,000 --> 00:11:16,629 the right-hand side. 236 00:11:16,629 --> 00:11:22,240 Plus 49/144. 237 00:11:22,240 --> 00:11:26,120 And now how can I simplify this left-hand side? 238 00:11:26,120 --> 00:11:26,879 What's our next step? 239 00:11:26,879 --> 00:11:28,470 Well we now know it is a perfect square. 240 00:11:28,470 --> 00:11:31,550 In fact, we know what a is. a is minus 7/12. 241 00:11:31,549 --> 00:11:35,199 And so we know that this left-hand side of this equation 242 00:11:35,200 --> 00:11:43,390 is x minus a-- or x plus a, but a is a negative number. 243 00:11:43,389 --> 00:11:47,980 So x plus a, and a is negative, squared. 244 00:11:47,980 --> 00:11:50,350 And if you want you can multiply this out and confirm 245 00:11:50,350 --> 00:11:53,129 that it truly equals this. 246 00:11:53,129 --> 00:11:55,919 And that is going to be equal to-- let's get a common 247 00:11:55,919 --> 00:11:58,360 denominator, 144. 248 00:11:58,360 --> 00:12:04,070 So 72 plus 49 equals 121. 249 00:12:04,070 --> 00:12:06,300 121/144. 250 00:12:06,299 --> 00:12:09,209 So we have x minus 7/12, all of that squared 251 00:12:09,210 --> 00:12:13,180 is equal to 121/144. 252 00:12:13,179 --> 00:12:14,299 So what do we do now? 253 00:12:14,299 --> 00:12:15,569 Well now we just take the square root of both 254 00:12:15,570 --> 00:12:17,700 sides of this equation. 255 00:12:17,700 --> 00:12:20,140 And I'm trying to free up some space. 256 00:12:20,139 --> 00:12:22,215 Switch to green. 257 00:12:22,215 --> 00:12:25,320 Let me partition this off. 258 00:12:25,320 --> 00:12:33,310 And we get x minus 7/12 is equal to the plus or minus 259 00:12:33,309 --> 00:12:33,939 square root of that. 260 00:12:33,940 --> 00:12:38,120 So plus or minus 11/12. 261 00:12:38,120 --> 00:12:38,389 Right? 262 00:12:38,389 --> 00:12:39,659 Square root of 121 is 11. 263 00:12:39,659 --> 00:12:42,419 Square root of 144 is 12. 264 00:12:42,419 --> 00:12:44,479 So then we could add 7/12 to both sides of this equation, 265 00:12:44,480 --> 00:12:53,100 and we get x is equal to 7/12 plus or minus 11/12. 266 00:12:53,100 --> 00:12:58,659 Well that equals 7 plus or minus 11/12. 267 00:12:58,659 --> 00:13:00,049 So what are the two options? 268 00:13:00,049 --> 00:13:03,929 7 plus 11 is 18, over 12. 269 00:13:03,929 --> 00:13:08,209 So x could equal 18/12, is 3/2. 270 00:13:08,210 --> 00:13:11,009 Or, what's 7 minus 11? 271 00:13:11,009 --> 00:13:12,759 That's minus 4/12. 272 00:13:12,759 --> 00:13:15,370 So it's minus 1/3. 273 00:13:15,370 --> 00:13:16,629 There you have it. 274 00:13:16,629 --> 00:13:17,939 That is completing the square. 275 00:13:17,940 --> 00:13:20,220 Hopefully you found that reasonably insightful. 276 00:13:20,220 --> 00:13:23,340 And if you want to prove the quadratic equation, all you 277 00:13:23,340 --> 00:13:27,320 have to do is instead of having numbers here, write a x squared 278 00:13:27,320 --> 00:13:29,820 plus bx plus c equals 0. 279 00:13:29,820 --> 00:13:34,129 And then complete the square using the a, b, and c's 280 00:13:34,129 --> 00:13:35,059 instead of numbers. 281 00:13:35,059 --> 00:13:37,179 And you will end up with the quadratic equation 282 00:13:37,179 --> 00:13:38,109 by this point. 283 00:13:38,110 --> 00:13:39,509 And I think I did that in a video. 284 00:13:39,509 --> 00:13:41,600 Let me know if I didn't and I'll do it for you. 285 00:13:41,600 --> 00:13:44,540 Anyway, I'll see you in the next video.