#Optimization

164 messages · Page 1 of 1 (latest)

steep spruce
#

So, i'm doing some differentation practice right now

terse copperBOT
#
  1. Wait patiently for a helper to come along.
  2. Once someone helps you, say thank you and close the thread with:
+close
  1. Feel free to nominate the person for helper of the week in #helper-nominations
  2. Do not ping the mods, unless someone is breaking the rules.
  3. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
steep spruce
#

Oh and I cant send images

plain pelican
#

you can man

steep spruce
#

thats lovely

plain pelican
#

trust me you can do it

#

everyone has image perms in this channel

pliant solstice
#

comeone bro

steep spruce
#

can you not clipboard it?

plain pelican
#

#

come on bro

pliant solstice
#

i believe in you homie

plain pelican
#

everyone can send images in this channel

steep spruce
#

lemme do it like this

pliant solstice
#

@steep spruce you there?
'

steep spruce
#

hold on

#

just downloading the image

pliant solstice
#

alr

steep spruce
#

doesn't let me ctrl v it for some reason

#

either way

#

so with this optimization question

#

i'm not entirely sure how to approach in solving it

pliant solstice
#

10a?

steep spruce
#

yeah

pliant solstice
#

okay well

#

tell me what the height of the box will be

#

it will be x

#

the width will be 28 - 2x

#

and the length will be 55 - 2x

steep spruce
#

just x

pliant solstice
#

multiply those three out and i'm pretty sure you get that cubic

steep spruce
#

oh you sent it

#

yeah I get that 1540x is the result of h x w x l

plain pelican
#

no

pliant solstice
#

huh

plain pelican
#

you know how the volume is l x b x h

pliant solstice
#

yea...

steep spruce
#

oh yeah you're right ignore me

plain pelican
#

now you know l is 55-2x, b is 28-2x and h is x

plain pelican
pliant solstice
late bisonBOT
#

wolfqz

plain pelican
pliant solstice
#

bro

steep spruce
#

yeah so multiplying x(28-2x)(55-2x) = 4x^3 - 166x^2 + 1540x

plain pelican
#

the other parts are straightforward

steep spruce
#

well thats the thing I know how to find the derivative of 4x^3-166x^2+1540x

#

but I don't know how to find the maximum of things

pliant solstice
#

okay i gotchu

#

find the derivative now

steep spruce
#

4x 3 = 12
-166 x 2 = 322
1540x = 1540

12x^2-322x+1540

plain pelican
#

i dont think he'll get the intuition over text

steep spruce
#

oh whoops

pliant solstice
#

bro shutup

steep spruce
#

322

pliant solstice
#

@plain pelican

#

go

#

lemme do this

plain pelican
#

if he doesnt know how to find a maximum it would be really hard to actually understand the why behind the process of finding maxima

pliant solstice
#

we don't need two ppl helping

plain pelican
#

alright i am watching

steep spruce
#

alright

#

so yeah derivative is 12x^2-322x+1540

pliant solstice
#

okay good

#

now let's imagine the graph of the function of the box cubic

#

so y = 4x^3 - 166x^2 + 1540x

#

another thing

#

we know that 0 < x < 28

#

as if x was bigger than 28 it would go past the whole box

#

okay so

#

you have the graph visualized?

steep spruce
#

when I plot the graph its just a straight line on the y axis no?

pliant solstice
#

y = 4x^3 - 166x^2 + 1540x

#

plot that

steep spruce
#

i get a straight line

pliant solstice
#

what

#

its a cubic

steep spruce
#

🤷

pliant solstice
#

send screeshot

steep spruce
#

I put word for word what you sent

#

its an in person calculator

#

so 1 sec

pliant solstice
#

oh i seee

#

yea ofc

#

because the value of 1540x is so much larger than the rest of the values when x is small

#

it should look like a straight line

#

but in fac

#

fact*

#

the slope is actually just a very very high number

#

not quite infinity

steep spruce
#

I guess my y axis isn't big enough

#

lemme increase the window size

pliant solstice
#

no it's fine

#

just use simple intuition

#

if it's a cubic

#

it's obviously not a straight line

#

but for example at x = 0

#

the slope is 1540

#

and so in a calculator without a very big zoom-in it would look like a vertical line

steep spruce
#

jesus christ it doesn't curve until well past y = 2000

pliant solstice
#

yea its a big function

#

okay so

plain pelican
#

it does lol

steep spruce
#

slope should peak around 4

#

k

pliant solstice
#

bro shutup wolf

steep spruce
#

is what im getting

pliant solstice
#

twist

#

imagine the function

#

so basically

#

in order for it to be a maximum

#

actually nvm

#

think of it this way

#

:

#

if at a certain point (a, b) it is a local maxima, what are you given about the points right next to that

steep spruce
#

the points right next to point (a,b)?

pliant solstice
#

yea

steep spruce
#

a - 1 and a + 1?

pliant solstice
#

no the points like right next to a, b

#

have you done infinitecimals yet

steep spruce
#

what

#

no idea what that is

pliant solstice
#

okay well let's think

#

the points right next to a, b

#

let's call one of them a + something really small, c

#

you know that because b is a local minimum

#

c has to be smaller than b, right

steep spruce
#

yeah

pliant solstice
#

and that's true about a - something really small, c

#

c still has to be smaller than b, right

steep spruce
#

yes

pliant solstice
#

so then you know that the graph as x approaches a slowly grows, then as soon as it hits a it starts falling

steep spruce
#

yeah

#

so in this situation a = x yeah?

pliant solstice
#

yes

#

so what does that tell you about the derivative of f(x) at x = a?

steep spruce
#

well if you set the equation = 0 and solve for x you would find the x value yeah?

pliant solstice
#

exactly

#

12x^2-322x+1540

#

so when that equals 0, it's a local minimum

#

can you find its roots?

#

use desmos or wolframalpha or smth

steep spruce
#

x1 = 6.23
x2 = 20.61?

pliant solstice
#

okay so both of those can either be local minimums or local maximums, right?

#

as the same logic to the maximum can apply to the minimum

steep spruce
#

yeah

pliant solstice
#

so now graph the graph

#

and see which one of them makes sense

#

and you're done!

#

the answer has to be one of those

steep spruce
#

you mean graph 4x^3 - 166x^2 + 1540x

#

find where 6.23 and 20.61 is

#

and see which one shows me to be the peak of the function

#

i think i've done my math wrong here

#

cause the highest the y value ever gets is 4129

#

and thats not on x = 6.23

#

its on x = 5.894

#

can someone confirm this with me?

#

@pliant solstice ?