Law of Cosines

8
LAW OF COSINE Derivation From the right triangle to the left cos = ; = cos (1) 2 = β„Ž 2 + 2 ; β„Ž 2 = 2 βˆ’ 2 (2) From the right triangle to the right 2 = β„Ž 2 + ( βˆ’ ) 2 2 = β„Ž 2 + 2 βˆ’ 2 + 2 (3) Substitute equation (2) to equation (3) 2 = 2 βˆ’ 2 + 2 βˆ’ 2 + 2 2 = 2 + 2 βˆ’ 2 (4) Substitute equation (1) to (4) 2 = 2 + 2 βˆ’ 2 cos Therefore 2 = 2 + 2 βˆ’ 2 cos 2 = 2 + 2 βˆ’ 2 cos 2 = 2 + 2 βˆ’ 2 cos b c A C a h (x,y) (a,0) x b-x B

description

Law of Cosines

Transcript of Law of Cosines

Page 1: Law of Cosines

LAW OF COSINE

Derivation

From the right triangle to the left

cos 𝐴 = π‘₯

𝑐 ; π‘₯ = 𝑐 cos 𝐴 (1)

𝑐2 = β„Ž2 + π‘₯2 ; β„Ž2 = 𝑐2 βˆ’ π‘₯2 (2)

From the right triangle to the right

π‘Ž2 = β„Ž2 + (𝑏 βˆ’ π‘₯)2

π‘Ž2 = β„Ž2 + 𝑏2 βˆ’ 2𝑏π‘₯ + π‘₯2 (3) Substitute equation (2) to equation (3)

π‘Ž2 = 𝑐2 βˆ’ π‘₯2 + 𝑏2 βˆ’ 2𝑏π‘₯ + π‘₯2

π‘Ž2 = 𝑏2 + 𝑐2 βˆ’ 2𝑏π‘₯ (4) Substitute equation (1) to (4)

π‘Ž2 = 𝑏2 + 𝑐2 βˆ’ 2𝑏𝑐 cos 𝐴 Therefore π‘Ž2 = 𝑏2 + 𝑐2 βˆ’ 2𝑏𝑐 cos 𝐴

𝑏2 = π‘Ž2 + 𝑐2 βˆ’ 2π‘Žπ‘ cos 𝐡

𝑐2 = π‘Ž2 + 𝑏2 βˆ’ 2π‘Žπ‘ cos 𝐢

b

c

A C

a

h

(x,y)

(a,0) x b-x

B

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Page 2: Law of Cosines

CASE III: Two side and the included angle given Problem 1

Solve the unknown side and angles of a triangle for which a = 25, b = 30 and C = 50⁰.

Find

c = ? A = ? B = ?

Solution

𝑐2 = π‘Ž2 + 𝑏2 βˆ’ 2π‘Žπ‘ cos 𝐢

𝑐2 = 252 + 302 βˆ’ 2(25)(30) cos 50⁰

𝑐2 = 560.82

∴ 𝑐 = 23.68 Using sine law

π‘Ž

sin 𝐴=

𝑏

sin 𝐡

25

sin 𝐴=

23.68

sin 50⁰

sin 𝐴 = (25) sin 50⁰

23.68

sin 𝐴 = 0.8087 …

𝐴 = sinβˆ’1(0.8087 …)

𝐴1 = 53.970

𝐴2 = 1800 βˆ’ 𝐴1 = 1800 βˆ’ 53.970 = 126.03⁰

Since the side π‘Ž is the second lowest side, therefore its opposite angle must be acute.

∴ 𝐴 = 53.97⁰

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Page 3: Law of Cosines

Using sine law

𝑏

sin 𝐡=

𝑏

sin 𝐡

30

sin 𝐡=

23.68

sin 50⁰

sin 𝐡 = (30) sin 50⁰

23.68

sin 𝐡 = 0.9705 …

𝐡 = sinβˆ’1(09705 …)

𝐡1 = 76.05⁰

𝐡2 = 1800 βˆ’ 𝐡1 = 1800 βˆ’ 76.050 = 103.95⁰

Since side 𝑏 is the largest side, adding the acute angle 𝐡1 to the angles 𝐴 and 𝐢 will give 180⁰.

∴ 𝐡 = 76.050

Checking 𝐴 + 𝐡 + 𝐢 = 180⁰

53.970 + 76.050 + 500 = 1800 (𝑂𝐾)

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Page 4: Law of Cosines

CASE IV: Three sides given Problem 2

Solve the unknown angles of a triangle for which a = 5, b = 6 and c = 9.

Find

A = ? B = ? C = ?

Solution

π‘Ž2 = 𝑏2 + 𝑐2 βˆ’ 2𝑏𝑐 cos 𝐴

2𝑏𝑐 cos 𝐴 = 𝑏2 + 𝑐2 βˆ’ π‘Ž2

cos 𝐴 = 𝑏2 + 𝑐2 βˆ’ π‘Ž2

2𝑏𝑐

cos 𝐴 = 62 + 92 βˆ’ 52

2(6)(9)

cos 𝐴 = 0.85185 …

𝐴 = cosβˆ’1(0.85185 … )

∴ 𝐴 = 31.59⁰

Using Cosine Law (Sine Law can also be used)

𝑏2 = π‘Ž2 + 𝑐2 βˆ’ 2π‘Žπ‘ cos 𝐡

2π‘Žπ‘ cos 𝐡 = π‘Ž2 + 𝑐2 βˆ’ 𝑏2

cos 𝐡 = π‘Ž2 + 𝑐2 βˆ’ 𝑏2

2π‘Žπ‘

cos 𝐡 = 52 + 92 βˆ’ 62

2(5)(9)

cos 𝐡 = 0.7777 …

𝐡 = cosβˆ’1(0.7777 … )

∴ 𝐡 = 38.94⁰

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Page 5: Law of Cosines

Using Cosine Law (Sine Law can also be used)

𝑐2 = π‘Ž2 + 𝑏2 βˆ’ 2π‘Žπ‘ cos 𝐢

2π‘Žπ‘ cos 𝐢 = π‘Ž2 + 𝑏2 βˆ’ 𝑐2

cos 𝐢 = π‘Ž2 + 𝑏2 βˆ’ 𝑐2

2π‘Žπ‘

cos 𝐢 = 52 + 62 βˆ’ 92

2(5)(6)

cos 𝐢 = 0.3333 …

𝐢 = cosβˆ’1(0.3333 … )

∴ 𝐢 = 109.47⁰

Checking 𝐴 + 𝐡 + 𝐢 = 180⁰

31.590 + 38.940 + 109.470 = 1800 (𝑂𝐾)

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Page 6: Law of Cosines

CASE II: Given two side and one opposite angle (Possible triangle/s can be formed) A. Two Possible Triangles

Problem 3

Solve for the possible side/s c of a triangle for which: a = 25.2 A = 54.2⁰ b = 30.5 Solution: Using Cosine Law

π‘Ž2 = 𝑏2 + 𝑐2 βˆ’ 2𝑏𝑐 cos 𝐴

25.22 = 30.52 + 𝑐2 βˆ’ 2(30.5)𝑐 cos 54.2⁰

0 = 30.52 βˆ’ 25.22 + 𝑐2 βˆ’ 2(30.5)𝑐 cos 54.2⁰

𝑐2 βˆ’ 35.68𝑐 + 295.21 = 0

Using quadratic formula

π‘₯ =βˆ’π΅ Β± √𝐡2 βˆ’ 4𝐴𝐢

2𝐴

𝐴 = 1 𝐡 = βˆ’35.68 𝐢 = 295.21

𝑐1 =βˆ’(βˆ’35.68) + √(βˆ’35.68)2 βˆ’ 4(1)(295.21)

2(1)

∴ 𝑐1 = +22.64

𝑐2 =βˆ’(βˆ’35.68) βˆ’ √(βˆ’35.68)2 βˆ’ 4(1)(295.21)

2(1)

∴ 𝑐2 = +13.04

Since there are two positive real roots, thus there are two possible sides of c. Therefore, two triangles can be formed. Use cosine law (or sine law) to solve for the possible angles B & C for side c = 22.64 and possible angles B & C for side c = 13.04.

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Page 7: Law of Cosines

B. One Possible Triangle

Problem 4

Solve for the possible side/s c of a triangle for which: a = 5.21 A = 47.6⁰ b = 3.06 Solution: Using Cosine Law

π‘Ž2 = 𝑏2 + 𝑐2 βˆ’ 2𝑏𝑐 cos 𝐴

5.212 = 3.062 + 𝑐2 βˆ’ 2(3.06)𝑐 cos 47.6⁰

0 = 3.062 βˆ’ 5.212 + 𝑐2 βˆ’ 2(3.06)𝑐 cos 47.6⁰

𝑐2 βˆ’ 4.13𝑐 βˆ’ 17.78 = 0

Using quadratic formula

π‘₯ =βˆ’π΅ Β± √𝐡2 βˆ’ 4𝐴𝐢

2𝐴

𝐴 = 1 𝐡 = βˆ’4.13 𝐢 = βˆ’17.78

𝑐1 =βˆ’(βˆ’4.13) + √(βˆ’4.13)2 βˆ’ 4(1)(βˆ’17.78)

2(1)

∴ 𝑐1 = +6.76

𝑐2 =βˆ’(βˆ’4.13) βˆ’ √(βˆ’4.13)2 βˆ’ 4(1)(βˆ’17.78)

2(1)

𝑐2 = βˆ’2.63

Since there is only one positive real root, thus there is only one possible side of c. Therefore, one triangle can be formed. Use cosine law/sine law to solve for the possible angles B and C for side c = 6.67.

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University
Page 8: Law of Cosines

C. No Possible Triangle Problem 5

Solve for the possible side/s c of a triangle for which: a = 2.30 A = 42⁰ b = 4.50 Solution: Using Cosine Law

π‘Ž2 = 𝑏2 + 𝑐2 βˆ’ 2𝑏𝑐 cos 𝐴

2.32 = 4.52 + 𝑐2 βˆ’ 2(4.5)𝑐 cos 42⁰

0 = 4.52 βˆ’ 2.32 + 𝑐2 βˆ’ 2(4.5)𝑐 cos 42⁰

𝑐2 βˆ’ 6.69𝑐 + 14.96 = 0

Using quadratic formula

π‘₯ =βˆ’π΅ Β± √𝐡2 βˆ’ 4𝐴𝐢

2𝐴

𝐴 = 1 𝐡 = βˆ’6.69 𝐢 = +14.96

𝑐1 =βˆ’(βˆ’6.69) + √(βˆ’6.69)2 βˆ’ 4(1)(+14.96)

2(1)

𝑐1 =6.69 + βˆšβˆ’15.08

2 =

6.69 + √15.08(βˆ’1)

2 =

6.69 + 3.87𝑖

2

𝑐1 = 3.35 + 1.97𝑖 (π‘–π‘šπ‘Žπ‘”π‘–π‘›π‘Žπ‘Ÿπ‘¦)

𝑐2 =βˆ’(βˆ’6.69) βˆ’ √(βˆ’6.69)2 βˆ’ 4(1)(+14.96)

2(1)

𝑐2 =6.69 βˆ’ βˆšβˆ’15.08

2 =

6.69 βˆ’ √15.08(βˆ’1)

2 =

6.69 βˆ’ 3.87𝑖

2

𝑐2 = 3.35 βˆ’ 1.97𝑖 (π‘–π‘šπ‘Žπ‘”π‘–π‘›π‘Žπ‘Ÿπ‘¦)

Since there is no positive real root, thus there is no possible side of c. Therefore, no triangle can be formed.

Ryan
Typewritten text
ENGR. RYAN M. LAYUG Instructor I - Tarlac State University