Problem-Solving Trick No One Taught You: RMS-AM-GM-HM Inequality - YouTube

Channel: unknown

[0]
hey this is presh talwalkar
[3]
if someone asks
[4]
hey can you tell me the average of the
[7]
numbers
[8]
a mathematician might jokingly say which
[11]
mean do you mean
[13]
most people are referring to the
[15]
arithmetic mean which is the most common
[17]
simple average
[19]
but in some applications
[21]
other means may be more appropriate
[24]
for example the geometric mean is useful
[27]
to calculate the average annual growth
[29]
rate
[30]
and it's used in economics for example
[34]
then there's the harmonic mean which is
[36]
useful to calculate things like the
[38]
average speed
[40]
there's also something called the root
[42]
mean square which is useful in
[44]
electrical engineering and it's also
[46]
called the quadratic mean
[49]
interestingly enough there is a
[50]
relationship between all of these means
[54]
it's abbreviated by their acronym
[57]
the rms am gm and hm inequality
[62]
this is useful in math competitions and
[64]
it's also useful in theoretical proofs
[68]
in this video i'm going to present the
[69]
version for two variables because
[72]
there's a nice geometric visualization
[75]
of it
[76]
so first let's state it
[78]
for positive numbers a and b
[82]
the largest quantity will be the root
[84]
mean square this is equal to the square
[87]
root of the quantity a squared plus b
[90]
squared all over 2.
[92]
this will always be greater than or
[94]
equal to a plus b over 2 which is called
[96]
the arithmetic mean
[99]
this will always be greater than or
[100]
equal to the square root of a times b
[103]
which is the geometric mean
[105]
and this will always be greater than or
[107]
equal to
[108]
two divided by the quantity one over a
[111]
plus one over b which is the harmonic
[114]
mean
[115]
furthermore equality holds if and only
[118]
if a is equal to b
[121]
so this seems like an extremely
[123]
complicated statement
[125]
but we'll be able to demonstrate why
[127]
this is true geometrically
[129]
so let's get started with the geometric
[131]
construction
[132]
we start out with one length of a and
[135]
another length of b
[137]
now we construct a semicircle with
[139]
diameter a plus b
[142]
next we construct a radius of this
[145]
semi-circle
[147]
notice it has length that's half of the
[149]
diameter
[150]
therefore it will be a plus b over 2
[153]
which is the arithmetic mean
[156]
now let's construct the root mean square
[160]
this segment right here is equal to the
[162]
length of the radius minus the length of
[165]
a
[166]
this will be b minus a all over 2. now
[170]
suppose the vertical radius is
[172]
perpendicular to the diameter
[176]
we now construct the hypotenuse of this
[177]
right triangle
[179]
using the pythagorean theorem we can
[181]
figure out its length
[184]
it will be equal to the root mean square
[187]
which is the square root of the quantity
[188]
a squared plus b squared all over 2.
[192]
from this diagram we can see the root
[194]
mean square will always be greater than
[196]
or equal to the arithmetic mean because
[198]
the hypotenuse is never smaller than one
[201]
of its legs
[204]
now let's construct the geometric mean
[207]
we'll construct a perpendicular where
[209]
the two line segments meet
[213]
now a triangle inscribed in a
[214]
semi-circle is always a right triangle
[217]
so we've constructed an altitude on a
[219]
hypotenuse of a right triangle
[223]
using those properties we can deduce
[225]
that the length of the red segment is
[227]
equal to the square root of a times b
[230]
and this is the geometric mean
[235]
now let's construct the harmonic mean
[237]
but before we do that let's relate the
[239]
geometric mean to the arithmetic mean
[243]
we'll construct a hypotenuse from the
[245]
top of this red line to the center of
[247]
the semicircle
[252]
the hypotenuse is a radius of the circle
[254]
so its length is equal to the arithmetic
[256]
mean which is a plus b over two
[259]
and from this diagram we can deduce that
[261]
the arithmetic mean is always greater
[263]
than or equal to the geometric mean
[268]
so now let's construct the harmonic mean
[271]
we'll draw an altitude to this
[273]
hypotenuse
[275]
using the properties of an altitude on
[277]
hypotenuse
[279]
we'll try and figure out the length of
[280]
this purple segment which we'll call x
[285]
so using these similar triangles we get
[288]
that the geometric mean squared is equal
[290]
to x times the arithmetic mean
[293]
we substitute in those values and then
[295]
solve for x
[298]
another way of writing this is 2 divided
[301]
by 1 over a plus 1 over b which is
[303]
exactly the harmonic mean
[306]
so now from this diagram we can deduce
[309]
the geometric mean is always greater
[310]
than or equal to the harmonic mean
[314]
so now let's put all of these lengths
[316]
together in the same diagram
[320]
we can compare the lengths geometrically
[323]
we have that the root mean square is
[324]
greater than or equal to the arithmetic
[326]
mean we also know the arithmetic mean is
[328]
greater than or equal to the geometric
[329]
mean and then we have that the geometric
[331]
mean is greater than or equal to the
[332]
harmonic mean this is all because the
[334]
hypotenuse of a right triangle is
[336]
greater than or equal to either of its
[337]
legs
[339]
we can combine all of these inequalities
[341]
together
[342]
and we have the root mean square
[344]
arithmetic mean geometric mean and
[346]
harmonic mean inequality
[348]
voila
[351]
but we want to see what happens if a is
[354]
equal to b
[356]
obviously if a is not equal to b then we
[359]
have strict inequalities because the
[361]
hypotenuse of a right triangle is
[363]
strictly larger than the leg of its
[364]
triangle but now what happens if a is
[368]
equal to b
[369]
do we get that all of these lengths are
[371]
equal to each other
[373]
well let's once again visualize this
[375]
geometrically
[378]
here's an animation of b approaching a
[381]
that i made with the desmos calculator
[384]
i provided a link to desmos.com in the
[386]
video description
[388]
let's see what happens as we make the
[390]
length of b approach the length of a
[404]
notice how all the lengths are
[406]
converging to the same value and when b
[409]
is equal to a they all are exactly equal
[412]
so this illustrates that the
[414]
inequalities become equal if a is equal
[417]
to b
[420]
so to put this all together we've
[422]
demonstrated the root mean square
[424]
arithmetic mean geometric mean and
[426]
harmonic mean inequality for two
[428]
variables
[430]
an equality holds if and only if a is
[432]
equal to b
[434]
this is the inequality for two variables
[437]
but it actually generalizes to n
[439]
variables in the following form
[443]
this is not easy to visualize
[445]
geometrically so i provided a link to
[447]
this in the video description
[451]
but these inequalities are very useful
[453]
in problem solving and pay attention
[455]
because they're going to appear in some
[457]
of my upcoming videos
[460]
thanks for watching this video
[462]
i post math videos that can be watched
[464]
for free with topics from people around
[467]
the world because math is universal
[470]
if you'd like to help the cause please
[472]
subscribe to get the newest videos and
[475]
please watch and share all of mind your
[477]
decisions videos if you have a math
[479]
topic or puzzle you can email me at
[481]
presh
[482]
mindyourdecisions.com as i'm getting so
[484]
many emails nowadays i may not be able
[486]
to reply to everyone but i'll do my best
[489]
if you like this video you can also
[490]
check out my books which are linked in
[492]
the video description and if you so
[494]
choose you can support me on patreon to
[497]
help show that math is universal
[500]
thanks for watching and thanks for your
[502]
support