Example on max/min functions

The strength of a wooden beam is given by [math]S=k\cdot width\cdot depth^2[/math], where [math]k>0[/math] depends on the type of wood(that is for a given type of wood k is a constant). What is the strongest beam that can be cut from a log with diameter 12cm?[br][br]The function provided by the exercise has two variables (width w and depth d), but to apply our Calculus methods, we need to transform it into a function of a single [br]variable. Knowing the beam will have a rectangular base, we can use [br]Pythagoras' theorem to find [math]w[/math] as a function of [math]d[/math].[br][br][math]12^2=d^2+w^2\rightarrow144=d^2+w^2\rightarrow d^2=w^2-144[/math]. [br]Substituting the value in S we get [math]S(w)=k\cdot w\cdot\left(144-w^2\right)=k\cdot\left(144w-w^3\right)[/math] , and its derivative [math]S'\left(w\right)=k\cdot\left(144-3w^2\right)[/math]
Now that we have expressed the strength as a function of one variable w, the next step is to find the maximum values of the function on the interval [math][0,12][/math]. [br][br]The graph below shows [math]S(w)[/math] in green and its derivative [math]S'(w)[/math] in orange, use them to find the maximum of the function S on [math][0,12][/math] (use an approximation if necessary). At what value w does this maximum occur?
Adjust the sliders in the diagram below to compare the value of the strength of the beam found by finding the values of w that minimise or maximise the function S with strengths at other values of [math]w[/math] and [math]d[/math].[br][br]Is it possible to find other values for [math]w[/math] and [math]d[/math], on that interval, that create a stronger beam?

Information: Example on max/min functions