• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:46
CET 17:46
KST 01:46
  • 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
[TLMC] Fall/Winter 2025 Ladder Map Rotation6Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
Mech is the composition that needs teleportation t [TLMC] Fall/Winter 2025 Ladder Map Rotation Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time? SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
Master Swan Open (Global Bronze-Master 2) Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
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
BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle Terran 1:35 12 Gas Optimization BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET [ASL20] Grand Finals
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread EVE Corporation Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile
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
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI
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
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1572 users

Calc Optimization Help

Blogs > FragKrag
Post a Reply
Normal
FragKrag
Profile Blog Joined September 2007
United States11552 Posts
Last Edited: 2009-01-21 03:34:15
January 21 2009 01:31 GMT
#1
so I'm having trouble with optimization I don't think I understand it well enough. I know the whole two formula plugin and derive, but I don't think I'm getting it.

You have 20 ft of wire, and you need to make an equilateral triangle and a square. How much should be used for each figure so that the area is maximized?

x for square, b for triangle
so far, I have:
4x+3b=20
x^2+1/2(bh)=A
h=root(b^2-[b/2]^2)

x=5-3/4(b)

=> 25-30/4(b)+9/16(b^2)+b/2(root[b^2-(b/2)^2])

it seems like it's way too complicated.. Am I doing it wrong?

might be more questions later ;;


ok, problem 2:

Pink Pig is in the muddy field 4 mi from the nearest point, P, on Farm Road 5. She wants to get to Sally's Slop House on that road, 7 mi to the right of point P in the shortest possible time. Since her maximum possible speeds are 3 mph in mud and 6 mph on the road, she mentally calculates that she must maintain maximum possible speed and intersect the road ___ mi to the right of point P.

*
*TL CJ Entusman #40* "like scissors does anything to paper except MAKE IT MORE NUMEROUS" -paper
mahnini
Profile Blog Joined October 2005
United States6862 Posts
January 21 2009 01:32 GMT
#2
1a2a3a HAHAHAHAHAHHAA
the world's a playground. you know that when you're a kid, but somewhere along the way everyone forgets it.
clazziquai
Profile Blog Joined October 2007
6685 Posts
January 21 2009 01:32 GMT
#3
oh god, i sucked at calculus, and i hated this section the most lol.
#1 Sea.Really Fan / #1 Nesh Fan / Terran Forever~
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
January 21 2009 01:33 GMT
#4
Find the derivative of the formulas and solve for X when f(x) = 0
FragKrag
Profile Blog Joined September 2007
United States11552 Posts
January 21 2009 01:35 GMT
#5
yeah, but taking the derivative of the second part is going to be a mess t_t and the book usually points out an easier way. Just wanted to see if there is a smarter way, or if I just have to brute force this shit.
*TL CJ Entusman #40* "like scissors does anything to paper except MAKE IT MORE NUMEROUS" -paper
Ecael
Profile Joined February 2008
United States6703 Posts
January 21 2009 01:39 GMT
#6
That's the most they can throw at you for Calc 1, annoying derivatives, suck it up and doing it is probably the only way.

Though that kind of derivative looks pretty normal for something from optimization.
FragKrag
Profile Blog Joined September 2007
United States11552 Posts
January 21 2009 01:41 GMT
#7
auuuuuugghhhh i hate algebra zzzzz

thanks for the help though : )
*TL CJ Entusman #40* "like scissors does anything to paper except MAKE IT MORE NUMEROUS" -paper
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
January 21 2009 01:43 GMT
#8
if you're in a hurry you can always use those online derivative calculators... but i'd recommend you use those as a ways to check your work, for I assume your teacher won't allow you to use the internet while taking the test
micronesia
Profile Blog Joined July 2006
United States24740 Posts
January 21 2009 01:49 GMT
#9
I just slapped something together and the calc was trivial compared to the other stuff:

For starters I assumed the length of the string is L, the perimeter of the square is p1, the perimeter of the triangle is p2, and p1+p2=L.

Area1 = (p1 / 4)^2 = p1 / 16
Area2 = .5 * (p2 / 3) * h where I used the law of sines to get h = p2*sqrt(3)/6

So A = A1+A2
Take the derivative of the quadratic (easy if you set i up decently) to get a linear equation, and then set it equal to zero to see if there is a max/min/etc...

And I get that the triangle should be 20/(1+sqrt(3)/2) and thus the square should be 20(1-1/(1+sqrt(3)/2))
ModeratorThere are animal crackers for people and there are people crackers for animals.
Kentor *
Profile Blog Joined December 2007
United States5784 Posts
Last Edited: 2009-01-21 02:07:33
January 21 2009 01:59 GMT
#10
Let's say

s = side of square and b = side of triangle

4s + 3b = 20, or b = (20 - 4s)/3, or s = (20 - 3b)/4

For an equilateral triangle, the height, in terms of its base, is h = root(3)/2 * b
So the area of the triangle is 1/2 * b * h = root(3)/4 * b^2

Total area will be

s^2 + root(3)/4 * b^2 = A

substitute either s in terms of b, or b in terms of s, let's just choose the first one

((20 - 3b)/4)^2 + root(3)/4 * b^2 = A
(9b^2 - 120b + 400)/16 + root(3)/4 * b^2 = A
9/16 * b^2 - 15/2 b + 25 + root(3)/4 * b^2 = A

differentiate and solve for b

(9/8 + root(3)/2)b - 15/2 = 0

the numbers aren't gonna be pretty. just need to do it.

I think the only thing that's making it seem more complicated than it is is the way you expressed the area of an equilateral triangle.
Ethelis
Profile Blog Joined September 2008
United States2396 Posts
Last Edited: 2009-01-21 02:32:53
January 21 2009 02:32 GMT
#11
this

+ Show Spoiler +
[image loading]
Disabled gamer - Diamond 3 (LoL) D+ Rank scrublord on BW. Bisu doesnt need DTs, He uses probes. just ask Flash.
FragKrag
Profile Blog Joined September 2007
United States11552 Posts
January 21 2009 02:32 GMT
#12
ahhh I see. Thanks! I must have missed geometry when the teacher was talking about it :o

and Micronesia.. i didn't understand your post : (
*TL CJ Entusman #40* "like scissors does anything to paper except MAKE IT MORE NUMEROUS" -paper
rredtooth
Profile Blog Joined December 2008
5461 Posts
January 21 2009 02:33 GMT
#13
On January 21 2009 11:32 xMiragex wrote:
this

+ Show Spoiler +
http://img.4chan.org/b/src/1232496239730.jpg

Lol linking a 4chan image is the stupidest thing you can do since they go 404 so quickly.
[formerly sponsored by the artist formerly known as Gene]
Athos
Profile Blog Joined February 2008
United States2484 Posts
January 21 2009 02:35 GMT
#14
I fucking hate this shit; I think I just bombed a test on this :/
Nitrogen
Profile Blog Joined February 2008
United States5345 Posts
January 21 2009 02:36 GMT
#15
On January 21 2009 10:32 mahnini wrote:
1a2a3a HAHAHAHAHAHHAA


ROFL

On January 21 2009 11:33 redtooth wrote:
Show nested quote +
On January 21 2009 11:32 xMiragex wrote:
this

+ Show Spoiler +
http://img.4chan.org/b/src/1232496239730.jpg

Lol linking a 4chan image is the stupidest thing you can do since they go 404 so quickly.


i can think of a lot of things more stupid than that
UNFUCK YOURSELF
micronesia
Profile Blog Joined July 2006
United States24740 Posts
January 21 2009 02:45 GMT
#16
On January 21 2009 11:32 FragKrag wrote:
ahhh I see. Thanks! I must have missed geometry when the teacher was talking about it :o

and Micronesia.. i didn't understand your post : (

That's ok... I wasn't that clear since I did it quickly. I'm not sure if my method of using the perimeter is better or not anyway.
ModeratorThere are animal crackers for people and there are people crackers for animals.
FragKrag
Profile Blog Joined September 2007
United States11552 Posts
January 21 2009 03:33 GMT
#17
ok, problem 2:

Pink Pig is in the muddy field 4 mi from the nearest point, P, on Farm Road 5. She wants to get to Sally's Slop House on that road, 7 mi to the right of point P in the shortest possible time. Since her maximum possible speeds are 3 mph in mud and 6 mph on the road, she mentally calculates that she must maintain maximum possible speed and intersect the road ___ mi to the right of point P.

It's a mental problem so no scratch paper or calc. T_T
I think it incorporates related rates :x

updated OP
*TL CJ Entusman #40* "like scissors does anything to paper except MAKE IT MORE NUMEROUS" -paper
Hippopotamus
Profile Blog Joined October 2004
1914 Posts
January 21 2009 04:01 GMT
#18
Well, taking an intuitive approach to this problem is better than solving an ugly equation. Consider a unit equilateral triangle. That is, each side = 1. The area by well known formulas is going to be the square root of 3 divided by 4 or about .433. The square of perimeter 3 is going to have each side equal to 3/4. So the area is 9/16. 9/16 > .433. Now we know that every square and equilateral triangle is similar to these so the square is always going to be a more efficient use of wire by that ratio if you're looking for area. So you should use it all on the square.
ninjafetus
Profile Joined December 2008
United States231 Posts
Last Edited: 2009-01-21 04:27:08
January 21 2009 04:24 GMT
#19
Question 2: sqrt(3) miles. (see edit)

MS paint awesomeness:
[image loading]


EDIT: oh, fuck, I put the pig 3 miles from the road instead of 4... the same idea works, but change sqrt(9 + x^2) to sqrt (16 + x^2) and rework it. x should end up being, uhh... sqrt(16/3).
Chromyne
Profile Joined January 2008
Canada561 Posts
January 21 2009 04:35 GMT
#20
A 4 miles, what's this mile you speak of?

Anyway, good luck with Optimization, my worst section of Calc in high school.
Soli Deo gloria.
FragKrag
Profile Blog Joined September 2007
United States11552 Posts
January 21 2009 05:05 GMT
#21
On January 21 2009 13:24 ninjafetus wrote:
Question 2: sqrt(3) miles. (see edit)

MS paint awesomeness:
[image loading]


EDIT: oh, fuck, I put the pig 3 miles from the road instead of 4... the same idea works, but change sqrt(9 + x^2) to sqrt (16 + x^2) and rework it. x should end up being, uhh... sqrt(16/3).


Ah, ok. It makes sense to me now. Thanks~
*TL CJ Entusman #40* "like scissors does anything to paper except MAKE IT MORE NUMEROUS" -paper
Savio
Profile Joined April 2008
United States1850 Posts
Last Edited: 2009-01-21 05:42:32
January 21 2009 05:31 GMT
#22
hmmm... for the 2nd question I got an answer I wasn't expecting but the math kinda got big so either I messed up or it is a "messy" problem.

I got the answer to be 2.3094 miles to the right of point P.

This is what I did.

1. Name distance from P toward destination S (for Sallys) wheverever you intersect the road as L. This is what we are trying to solve for.

2. Express the distance traveled on the road or through the field in terms of L so you only have 1 variable. Lets have distance in mud be y and distance on road be z.

3. z = 7-L and x=(L^2 + 16)^.5 (remember that .5 is just the square root)

4. Write equation for time so you can optimize it. That is just z/3 + x/6 since time = distance/velocity.

5. Take derivative and set to 0. Don't forget chain rule on x. It gets messy here.

6. Solve for L. I got L to be 2.3094. or the square root of 16/3

The inherent vice of capitalism is the unequal sharing of the blessings. The inherent blessing of socialism is the equal sharing of misery. – Winston Churchill
Savio
Profile Joined April 2008
United States1850 Posts
Last Edited: 2009-01-21 05:45:33
January 21 2009 05:40 GMT
#23
I think there is an error in the paint version above my post. It looks like they set distance to P as 3. Thats how they got 9 while in my equation I got 16.

EDIT: Ahh crap. I thought I was awesome but I just noticed the edit. So I wasn't first. But at least you have 2 independent answers both coming to sqrt or 16/3 so you can be confident.
The inherent vice of capitalism is the unequal sharing of the blessings. The inherent blessing of socialism is the equal sharing of misery. – Winston Churchill
FragKrag
Profile Blog Joined September 2007
United States11552 Posts
January 21 2009 06:10 GMT
#24
i think i am understanding it more now : )

<3 TL <3
*TL CJ Entusman #40* "like scissors does anything to paper except MAKE IT MORE NUMEROUS" -paper
Savio
Profile Joined April 2008
United States1850 Posts
January 21 2009 06:50 GMT
#25
PM me if you ever want calc/optimization help but don't wanna make a new thread. I enjoy helping with this kind of stuff--I used to tutor for free.
The inherent vice of capitalism is the unequal sharing of the blessings. The inherent blessing of socialism is the equal sharing of misery. – Winston Churchill
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 6h 14m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 223
StarCraft: Brood War
Calm 2855
Rain 2071
Hyuk 1671
Horang2 778
Shuttle 333
Backho 75
Barracks 42
Rock 41
hero 32
Aegong 22
[ Show more ]
zelot 21
Killer 17
Dota 2
Gorgc4296
qojqva2111
Dendi625
BananaSlamJamma141
XcaliburYe91
Super Smash Bros
Mew2King97
Other Games
hiko537
DeMusliM500
ceh9383
Fuzer 223
Hui .183
Sick156
QueenE53
Trikslyr35
BRAT_OK 17
MindelVK5
fpsfer 2
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• 3DClanTV 54
• poizon28 29
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• HerbMon 39
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2866
League of Legends
• Nemesis3737
• TFBlade1149
Other Games
• WagamamaTV396
• Shiphtur140
Upcoming Events
Tenacious Turtle Tussle
6h 14m
The PondCast
17h 14m
RSL Revival
17h 14m
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
19h 14m
ByuN vs ShoWTimE
Classic vs Cure
Reynor vs TBD
WardiTV Korean Royale
19h 14m
PiGosaur Monday
1d 8h
RSL Revival
1d 17h
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
1d 19h
herO vs TBD
CranKy Ducklings
2 days
RSL Revival
2 days
herO vs Gerald
ByuN vs SHIN
[ Show More ]
Kung Fu Cup
2 days
IPSL
3 days
ZZZero vs rasowy
Napoleon vs KameZerg
BSL 21
3 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
3 days
RSL Revival
3 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
3 days
WardiTV Korean Royale
3 days
BSL 21
4 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
4 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
4 days
Wardi Open
4 days
Monday Night Weeklies
5 days
WardiTV Korean Royale
5 days
The PondCast
6 days
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
BLAST Rivals Fall 2025
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
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.