• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:07
CET 11:07
KST 19:07
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win10
StarCraft 2
General
Mech is the composition that needs teleportation t TL.net Map Contest #21: Winners StarCraft, SC2, HotS, WC3, Returning to Blizzcon! RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
Constellation Cup - Main Event - Stellar Fest Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle [ASL20] Ask the mapmakers — Drop your questions BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Where's CardinalAllin/Jukado the mapmaker?
Tourneys
[ASL20] Grand Finals [BSL21] RO32 Group A - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET
Strategy
PvZ map balance Current Meta How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Should offensive tower rushing be viable in RTS games? Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Learning my new SC2 hotkey…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2180 users

[Math Help] AMGM Inequality for Optimization

Blogs > OnceKing
Post a Reply
1 2 Next All
OnceKing
Profile Blog Joined January 2009
United States939 Posts
November 17 2011 05:41 GMT
#1
For my calculus homework today, I was asked to find the value of a such that the curvature of y = e^(ax) was greatest for x = 0.
So I solved this problem probably the 'normal' way -- plug into the curvature function, set x = 0, use the first derivative to maximize the value of the function and find a's value.

It turned out to be a very ugly function to be taking the derivative of (in my opinion, I suppose), and I was thinking of trying to use the Arithmetic Mean-Geometric Mean Inequality to find the maximum value instead. However, I couldn't do it and clearly I can conclude that I really don't understand it at all. So, the question I pose to you is: how would I use the AMGM Inequality to optimize this? Better yet, if someone can give me a complete explanation for how to use it for optimization in general that would be very awesome and balleriffic.

I understand the basic idea: AM >= GM, so for the maximum value we would set AM = GM and solve. But with this problem I was just completely confused with how to do it.

Shown below is what the curvature function ended up being with x = 0.
K(0) = a^2/(1+a^2)^(3/2)

What I tried to do
+ Show Spoiler +
I'm solving for a in a^2/(1+a^2)^(3/2), then I can use the AMGM inequality.
So, if I let a_1 = a^2 and a_2 = (1+a^2)^(-3/2), then I know (a_1+a_2)/2 >= sqrt(a_1*a_2).
And then solving for a becomes a huge mess.
Is it possible that in this case, AMGM is just an undesirable and inefficient way compared to the derivative method for optimization?


"Every man has his follies - and often they are the most interesting thing he has got."
xxpack09
Profile Blog Joined September 2010
United States2160 Posts
November 17 2011 05:49 GMT
#2
I don't even understand how AM/GM is supposed to apply to this at all, I would just use the standard optimization techniques.

btw expect this thread to be closed soon (homework)
Steel
Profile Blog Joined April 2010
Japan2283 Posts
November 17 2011 06:01 GMT
#3
I agree, just use the derivative and practice your algebra Derivatives are always relatively simple to do (integrals are the ugly unsolvable ones )...just need more practice I think.
Try another route paperboy.
Navillus
Profile Joined February 2011
United States1188 Posts
November 17 2011 06:03 GMT
#4
Just a heads up as I understand it HW help threads aren't allowed here.
"TL gives excellent advice 99% of the time. The problem is no one listens to it." -Plexa
infinitestory
Profile Blog Joined April 2010
United States4053 Posts
Last Edited: 2011-11-17 06:11:16
November 17 2011 06:06 GMT
#5
To bring some closure to this topic, I tried all the AM-GM I know and it doesn't work. For optimization, Jensen's Inequality and Cauchy-Schwarz are usually more well-suited, although I don't think either of those are particularly effective here either.

EDIT: Ok if mani is cool with it, I guess this is fine
Translator:3
OnceKing
Profile Blog Joined January 2009
United States939 Posts
November 17 2011 06:06 GMT
#6
Okay I should quantify this thread then.

This is NOT a homework thread. I am not asking you or anyone to do my homework for me. It involves a homework problem, yes, but I solved it as stated in the OP using the derivative method and got the right answer (sqrt 2, -sqrt 2). This is instead an exploration into solving a problem in an alternative method.
"Every man has his follies - and often they are the most interesting thing he has got."
Manifesto7
Profile Blog Joined November 2002
Osaka27154 Posts
November 17 2011 06:07 GMT
#7
Im cool with it.
ModeratorGodfather
micronesia
Profile Blog Joined July 2006
United States24740 Posts
November 17 2011 06:11 GMT
#8
Yea I left it alone also lol :p

The OP put isn't asking us to do anything... it's more of a math Q&A initially caused by a hw problem than a "do my hw" thread.
ModeratorThere are animal crackers for people and there are people crackers for animals.
igotmyown
Profile Blog Joined April 2009
United States4291 Posts
Last Edited: 2011-11-17 06:45:13
November 17 2011 06:17 GMT
#9
Local maximum and minimum occur when the derivative = 0.
Derivative of a^2/(1+a^2)^(3/2) is
2a/(1+a^2)^(5/2)

Edit: oops
(2a+2a^3-3a^3)/(1+a^2)^(5/2)
2a-a^3=0
a=0 or a=sqrt(1/2), a=-sqrt(1/2)

that's 0 when a = 0. Check whether that's minimum or maximum

I don't remember if that's really the curvature function, so I'm assuming your K(0) is correct.
Plexa
Profile Blog Joined October 2005
Aotearoa39261 Posts
Last Edited: 2011-11-17 06:40:55
November 17 2011 06:19 GMT
#10
(a_1+a_2)/2 >= sqrt(a_1*a_2), max when equal
a_1^2+2a_1*a_2+a_2^2 = 4*a_1*a_2
a_1^2-2a_1*a_2+a_2^2 = 0

Then :
(a_1-a_2)^2=0 => a_1 = a_2 (as expected)

Now: a^2 = (1+a^2)^(-3/2) which apparently doesn't give the right answer!
Administrator~ Spirit will set you free ~
Empyrean
Profile Blog Joined September 2004
17015 Posts
November 17 2011 06:21 GMT
#11
By the way, TL isn't a homework help forum :<
Moderator
Plexa
Profile Blog Joined October 2005
Aotearoa39261 Posts
November 17 2011 06:22 GMT
#12
On November 17 2011 15:11 micronesia wrote:
Yea I left it alone also lol :p

The OP put isn't asking us to do anything... it's more of a math Q&A initially caused by a hw problem than a "do my hw" thread.

It's cool empyrean
Administrator~ Spirit will set you free ~
infinitestory
Profile Blog Joined April 2010
United States4053 Posts
Last Edited: 2011-11-17 06:27:05
November 17 2011 06:24 GMT
#13
ok so I actually found a way to do this, but it's pretty convoluted

Considering the partial fraction decomposition of a^2/(1+a^2)^2 = 1/(1+a^2)-1/(1+a^2)^2 led me to a^2/(1+a^2)^(3/2) = 1/(1+a^2)^(1/2) - 1/(1+a^2)^(3/2). Let x=1/(1+a^2)^(1/2), and so we now want to maximize x-x^3, which is equal to x(1-x^2) or 2*((1/2-(1/2)*x^2)*(x^2)^(1/2). By the weighted form of AM-GM, (((1/2-(1/2)*x^2)*(x^2)^(1/2))^(2/3) <= (2/3)((1/2-(1/2)*x^2)+(1/2)*x^2) = 1/3. This maximum can only be achieved when (1/2-(1/2)*x^2)=(x^2), or x^2=1/3. Substituting gives 1/(1+a^2) = 1/3, or a^2 = 2.

On November 17 2011 15:19 Plexa wrote:
Now: a^2 = (1+a^2)^(-3/2) which you can solve as
0=a^2-(1+a^2)^(2/3) is a difference of two squares

according to Mathematica this gives the wrong answer
Translator:3
Plexa
Profile Blog Joined October 2005
Aotearoa39261 Posts
November 17 2011 06:30 GMT
#14
On November 17 2011 15:24 infinitestory wrote:
ok so I actually found a way to do this, but it's pretty convoluted

Considering the partial fraction decomposition of a^2/(1+a^2)^2 = 1/(1+a^2)-1/(1+a^2)^2 led me to a^2/(1+a^2)^(3/2) = 1/(1+a^2)^(1/2) - 1/(1+a^2)^(3/2). Let x=1/(1+a^2)^(1/2), and so we now want to maximize x-x^3, which is equal to x(1-x^2) or 2*((1/2-(1/2)*x^2)*(x^2)^(1/2). By the weighted form of AM-GM, (((1/2-(1/2)*x^2)*(x^2)^(1/2))^(2/3) <= (2/3)((1/2-(1/2)*x^2)+(1/2)*x^2) = 1/3. This maximum can only be achieved when (1/2-(1/2)*x^2)=(x^2), or x^2=1/3. Substituting gives 1/(1+a^2) = 1/3, or a^2 = 2.

Show nested quote +
On November 17 2011 15:19 Plexa wrote:
Now: a^2 = (1+a^2)^(-3/2) which you can solve as
0=a^2-(1+a^2)^(2/3) is a difference of two squares

according to Mathematica this gives the wrong answer

Something is going funny, lemme check over things
Administrator~ Spirit will set you free ~
igotmyown
Profile Blog Joined April 2009
United States4291 Posts
Last Edited: 2011-11-17 06:40:21
November 17 2011 06:39 GMT
#15
On November 17 2011 15:19 Plexa wrote:
(a_1+a_2)/2 >= sqrt(a_1*a_2), max when equal
a_1^2+2a_1*a_2+a_2^2 = 4*a_1*a_2
a_1^2-2a_1*a_2+a_2^2 = 0

Then :
(a_1-a_2)^2=0 => a_1 = a_2

Now: a^2 = (1+a^2)^(-3/2) which apparently doesn't give the right answer!

So you proved that the geometric mean is maximized relative to the arithmetic mean when it's equal.

Then you assumed the numerator and denominator of a problem are equal, to achieve said maximization.
Plexa
Profile Blog Joined October 2005
Aotearoa39261 Posts
November 17 2011 06:46 GMT
#16
On November 17 2011 15:39 igotmyown wrote:
Show nested quote +
On November 17 2011 15:19 Plexa wrote:
(a_1+a_2)/2 >= sqrt(a_1*a_2), max when equal
a_1^2+2a_1*a_2+a_2^2 = 4*a_1*a_2
a_1^2-2a_1*a_2+a_2^2 = 0

Then :
(a_1-a_2)^2=0 => a_1 = a_2

Now: a^2 = (1+a^2)^(-3/2) which apparently doesn't give the right answer!

So you proved that the geometric mean is maximized relative to the arithmetic mean when it's equal.

Then you assumed the numerator and denominator of a problem are equal, to achieve said maximization.

It doesn't take very long to realise that there is something amiss, but I think the bigger question is understanding why you wouldn't go for this approach as opposed to infinitestory's
Administrator~ Spirit will set you free ~
SonuvBob
Profile Blog Joined October 2006
Aiur21549 Posts
November 17 2011 06:47 GMT
#17
On behalf of the 99%, I'd just like to say: Thanks for making us feel stupid, guys.
Administrator
igotmyown
Profile Blog Joined April 2009
United States4291 Posts
Last Edited: 2011-11-17 06:49:09
November 17 2011 06:48 GMT
#18
On November 17 2011 15:24 infinitestory wrote:
ok so I actually found a way to do this, but it's pretty convoluted

Considering the partial fraction decomposition of a^2/(1+a^2)^2 = 1/(1+a^2)-1/(1+a^2)^2 led me to a^2/(1+a^2)^(3/2) = 1/(1+a^2)^(1/2) - 1/(1+a^2)^(3/2). Let x=1/(1+a^2)^(1/2), and so we now want to maximize x-x^3, which is equal to x(1-x^2) or 2*((1/2-(1/2)*x^2)*(x^2)^(1/2). By the weighted form of AM-GM, (((1/2-(1/2)*x^2)*(x^2)^(1/2))^(2/3) <= (2/3)((1/2-(1/2)*x^2)+(1/2)*x^2) = 1/3. This maximum can only be achieved when (1/2-(1/2)*x^2)=(x^2), or x^2=1/3. Substituting gives 1/(1+a^2) = 1/3, or a^2 = 2.

Show nested quote +
On November 17 2011 15:19 Plexa wrote:
Now: a^2 = (1+a^2)^(-3/2) which you can solve as
0=a^2-(1+a^2)^(2/3) is a difference of two squares

according to Mathematica this gives the wrong answer


A very convoluted way to prove you maximize x-x^3 at -1 and 1, and you also aren't allowed to let x<0 or 1-x^2 <0 for the inequality to hold. But clever.
igotmyown
Profile Blog Joined April 2009
United States4291 Posts
November 17 2011 06:54 GMT
#19
On November 17 2011 15:46 Plexa wrote:
Show nested quote +
On November 17 2011 15:39 igotmyown wrote:
On November 17 2011 15:19 Plexa wrote:
(a_1+a_2)/2 >= sqrt(a_1*a_2), max when equal
a_1^2+2a_1*a_2+a_2^2 = 4*a_1*a_2
a_1^2-2a_1*a_2+a_2^2 = 0

Then :
(a_1-a_2)^2=0 => a_1 = a_2

Now: a^2 = (1+a^2)^(-3/2) which apparently doesn't give the right answer!

So you proved that the geometric mean is maximized relative to the arithmetic mean when it's equal.

Then you assumed the numerator and denominator of a problem are equal, to achieve said maximization.

It doesn't take very long to realise that there is something amiss, but I think the bigger question is understanding why you wouldn't go for this approach as opposed to infinitestory's


But what you did was found a way to maximize a^2+(1+a)^2)^(--3/2) (or some variant of the sum), relative to the product, rather than maximize the product itself.
Plexa
Profile Blog Joined October 2005
Aotearoa39261 Posts
November 17 2011 06:57 GMT
#20
On November 17 2011 15:54 igotmyown wrote:
Show nested quote +
On November 17 2011 15:46 Plexa wrote:
On November 17 2011 15:39 igotmyown wrote:
On November 17 2011 15:19 Plexa wrote:
(a_1+a_2)/2 >= sqrt(a_1*a_2), max when equal
a_1^2+2a_1*a_2+a_2^2 = 4*a_1*a_2
a_1^2-2a_1*a_2+a_2^2 = 0

Then :
(a_1-a_2)^2=0 => a_1 = a_2

Now: a^2 = (1+a^2)^(-3/2) which apparently doesn't give the right answer!

So you proved that the geometric mean is maximized relative to the arithmetic mean when it's equal.

Then you assumed the numerator and denominator of a problem are equal, to achieve said maximization.

It doesn't take very long to realise that there is something amiss, but I think the bigger question is understanding why you wouldn't go for this approach as opposed to infinitestory's


But what you did was found a way to maximize a^2+(1+a)^2)^(--3/2) (or some variant of the sum), relative to the product, rather than maximize the product itself.

Ya, I see it.
Administrator~ Spirit will set you free ~
1 2 Next All
Please log in or register to reply.
Live Events Refresh
OSC
09:00
OSC Elite Rising Star #17
CranKy Ducklings91
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Hui .125
Livibee 91
StarCraft: Brood War
Rain 5381
Sea 1878
Horang2 1726
GuemChi 1414
Jaedong 1026
FanTaSy 851
Zeus 286
Pusan 269
Stork 268
Hyun 170
[ Show more ]
PianO 138
Killer 130
JulyZerg 70
Backho 58
Sharp 54
soO 48
ToSsGirL 36
Light 28
Barracks 28
Aegong 26
ZerO 20
ggaemo 18
Sacsri 17
Noble 14
SilentControl 6
zelot 5
Dota 2
XcaliburYe231
League of Legends
JimRising 448
Reynor93
Counter-Strike
olofmeister782
shoxiejesuss601
Other Games
summit1g19972
ceh9523
Happy253
Sick186
Mew2King134
NeuroSwarm79
ZerO(Twitch)4
Organizations
StarCraft: Brood War
lovetv 9
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• LUISG 28
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1523
• HappyZerGling214
Upcoming Events
Wardi Open
1h 53m
Wardi Open
5h 53m
Replay Cast
12h 53m
WardiTV Korean Royale
1d 1h
Replay Cast
1d 12h
Replay Cast
1d 22h
Kung Fu Cup
2 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
2 days
The PondCast
2 days
RSL Revival
2 days
Solar vs Zoun
MaxPax vs Bunny
[ Show More ]
Kung Fu Cup
3 days
WardiTV Korean Royale
3 days
PiGosaur Monday
3 days
RSL Revival
3 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
4 days
CranKy Ducklings
4 days
RSL Revival
4 days
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
5 days
BSL 21
5 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
5 days
RSL Revival
5 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
BSL 21
6 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
Liquipedia Results

Completed

Proleague 2025-11-07
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.