< Return to Video

Solving Quadratic Equations by Completing the Square

  • 0:00 - 0:03
    In this video, I'm going to show
    you a technique called
  • 0:03 - 0:09
    completing the square.
  • 0:09 - 0:14
    And what's neat about this is
    that this will work for any
  • 0:14 - 0:18
    quadratic equation, and it's
    actually the basis for the
  • 0:18 - 0:19
    quadratic formula.
  • 0:19 - 0:22
    And in the next video or the
    video after that I'll prove
  • 0:22 - 0:26
    the quadratic formula using
    completing the square.
  • 0:26 - 0:28
    But before we do that, we
    need to understand even
  • 0:28 - 0:29
    what it's all about.
  • 0:29 - 0:32
    And it really just builds off
    of what we did in the last
  • 0:32 - 0:34
    video, where we solved
    quadratics
  • 0:34 - 0:36
    using perfect squares.
  • 0:36 - 0:40
    So let's say I have the
    quadratic equation x squared
  • 0:40 - 0:45
    minus 4x is equal to 5.
  • 0:45 - 0:47
    And I put this big space
    here for a reason.
  • 0:47 - 0:50
    In the last video, we saw
    that these can be pretty
  • 0:50 - 0:53
    straightforward to solve if
    the left-hand side is a
  • 0:53 - 0:56
    perfect square.
  • 0:56 - 0:59
    You see, completing the square
    is all about making the
  • 0:59 - 1:02
    quadratic equation into a
    perfect square, engineering
  • 1:02 - 1:05
    it, adding and subtracting from
    both sides so it becomes
  • 1:05 - 1:06
    a perfect square.
  • 1:06 - 1:08
    So how can we do that?
  • 1:08 - 1:10
    Well, in order for this
    left-hand side to be a perfect
  • 1:10 - 1:13
    square, there has to be
    some number here.
  • 1:13 - 1:18
    There has to be some number here
    that if I have my number
  • 1:18 - 1:21
    squared I get that number, and
    then if I have two times my
  • 1:21 - 1:23
    number I get negative 4.
  • 1:23 - 1:25
    Remember that, and I
    think it'll become
  • 1:25 - 1:28
    clear with a few examples.
  • 1:28 - 1:35
    I want x squared minus 4x plus
    something to be equal to x
  • 1:35 - 1:38
    minus a squared.
  • 1:38 - 1:41
    We don't know what a
    is just yet, but we
  • 1:41 - 1:42
    know a couple of things.
  • 1:42 - 1:46
    When I square things-- so this
    is going to be x squared minus
  • 1:46 - 1:49
    2a plus a squared.
  • 1:49 - 1:54
    So if you look at this pattern
    right here, that has to be--
  • 1:54 - 2:00
    sorry, x squared minus 2ax--
    this right here has to be 2ax.
  • 2:00 - 2:04
    And this right here would
    have to be a squared.
  • 2:04 - 2:08
    So this number, a is going to
    be half of negative 4, a has
  • 2:08 - 2:10
    to be negative 2, right?
  • 2:10 - 2:14
    Because 2 times a is going
    to be negative 4.
  • 2:14 - 2:18
    a is negative 2, and if a is
    negative 2, what is a squared?
  • 2:18 - 2:22
    Well, then a squared is going
    to be positive 4.
  • 2:22 - 2:24
    And this might look all
    complicated to you right now,
  • 2:24 - 2:26
    but I'm showing you
    the rationale.
  • 2:26 - 2:29
    You literally just look at this
    coefficient right here,
  • 2:29 - 2:33
    and you say, OK, well what's
    half of that coefficient?
  • 2:33 - 2:36
    Well, half of that coefficient
    is negative 2.
  • 2:36 - 2:40
    So we could say a is equal to
    negative 2-- same idea there--
  • 2:40 - 2:42
    and then you square it.
  • 2:42 - 2:44
    You square a, you
    get positive 4.
  • 2:44 - 2:47
    So we add positive 4 here.
  • 2:47 - 2:48
    Add a 4.
  • 2:48 - 2:51
    Now, from the very first
    equation we ever did, you
  • 2:51 - 2:55
    should know that you can never
    do something to just one side
  • 2:55 - 2:56
    of the equation.
  • 2:56 - 2:59
    You can't add 4 to just one
    side of the equation.
  • 2:59 - 3:03
    If x squared minus 4x was equal
    to 5, then when I add 4
  • 3:03 - 3:05
    it's not going to be
    equal to 5 anymore.
  • 3:05 - 3:08
    It's going to be equal
    to 5 plus 4.
  • 3:08 - 3:11
    We added 4 on the left-hand side
    because we wanted this to
  • 3:11 - 3:12
    be a perfect square.
  • 3:12 - 3:15
    But if you add something to the
    left-hand side, you've got
  • 3:15 - 3:17
    to add it to the right-hand
    side.
  • 3:17 - 3:21
    And now, we've gotten ourselves
    to a problem that's
  • 3:21 - 3:23
    just like the problems we
    did in the last video.
  • 3:23 - 3:26
    What is this left-hand side?
  • 3:26 - 3:27
    Let me rewrite the
    whole thing.
  • 3:27 - 3:33
    We have x squared minus 4x
    plus 4 is equal to 9 now.
  • 3:33 - 3:35
    All we did is add 4 to both
    sides of the equation.
  • 3:35 - 3:39
    But we added 4 on purpose so
    that this left-hand side
  • 3:39 - 3:41
    becomes a perfect square.
  • 3:41 - 3:42
    Now what is this?
  • 3:42 - 3:45
    What number when I multiply it
    by itself is equal to 4 and
  • 3:45 - 3:48
    when I add it to itself I'm
    equal to negative 2?
  • 3:48 - 3:49
    Well, we already answered
    that question.
  • 3:49 - 3:50
    It's negative 2.
  • 3:50 - 3:55
    So we get x minus 2 times
    x minus 2 is equal to 9.
  • 3:55 - 3:59
    Or we could have skipped this
    step and written x minus 2
  • 3:59 - 4:03
    squared is equal to 9.
  • 4:03 - 4:07
    And then you take the square
    root of both sides, you get x
  • 4:07 - 4:11
    minus 2 is equal to
    plus or minus 3.
  • 4:11 - 4:17
    Add 2 to both sides, you get x
    is equal to 2 plus or minus 3.
  • 4:17 - 4:22
    That tells us that x could be
    equal to 2 plus 3, which is 5.
  • 4:22 - 4:29
    Or x could be equal to 2 minus
    3, which is negative 1.
  • 4:29 - 4:31
    And we are done.
  • 4:31 - 4:32
    Now I want to be very clear.
  • 4:32 - 4:34
    You could have done this without
    completing the square.
  • 4:34 - 4:38
    We could've started off
    with x squared minus
  • 4:38 - 4:40
    4x is equal to 5.
  • 4:40 - 4:43
    We could have subtracted 5 from
    both sides and gotten x
  • 4:43 - 4:47
    squared minus 4x minus
    5 is equal to 0.
  • 4:47 - 4:52
    And you could say, hey, if I
    have a negative 5 times a
  • 4:52 - 4:56
    positive 1, then their product
    is negative 5 and their sum is
  • 4:56 - 4:57
    negative 4.
  • 4:57 - 5:01
    So I could say this is x
    minus 5 times x plus
  • 5:01 - 5:02
    1 is equal to 0.
  • 5:02 - 5:07
    And then we would say that x is
    equal to 5 or x is equal to
  • 5:07 - 5:08
    negative 1.
  • 5:08 - 5:10
    And in this case, this actually
    probably would have
  • 5:10 - 5:13
    been a faster way to
    do the problem.
  • 5:13 - 5:16
    But the neat thing about the
    completing the square is it
  • 5:16 - 5:18
    will always work.
  • 5:18 - 5:22
    It'll always work no matter what
    the coefficients are or
  • 5:22 - 5:23
    no matter how crazy
    the problem is.
  • 5:23 - 5:25
    And let me prove it to you.
  • 5:25 - 5:28
    Let's do one that traditionally
    would have been
  • 5:28 - 5:31
    a pretty painful problem if
    we just tried to do it by
  • 5:31 - 5:36
    factoring, especially if we
    did it using grouping or
  • 5:36 - 5:37
    something like that.
  • 5:37 - 5:45
    Let's say we had 10x squared
    minus 30x minus
  • 5:45 - 5:48
    8 is equal to 0.
  • 5:48 - 5:50
    Now, right from the get-go, you
    could say, hey look, we
  • 5:50 - 5:53
    could maybe divide
    both sides by 2.
  • 5:53 - 5:55
    That does simplify
    a little bit.
  • 5:55 - 5:56
    Let's divide both sides by 2.
  • 5:56 - 6:02
    So if you divide everything
    by 2, what do you get?
  • 6:02 - 6:12
    We get 5x squared minus 15x
    minus 4 is equal to 0.
  • 6:12 - 6:15
    But once again, now we have this
    crazy 5 in front of this
  • 6:15 - 6:17
    coefficent and we would have to
    solve it by grouping which
  • 6:17 - 6:20
    is a reasonably painful
    process.
  • 6:20 - 6:23
    But we can now go straight to
    completing the square, and to
  • 6:23 - 6:28
    do that I'm now going to divide
    by 5 to get a 1 leading
  • 6:28 - 6:29
    coefficient here.
  • 6:29 - 6:32
    And you're going to see why this
    is different than what
  • 6:32 - 6:33
    we've traditionally done.
  • 6:33 - 6:36
    So if I divide this whole thing
    by 5, I could have just
  • 6:36 - 6:38
    divided by 10 from the get-go
    but I wanted to go to this the
  • 6:38 - 6:40
    step first just to show
    you that this really
  • 6:40 - 6:42
    didn't give us much.
  • 6:42 - 6:44
    Let's divide everything by 5.
  • 6:44 - 6:53
    So if you divide everything by
    5, you get x squared minus 3x
  • 6:53 - 6:59
    minus 4/5 is equal to 0.
  • 6:59 - 7:02
    So, you might say, hey, why did
    we ever do that factoring
  • 7:02 - 7:03
    by grouping?
  • 7:03 - 7:06
    If we can just always divide by
    this leading coefficient,
  • 7:06 - 7:07
    we can get rid of that.
  • 7:07 - 7:10
    We can always turn this into a 1
    or a negative 1 if we divide
  • 7:10 - 7:11
    by the right number.
  • 7:11 - 7:14
    But notice, by doing that we
    got this crazy 4/5 here.
  • 7:14 - 7:18
    So this is super hard to do
    just using factoring.
  • 7:18 - 7:20
    You'd have to say, what two
    numbers when I take the
  • 7:20 - 7:22
    product is equal to
    negative 4/5?
  • 7:22 - 7:25
    It's a fraction and when I take
    their sum, is equal to
  • 7:25 - 7:26
    negative 3?
  • 7:26 - 7:29
    This is a hard problem
    with factoring.
  • 7:29 - 7:37
    This is hard using factoring.
  • 7:37 - 7:42
    So, the best thing to do is to
    use completing the square.
  • 7:42 - 7:45
    So let's think a little bit
    about how we can turn this
  • 7:45 - 7:46
    into a perfect square.
  • 7:46 - 7:48
    What I like to do-- and you'll
    see this done some ways and
  • 7:48 - 7:50
    I'll show you both ways because
    you'll see teachers do
  • 7:50 - 7:54
    it both ways-- I like to get
    the 4/5 on the other side.
  • 7:54 - 7:57
    So let's add 4/5 to both
    sides of this equation.
  • 7:57 - 8:00
    You don't have to do it this
    way, but I like to get the 4/5
  • 8:00 - 8:01
    out of the way.
  • 8:01 - 8:04
    And then what do we get
    if we add 4/5 to both
  • 8:04 - 8:05
    sides of this equation?
  • 8:05 - 8:08
    The left-hand hand side of the
    equation just becomes x
  • 8:08 - 8:12
    squared minus 3x,
    no 4/5 there.
  • 8:12 - 8:14
    I'm going to leave a little
    bit of space.
  • 8:14 - 8:18
    And that's going to
    be equal to 4/5.
  • 8:18 - 8:20
    Now, just like the last problem,
    we want to turn this
  • 8:20 - 8:23
    left-hand side into the perfect
    square of a binomial.
  • 8:23 - 8:25
    How do we do that?
  • 8:25 - 8:28
    Well, we say, well, what number
    times 2 is equal to
  • 8:28 - 8:30
    negative 3?
  • 8:30 - 8:32
    So some number times
    2 is negative 3.
  • 8:32 - 8:35
    Or we essentially just take
    negative 3 and divide it by 2,
  • 8:35 - 8:37
    which is negative 3/2.
  • 8:37 - 8:40
    And then we square
    negative 3/2.
  • 8:40 - 8:45
    So in the example, we'll
    say a is negative 3/2.
  • 8:45 - 8:48
    And if we square negative
    3/2, what do we get?
  • 8:48 - 8:54
    We get positive 9/4.
  • 8:54 - 8:57
    I just took half of this
    coefficient, squared it, got
  • 8:57 - 8:58
    positive 9/4.
  • 8:58 - 9:01
    The whole purpose of doing that
    is to turn this left-hand
  • 9:01 - 9:03
    side into a perfect square.
  • 9:03 - 9:06
    Now, anything you do to one side
    of the equation, you've
  • 9:06 - 9:07
    got to do to the other side.
  • 9:07 - 9:11
    So we added a 9/4 here, let's
    add a 9/4 over there.
  • 9:11 - 9:14
    And what does our
    equation become?
  • 9:14 - 9:23
    We get x squared minus 3x plus
    9/4 is equal to-- let's see if
  • 9:23 - 9:24
    we can get a common
    denominator.
  • 9:24 - 9:29
    So, 4/5 is the same
    thing as 16/20.
  • 9:29 - 9:32
    Just multiply the numerator
    and denominator by 4.
  • 9:32 - 9:34
    Plus over 20.
  • 9:34 - 9:37
    9/4 is the same thing
    if you multiply the
  • 9:37 - 9:42
    numerator by 5 as 45/20.
  • 9:42 - 9:45
    And so what is 16 plus 45?
  • 9:45 - 9:47
    You see, this is kind of getting
    kind of hairy, but
  • 9:47 - 9:49
    that's the fun, I guess, of
  • 9:49 - 9:50
    completing the square sometimes.
  • 9:50 - 9:53
    16 plus 45.
  • 9:53 - 9:56
    See that's 55, 61.
  • 9:56 - 10:00
    So this is equal to 61/20.
  • 10:00 - 10:03
    So let me just rewrite it.
  • 10:03 - 10:09
    x squared minus 3x plus
    9/4 is equal to 61/20.
  • 10:09 - 10:11
    Crazy number.
  • 10:11 - 10:14
    Now this, at least on
    the left hand side,
  • 10:14 - 10:16
    is a perfect square.
  • 10:16 - 10:22
    This is the same thing as
    x minus 3/2 squared.
  • 10:22 - 10:24
    And it was by design.
  • 10:24 - 10:28
    Negative 3/2 times negative
    3/2 is positive 9/4.
  • 10:28 - 10:33
    Negative 3/2 plus negative 3/2
    is equal to negative 3.
  • 10:33 - 10:38
    So this squared is
    equal to 61/20.
  • 10:38 - 10:43
    We can take the square root of
    both sides and we get x minus
  • 10:43 - 10:48
    3/2 is equal to the positive
    or the negative
  • 10:48 - 10:53
    square root of 61/20.
  • 10:53 - 10:58
    And now, we can add 3/2 to both
    sides of this equation
  • 10:58 - 11:04
    and you get x is equal to
    positive 3/2 plus or minus the
  • 11:04 - 11:07
    square root of 61/20.
  • 11:07 - 11:09
    And this is a crazy number and
    it's hopefully obvious you
  • 11:09 - 11:11
    would not have been able to-- at
    least I would not have been
  • 11:11 - 11:15
    able to-- get to this number
    just by factoring.
  • 11:15 - 11:17
    And if you want their actual
    values, you can get your
  • 11:17 - 11:19
    calculator out.
  • 11:21 - 11:23
    And then let me clear
    all of this.
  • 11:26 - 11:29
    And 3/2-- let's do the plus
    version first. So we want to
  • 11:29 - 11:34
    do 3 divided by 2 plus the
    second square root.
  • 11:34 - 11:35
    We want to pick that little
    yellow square root.
  • 11:35 - 11:46
    So the square root of 61 divided
    by 20, which is 3.24.
  • 11:46 - 11:53
    This crazy 3.2464, I'll
    just write 3.246.
  • 11:53 - 12:02
    So this is approximately equal
    to 3.246, and that was just
  • 12:02 - 12:03
    the positive version.
  • 12:03 - 12:07
    Let's do the subtraction
    version.
  • 12:07 - 12:09
    So we can actually put our
    entry-- if you do second and
  • 12:09 - 12:12
    then entry, that we want that
    little yellow entry, that's
  • 12:12 - 12:12
    why I pressed the
    second button.
  • 12:12 - 12:16
    So I press enter, it puts in
    what we just put, we can just
  • 12:16 - 12:23
    change the positive or the
    addition to a subtraction and
  • 12:23 - 12:28
    you get negative 0.246.
  • 12:28 - 12:34
    So you get negative 0.246.
  • 12:34 - 12:38
    And you can actually verify
    that these satisfy our
  • 12:38 - 12:39
    original equation.
  • 12:39 - 12:42
    Our original equation
    was up here.
  • 12:42 - 12:44
    Let me just verify
    for one of them.
  • 12:47 - 12:50
    So the second answer on your
    graphing calculator is the
  • 12:50 - 12:52
    last answer you use.
  • 12:52 - 12:54
    So if you use a variable answer,
    that's this number
  • 12:54 - 12:55
    right here.
  • 12:55 - 13:00
    So if I have my answer squared--
    I'm using answer
  • 13:00 - 13:02
    represents negative 0.24.
  • 13:02 - 13:12
    Answer squared minus 3 times
    answer minus 4/5-- 4 divided
  • 13:12 - 13:16
    by 5-- it equals--.
  • 13:16 - 13:18
    And this just a little
    bit of explanation.
  • 13:18 - 13:22
    This doesn't store the entire
    number, it goes up to some
  • 13:22 - 13:23
    level of precision.
  • 13:23 - 13:25
    It stores some number
    of digits.
  • 13:25 - 13:29
    So when it calculated it using
    this stored number right here,
  • 13:29 - 13:32
    it got 1 times 10 to
    the negative 14.
  • 13:32 - 13:35
    So that is 0.0000.
  • 13:35 - 13:37
    So that's 13 zeroes
    and then a 1.
  • 13:37 - 13:39
    A decimal, then 13
    zeroes and a 1.
  • 13:39 - 13:41
    So this is pretty much 0.
  • 13:41 - 13:44
    Or actually, if you got the
    exact answer right here, if
  • 13:44 - 13:46
    you went through an infinite
    level of precision here, or
  • 13:46 - 13:49
    maybe if you kept it in this
    radical form, you would get
  • 13:49 - 13:52
    that it is indeed equal to 0.
  • 13:52 - 13:55
    So hopefully you found that
    helpful, this whole notion of
  • 13:55 - 13:56
    completing the square.
  • 13:56 - 13:59
    Now we're going to extend it
    to the actual quadratic
  • 13:59 - 14:02
    formula that we can use, we
    can essentially just plug
  • 14:02 - 14:04
    things into to solve any
    quadratic equation.
Title:
Solving Quadratic Equations by Completing the Square
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
14:06

English subtitles

Revisions Compare revisions