< Return to Video

Law of cosines

  • 0:01 - 0:05
    In the last video, we had a
    word problem where we had-- we
  • 0:05 - 0:07
    essentially had to figure out
    the sides of a triangle, but
  • 0:07 - 0:09
    instead of, you know, just
    being able to do the
  • 0:09 - 0:12
    Pythagorean theorem and because
    it was a right triangle, it was
  • 0:12 - 0:13
    just kind of a normal triangle.
  • 0:13 - 0:15
    It wasn't a right triangle.
  • 0:15 - 0:17
    And we just kind of chugged
    through it using SOHCAHTOA and
  • 0:17 - 0:20
    just our very simple trig
    functions, and we got
  • 0:20 - 0:21
    the right answer.
  • 0:21 - 0:23
    What I want to do now is to
    introduce you to something
  • 0:23 - 0:27
    called the law of cosines,
    which we essentially proved in
  • 0:27 - 0:29
    the last video, but I want to
    kind of prove it in a more--
  • 0:29 - 0:31
    you know, without the word
    problem getting in the way, and
  • 0:31 - 0:34
    I want to show you, once you
    know the law of cosines, so you
  • 0:34 - 0:36
    can then apply it to a problem,
    like we did in the past,
  • 0:36 - 0:37
    and you'll do it faster.
  • 0:37 - 0:41
    I have a bit of a mixed opinion
    about it because I'm not a
  • 0:41 - 0:43
    big fan of memorizing things.
  • 0:43 - 0:46
    You know, when you're 40 years
    old, you probably won't have
  • 0:46 - 0:49
    the law of cosines still
    memorized, but if you have that
  • 0:49 - 0:51
    ability to start with the trig
    functions and just move
  • 0:51 - 0:54
    forward, then you'll
    always be set.
  • 0:54 - 0:55
    And I'd be impressed if
    you're still doing trig
  • 0:55 - 0:57
    at 40, but who knows?
  • 0:57 - 0:59
    So let's go and let's
    see what this law of
  • 0:59 - 1:00
    cosines is all about.
  • 1:00 - 1:04
    So let's say that I
    know this angle theta.
  • 1:08 - 1:12
    And let's called this
    side-- I don't know, a.
  • 1:12 - 1:15
    No, let's call this side b.
  • 1:15 - 1:17
    I'm being a little
    arbitrary here.
  • 1:17 - 1:22
    Actually, let me stay in
    the colors of the sides.
  • 1:22 - 1:28
    Let's call that b and let's
    call this c, and let's
  • 1:28 - 1:31
    call this side a.
  • 1:31 - 1:33
    So if this is a right triangle,
    then we could have used
  • 1:33 - 1:38
    the Pythagorean theorem
    somehow, but now we can't.
  • 1:38 - 1:38
    So what do we do?
  • 1:38 - 1:42
    So we know a-- well, let's
    assume that we know b, we know
  • 1:42 - 1:45
    c, we know theta, and then
    we want to solve for a.
  • 1:45 - 1:49
    But, in general, as long as you
    know three of these, you can
  • 1:49 - 1:52
    solve for the fourth once you
    know the law of cosines.
  • 1:52 - 1:53
    So how can we do it?
  • 1:53 - 1:55
    Well, we're going to do
    it the exact same way we
  • 1:55 - 1:57
    did that last problem.
  • 1:57 - 2:02
    We can drop a line
    here to make-- oh, my
  • 2:02 - 2:02
    God, that's messy.
  • 2:02 - 2:04
    I thought I was using
    the line tool.
  • 2:04 - 2:05
    Edit, undo.
  • 2:08 - 2:11
    So I can drop a line like that.
  • 2:11 - 2:14
    So I have two right angles.
  • 2:14 - 2:16
    And then once I have right
    triangles, then now I can start
  • 2:16 - 2:19
    to use trig functions and
    the Pythagorean theorem,
  • 2:19 - 2:20
    et cetera, et cetera.
  • 2:20 - 2:25
    So, let's see, this is a right
    angle, this is a right angle.
  • 2:25 - 2:30
    So what is this side here?
  • 2:30 - 2:31
    Let me pick another color.
  • 2:31 - 2:34
    I'm probably going to get too
    involved with all the colors,
  • 2:34 - 2:36
    but it's for your improvement.
  • 2:36 - 2:37
    So what is this side here?
  • 2:37 - 2:41
    What is the length of that
    side, that purple side?
  • 2:41 - 2:45
    Well, that purple side is just,
    you know, we use SOHCAHTOA.
  • 2:45 - 2:47
    I was just going to write
    SOHCAHTOA up here.
  • 2:51 - 2:57
    So this purple side is adjacent
    to theta, and then this blue or
  • 2:57 - 3:04
    mauve side b is the hypotenuse
    of this right triangle.
  • 3:04 - 3:06
    So we know that-- I'm just
    going to stick to one color
  • 3:06 - 3:09
    because it'll take me forever
    if I keep switching colors.
  • 3:09 - 3:14
    We know that cosine of theta--
    let's call this side, let's
  • 3:14 - 3:17
    call this kind of subside--
    I don't know, let's
  • 3:17 - 3:21
    call this d, side d.
  • 3:21 - 3:28
    We know that cosine of theta
    is equal to d over b, right?
  • 3:28 - 3:30
    And we know b.
  • 3:30 - 3:37
    Or that d is equal to what?
  • 3:37 - 3:43
    It equals b cosine theta.
  • 3:43 - 3:48
    Now, let's call this
    side e right here.
  • 3:48 - 3:49
    Well, what's e?
  • 3:49 - 3:52
    Well, e is this whole c
    side-- c side, oh, that's
  • 3:52 - 3:57
    interesting-- this whole c side
    minus this d side, right?
  • 3:57 - 4:03
    So e is equal to c minus d.
  • 4:03 - 4:09
    We just solved for d, so
    side e is equal to c
  • 4:09 - 4:12
    minus b cosine of theta.
  • 4:15 - 4:16
    So that's e.
  • 4:16 - 4:19
    We got e out of the way.
  • 4:19 - 4:21
    Well, what's this magenta
    side going to be?
  • 4:21 - 4:24
    Well, let's call this magenta--
    let's call it m from magenta.
  • 4:27 - 4:29
    Well, m is opposite to theta.
  • 4:33 - 4:33
    Now, we know it.
  • 4:33 - 4:36
    We've solved for c as well, but
    we know b, and b is simple.
  • 4:36 - 4:40
    So what relationship gives us
    m over b, or involves the
  • 4:40 - 4:41
    opposite and the hypotenuse?
  • 4:41 - 4:45
    Well, that's sine:
    opposite over hypotenuse.
  • 4:45 - 4:50
    So we know that m over b is
    equal to sine of theta.
  • 4:50 - 4:53
    We know that-- let
    me go over here.
  • 4:53 - 4:57
    m over b, right, because this
    is the hypotenuse, is equal to
  • 4:57 - 5:09
    sine of theta, or that m
    is equal to b sine
  • 5:09 - 5:10
    of theta, right?
  • 5:10 - 5:13
    So we figured out m, we
    figured out e, and now
  • 5:13 - 5:15
    we want to figure out a.
  • 5:15 - 5:16
    And this should
    jump out at you.
  • 5:16 - 5:18
    We have two sides of
    a right triangle.
  • 5:18 - 5:20
    We want to figure
    out the hypotenuse.
  • 5:20 - 5:22
    We can use the
    Pythagorean theorem.
  • 5:22 - 5:28
    The Pythagorean theorem tells
    us a squared is equal to m
  • 5:28 - 5:32
    squared plus e squared, right?
  • 5:32 - 5:34
    Just the square of
    the other two sides.
  • 5:34 - 5:36
    Well, what's m squared
    plus e squared?
  • 5:36 - 5:39
    Let me switch to another
    color just to be arbitrary.
  • 5:39 - 5:42
    a squared is equal
    to m squared.
  • 5:42 - 5:44
    m is b sine of theta.
  • 5:44 - 5:54
    So it's b sine of theta
    squared plus e squared.
  • 5:54 - 5:56
    Well, e we figure out is this.
  • 5:56 - 6:03
    So it's plus c minus b
    cosine theta squared.
  • 6:03 - 6:05
    Now, let's just chug
    through some algebra.
  • 6:05 - 6:13
    So that equals b sine-- b
    squared sine squared of theta.
  • 6:13 - 6:14
    Sine squared of theta
    just means sine of
  • 6:14 - 6:15
    theta squared, right?
  • 6:15 - 6:18
    Plus, and we just foiled
    this out, although I
  • 6:18 - 6:18
    don't like using foil.
  • 6:18 - 6:21
    I just multiply it out.
  • 6:21 - 6:34
    c squared minus 2cb cosine
    theta plus b squared
  • 6:34 - 6:35
    cosine theta, right?
  • 6:35 - 6:38
    I just expanded this out
    by multiplying it out.
  • 6:38 - 6:40
    And now let's see if we can
    do anything interesting.
  • 6:40 - 6:47
    Well, if we take this term and
    this term, we get-- those two
  • 6:47 - 6:54
    terms are b squared sine
    squared of theta plus b squared
  • 6:54 - 6:57
    cosine-- this should be squared
    there, right, because
  • 6:57 - 6:58
    we squared it.
  • 6:58 - 7:04
    b squared cosine squared of
    theta, and then we have plus c
  • 7:04 - 7:10
    squared minus 2bc cosine theta.
  • 7:10 - 7:12
    Well, what does
    this simplify to?
  • 7:12 - 7:18
    Well, this is the same thing
    as b squared times the
  • 7:18 - 7:22
    sine squared theta plus
    cosine squared of theta.
  • 7:22 - 7:27
    Something should be jumping out
    at you, and that's plus c
  • 7:27 - 7:33
    squared minus 2bc cosine theta.
  • 7:33 - 7:36
    Well, this thing, sine
    squared plus cosine
  • 7:36 - 7:38
    squared of any angle is 1.
  • 7:38 - 7:40
    That's one of the
    earlier identities.
  • 7:40 - 7:42
    That's the Pythagorean
    identity right there.
  • 7:42 - 7:47
    So this equals 1, so then
    we're left with-- going
  • 7:47 - 7:49
    back to my original color.
  • 7:49 - 7:56
    We're almost there-- a squared
    is equal to-- this term just
  • 7:56 - 7:58
    becomes 1, so b squared.
  • 7:58 - 8:07
    We're just left with a b
    squared plus c squared
  • 8:07 - 8:16
    minus 2bc cosine of theta.
  • 8:16 - 8:21
    That's pretty neat, and this
    is called the law of cosines.
  • 8:21 - 8:24
    And it's useful because, you
    know, if you know an angle
  • 8:24 - 8:28
    and two of the sides of
    any triangle, you can now
  • 8:28 - 8:32
    solve for the other side.
  • 8:32 - 8:35
    Or really, if you want to, if
    you know three sides of a
  • 8:35 - 8:38
    triangle, you can now solve
    for any angle, so that
  • 8:38 - 8:40
    also is very useful.
  • 8:40 - 8:42
    The only reason why I'm a
    little bit, you know, here,
  • 8:42 - 8:46
    there, is I don't-- if you are
    in trigonometry right now and
  • 8:46 - 8:49
    you might have a test, you
    should memorize this because
  • 8:49 - 8:50
    it'll make you faster, and
    you'll get the answer
  • 8:50 - 8:52
    right quicker.
  • 8:52 - 8:55
    I'm not a big fan of just
    memorizing it without knowing
  • 8:55 - 8:59
    where it came from, because a
    year from now or two years from
  • 8:59 - 9:02
    now when you go to college and
    it's been four years since you
  • 9:02 - 9:05
    took trigonometry, you probably
    won't have this memorized.
  • 9:05 - 9:07
    And if you face a trig problem
    all of a sudden, it's good to
  • 9:07 - 9:09
    kind of get there from scratch.
  • 9:09 - 9:12
    With that said, this is the law
    of cosines, and if you use the
  • 9:12 - 9:14
    law of cosines, you could have
    done that problem we just did a
  • 9:14 - 9:17
    lot faster because we just--
    you know, you just have to set
  • 9:17 - 9:20
    up the triangle and then just
    substitute into this, and you
  • 9:20 - 9:24
    could have solved for a in
    that ship off-course problem.
  • 9:24 - 9:26
    I'll see you in the next video.
Title:
Law of cosines
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
09:27
Fran Ontanaya edited English subtitles for Law of cosines
Amara Bot edited English subtitles for Law of cosines

English subtitles

Revisions Compare revisions