• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:29
CEST 07:29
KST 14:29
  • 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
[ASL19] Finals Recap: Standing Tall6HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL40Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
Statistics for vetoed/disliked maps The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? StarCraft Mass Recall: SC1 campaigns on SC2 thread How does the number of casters affect your enjoyment of esports?
Tourneys
RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
[ASL19] Finals Recap: Standing Tall Flash Announces Hiatus From ASL Help: rep cant save BGH Auto Balance -> http://bghmmr.eu/ Where did Hovz go?
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Trading/Investing Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread The Games Industry And ATVI Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 479 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
Osaka27140 Posts
November 17 2011 06:07 GMT
#7
Im cool with it.
ModeratorGodfather
micronesia
Profile Blog Joined July 2006
United States24665 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
16978 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
Next event in 4h 32m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 236
StarCraft: Brood War
PianO 265
Snow 125
JulyZerg 88
Aegong 67
Nal_rA 54
Rock 30
ajuk12(nOOB) 15
Noble 11
Bale 10
Icarus 7
Dota 2
NeuroSwarm106
League of Legends
JimRising 777
Counter-Strike
Stewie2K800
Super Smash Bros
Mew2King196
amsayoshi43
Heroes of the Storm
Khaldor104
Other Games
summit1g9229
shahzam825
WinterStarcraft363
hungrybox309
RuFF_SC264
Organizations
Other Games
gamesdonequick993
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH296
• practicex 50
• OhrlRock 4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1129
• Lourlo978
• Stunt397
Upcoming Events
The PondCast
4h 32m
RSL Revival
4h 32m
ByuN vs Classic
Clem vs Cham
WardiTV European League
10h 32m
Replay Cast
18h 32m
RSL Revival
1d 4h
herO vs SHIN
Reynor vs Cure
WardiTV European League
1d 10h
FEL
1d 10h
Korean StarCraft League
1d 21h
CranKy Ducklings
2 days
RSL Revival
2 days
[ Show More ]
FEL
2 days
Sparkling Tuna Cup
3 days
RSL Revival
3 days
FEL
3 days
BSL: ProLeague
3 days
Dewalt vs Bonyth
Replay Cast
4 days
Replay Cast
5 days
The PondCast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.