Difference between revisions of "2024 AIME I Problems/Problem 15"

(Solution)
(Added another solution that doesn't require you to see that that two of the side lengths need to be equal)
 
(34 intermediate revisions by 14 users not shown)
Line 1: Line 1:
If your <math>400</math> pound mother gave at least <math>1</math> and at most <math>1254</math> dollars to every chicken in the world, then how much wood would a woodchuck chuck if a woodchuck could chuck wood?
+
==Problem==
 +
Let <math>\mathcal{B}</math> be the set of rectangular boxes with surface area <math>54</math> and volume <math>23</math>. Let <math>r</math> be the radius of the smallest sphere that can contain each of the rectangular boxes that are elements of <math>\mathcal{B}</math>. The value of <math>r^2</math> can be written as <math>\frac{p}{q}</math>, where <math>p</math> and <math>q</math> are relatively prime positive integers. Find <math>p+q</math>.
  
==Solution==
+
==Solution 1==
Using the EXTREMELY well-known <math>Goofy Goober's Law</math>, the formula for the relationship of chickens to woodchucks can be derived using the formula <math>C^2=4W_0 mc</math>, where <math>C</math> is the average amount of money given to each chicken, <math>W_0</math> is how much wood a woodchuck would chuck if a woodchuck could chuck wood, <math>m</math> represents the weight of your mother, and <math>c</math> is the constant correlation coefficient. Since the average amount of money given to each chicken is <math>1255/2</math>, this is the value of <math>C</math>. Therefore, we can plug these values into the equation to get that <math>W_0=999</math>. Thus, the answer is <math>\boxed{999}</math>.
+
Observe that the "worst" possible box is one of the maximum possible length.
 +
By symmetry, the height and the width are the same in this antioptimal box. (If the height and width weren't the same, the extra difference between them could be used to make the length longer.) Thus, let the width and height be of length <math>a</math> and the length be <math>L</math>.
 +
 
 +
We're given that the volume is <math>23</math>; thus, <math>a^2L=23</math>. We're also given that the surface area is <math>54=2\cdot27</math>; thus, <math>a^2+2aL=27</math>.
 +
 
 +
From the first equation, we can get <math>L=\dfrac{23}{a^2}</math>. We do a bunch of algebra:
 +
 
 +
\begin{align*}
 +
L&=\dfrac{23}{a^2} \\
 +
27&=a^2+2aL \\
 +
&=a^2+2a\left(\dfrac{23}{a^2}\right) \\
 +
&=a^2+\dfrac{46}a \\
 +
27a&=a^3+46 \\
 +
a^3-27a+46&=0. \\
 +
\end{align*}
 +
 
 +
We can use the Rational Root Theorem and test a few values. It turns out that <math>a=2</math> works. We use synthetic division to divide by <math>a-2</math>:
 +
 
 +
[[Image:Asdf.png]]
 +
 
 +
As we expect, the remainder is <math>0</math>, and we are left with the polynomial <math>x^2+2x-23</math>. We can now simply use the quadratic formula and find that the remaining roots are <math>\dfrac{-2\pm\sqrt{4-4(-23)}}2=\dfrac{-2\pm\sqrt{96}}2=\dfrac{-2\pm4\sqrt{6}}2=-1\pm2\sqrt6</math>. We want the smallest <math>a</math> to maximize <math>L</math>, and it turns out that <math>a=2</math> is in fact the smallest root. Thus, we let <math>a=2</math>. Substituting this into <math>L=\dfrac{23}{a^2}</math>, we find that <math>L=\dfrac{23}4</math>. However, this is not our answer! This is simply the length of the box; we want the radius of the sphere enclosing it. We know that the diameter of the sphere is the diagonal of the box, and the 3D Pythagorean Theorem can give us the space diagonal. Applying it, we find that the diagonal has length <math>\sqrt{2^2+2^2+\left(\dfrac{23}4\right)^2}=\sqrt{8+\dfrac{529}{16}}=\sqrt{\dfrac{128+529}{16}}=\dfrac{\sqrt{657}}4</math>. This is the diameter; we halve it to find the radius, <math>\dfrac{\sqrt{657}}8</math>. We then square this and end up with <math>\dfrac{657}{64}</math>, giving us an answer of <math>657+64=\boxed{721}</math>.
 +
 
 +
~Technodoggo
 +
 
 +
==Solution 2 (constrained optimization with Lagrangian multiplier)==
 +
 
 +
Denote by <math>x</math>, <math>y</math>, <math>z</math> the length, width, and height of a rectangular box.
 +
We have
 +
\begin{align*}
 +
xy + yz + zx & = \frac{54}{2}  \hspace{1cm} (1) \\
 +
xyz & = 23 \hspace{1cm} (2)
 +
\end{align*}
 +
 
 +
We have
 +
\begin{align*}
 +
4 r^2 & = x^2 + y^2 + z^2 \\
 +
& = \left( x + y + z \right)^2 - 2 \cdot \left( xy + yz + zx \right) \\
 +
& = \left( x + y + z \right)^2 - 54 .
 +
\end{align*}
 +
 
 +
Therefore, we solve the following constrained optimization problem:
 +
\begin{align*}
 +
\max_{x,y,z} \ & x + y + z \\
 +
\mbox{subject to } & (1), (2)
 +
\end{align*}
 +
 
 +
First, we prove that an optimal solution must have at least two out of <math>x</math>, <math>y</math>, <math>z</math> that are the same.
 +
 
 +
Denote by <math>\lambda</math> and <math>\eta</math> lagrangian multipliers of constraints (1) and (2), respectively.
 +
Consider the following Lagrangian:
 +
\begin{align*}
 +
\max_{x,y,z, \lambda, \eta} & x + y + z + \lambda \left( xy + yz + zx - 27 \right)
 +
+ \eta \left( xyz - 23 \right) .
 +
\end{align*}
 +
 
 +
Taking first-order-condition with respect to <math>x</math>, <math>y</math>, <math>z</math>, respectively, we get
 +
\begin{align*}
 +
1 + \lambda \left( y + z \right) + \eta yz & = 0 \hspace{1cm} (3) \\
 +
1 + \lambda \left( z + x \right) + \eta zx & = 0 \hspace{1cm} (4) \\
 +
1 + \lambda \left( x + y \right) + \eta xy & = 0 \hspace{1cm} (5)
 +
\end{align*}
 +
 
 +
Suppose there is an optimal solution with <math>x</math>, <math>y</math>, <math>z</math> that are all distinct.
 +
 
 +
Taking <math>(4)-(3)</math>, we get
 +
<cmath>
 +
\[
 +
\left( x - y \right) \left( \lambda + \eta z \right) = 0 .
 +
\]
 +
</cmath>
 +
 
 +
Because <math>x \neq y</math>, we have
 +
<cmath>
 +
\[
 +
\lambda + \eta z = 0 \hspace{1cm} (6)
 +
\]
 +
</cmath>
 +
 
 +
Analogously, we have
 +
\begin{align*}
 +
\lambda + \eta x & = 0 \hspace{1cm} (7)
 +
\end{align*}
 +
 
 +
Taking <math>(6) - (7)</math>, we get <math>\eta \left( z - x \right) = 0</math>.
 +
Because <math>z \neq x</math>, we have <math>\eta = 0</math>. Plugging this into (6), we get <math>\lambda = 0</math>.
 +
 
 +
However, the solution that <math>\lambda = \eta = 0</math> is a contradiction with (3).
 +
Therefore, in an optimal solution, we cannot have <math>x</math>, <math>y</math>, and <math>z</math> to be all distinct.
 +
 
 +
W.L.O.G, in our remaining analysis, we assume an optimal solution satisfies <math>y = z</math>.
 +
 
 +
Therefore, we need to solve the following two-variable optimization problem:
 +
\begin{align*}
 +
\max_{x,y} \ & x + 2y \\
 +
\mbox{subject to } & 2 xy + y^2 = 27 \\
 +
& xy^2 = 23
 +
\end{align*}
 +
 
 +
Replacing <math>x</math> with <math>y</math> by using the constraint <math>xy^2 = 23</math>, we solve the following single-variable optimization problem:
 +
\begin{align*}
 +
\max_y \ &  \frac{23}{y^2} + 2y \hspace{1cm} (8) \\
 +
\mbox{subject to } & \frac{46}{y} + y^2 = 27 \hspace{1cm} (9)
 +
\end{align*}
 +
 
 +
By solving (9), we get <math>y = 2</math> and <math>-1 + 2 \sqrt{6}</math>.
 +
 
 +
Plugging <math>y = 2</math> into (8), we get <math>\frac{23}{y^2} + 2y = \frac{39}{4}</math>.
 +
 
 +
Plugging <math>y = -1 + 2 \sqrt{6}</math> into (8), we get <math>\frac{23}{y^2} + 2y = \frac{96 \sqrt{6} - 21}{23}</math>.
 +
 
 +
We have <math>\frac{96 \sqrt{6} - 21}{23} < \frac{39}{4}</math>.
 +
Therefore, the maximum value of <math>x + y + z</math> is <math>\frac{39}{4}</math>.
 +
 
 +
Therefore,
 +
\begin{align*}
 +
r^2 & = \frac{1}{4} \left( \left( x + y + z \right)^2 - 54 \right) \\
 +
& = \frac{1}{4} \left( \left( \frac{39}{4} \right)^2 - 54 \right) \\
 +
& = \frac{657}{64} .
 +
\end{align*}
 +
 
 +
Therefore, the answer is
 +
<math>657 + 64 = \boxed{\textbf{(721) }}</math>.
 +
 
 +
~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)
 +
 
 +
==Solution 3 (Vieta's Formula and Rational Root Theroem)==
 +
 
 +
First, let's list the conditions:
 +
Denote by <math>l</math>, <math>w</math>, <math>h</math> the length, width, and height of a rectangular box.
 +
 
 +
<cmath>lwh=23</cmath>
 +
\begin{align*}
 +
2(lw+wh+hl)&=54\\
 +
lw+wh+hl&=27.
 +
\end{align*}
 +
Applying the Pythagorean theorem, we can establish that
 +
 
 +
\begin{align*}
 +
(2r)^2&=(l^2+w^2+h^2)\\
 +
4r^2&=(l^2+w^2+h^2)\\
 +
4r^2&=(l+w+h)^2-2(lw+wh+hl)\\
 +
4r^2&=(l+w+h)^2-54.
 +
\end{align*}
 +
 
 +
We can spot Vieta's formula hidden inside this equation and call this <math>m</math>. Now we have three equations:
 +
 
 +
<cmath>lwh=23</cmath>
 +
<cmath>lw+wh+hl)=27</cmath>
 +
<cmath>l+w+h=m</cmath>
 +
 
 +
Let there be a cubic equation. <math>x^3+bx^2+cx+d=0</math>. Its roots are <math>l</math>, <math>w</math> and <math>h</math>. We can use our formulas from before to derive <math>c</math> and <math>d</math>.
 +
 
 +
<cmath>-b=l+w+h=m</cmath>
 +
 
 +
<cmath>c=lw+wh+lh=27</cmath>
 +
 
 +
<cmath>-d=lwh=23</cmath>
 +
 
 +
We can now rewrite the equation from before:
 +
 
 +
<math>x^3-mx^2+27x-23=0</math>
 +
 
 +
To find the maximum <math>r</math> we need the maximum <math>m</math>. This only occurs when this equation has double roots illustrated with graph below.
 +
[[Image:AIME_2024_I_P15_Pic1.PNG|thumb|center|500px]]
 +
WLOG we can set <math>h=w</math>.
 +
 
 +
Thus:
 +
 
 +
<cmath>lw+w^2+wl=27</cmath>
 +
<cmath>lw^2=23</cmath>
 +
 +
We can substitute <math>l</math> and form a depressed cubic equation with <math>w</math>.
 +
\begin{align*}
 +
lw^2&=23\\
 +
l&=\frac{23}{w^2}\\
 +
2\left(\frac{23}{w^2}\right)w+w^2&=27\\
 +
\frac{46}{w}+w^2&=27\\
 +
w^2+\frac{46}{w}-27&=0\\
 +
w^3 -27w+46&=0.
 +
\end{align*}
 +
Based on Rational Root Theorem the possible rational roots are <math>\pm1, \pm2, \pm23</math>
 +
 
 +
A quick test reveals that <math>2</math> is a root of the equation. Comparing coefficients we can factorize the equation into:
 +
 
 +
<math>(w-2)(w^2+2w-23)=0</math>
 +
 
 +
Besides <math>2</math>, we derive another positive root using the quadratic formula, <math>2\sqrt{6}-1</math>
 +
But to maximize the <math>m</math> we need to pick the smaller <math>w</math>, which is <math>2</math>.
 +
 
 +
Substituting this into <math>l=\frac{23}{w^2}</math>, we find that <math>l=\dfrac{23}4</math>.
 +
 
 +
Applying it to our equation above:
 +
\begin{align*}
 +
4r^2&=(l+w+h)^2-54\\
 +
4r^2&=(l+2w)^2-54\\
 +
4r^2&=\left(\dfrac{23}4+2\cdot2\right)^2-54\\
 +
4r^2&=\left(\dfrac{39}4\right)^2-54\\
 +
4r^2&=\left(\dfrac{1521}{16}\right)-54\\
 +
4r^2&=\left(\dfrac{657}{16}\right)\\
 +
r^2&=\left(\dfrac{657}{64}\right).
 +
\end{align*}
 +
<math>657+64=\boxed{721}</math>.
 +
 
 +
~[https://artofproblemsolving.com/wiki/index.php/User:Cyantist luckuso]
 +
 
 +
==Solution 3a (Derivative)==
 +
 
 +
to find the maximum m for <math>x^3-mx^2+27x-23=0</math>
 +
 
 +
rewrite <math>m</math> as function of <math>x</math> and calculate derivatives to get maximum value, <cmath> m(x) =-x + 27x^{-1} - 23x^{-2} </cmath>
 +
<cmath>m'(x) = -1 - 27x^{-2} -46x^{-3} = 0  </cmath>
 +
<cmath>x^3 -27x+46=0</cmath>
 +
<cmath>(x-2)(x^2+2x-23)=0</cmath>
 +
 
 +
when <math>x = 2</math>, <cmath>m= 2 + \frac{27}{2}  - \frac{23}{4}  = \frac{39}{4} </cmath>
 +
the rest is similar to solution 3
 +
 
 +
~[https://artofproblemsolving.com/wiki/index.php/User:Cyantist luckuso]
 +
 
 +
==Solution 4==
 +
This question looks complex, but once converted into a number theory problem, it becomes elementary. We know, if the dimensions are taken to be numbers in the form of coprime numbers p/q,q/r, and r, it is immediately obvious that p=23.
 +
And solving we get: <cmath> 23(r^2+q)/qr+q=27</cmath> We know length cannot be -ve, in this case, therefore, q=4. And, again, we see:
 +
<cmath>23/r+4+23r/4=27</cmath> giving rise to r=2.
 +
For a cuboid inside a circle, we know:the radius is half its diagonal or, can we not say,
 +
<cmath>r^2=(L^2+b^2+h^2)/4</cmath>
 +
or  here,
 +
<cmath>r^2=(128+529)/64</cmath>
 +
so here, <cmath>p+q=657+64=721</cmath>
 +
 
 +
~Grammaticus
 +
 
 +
==Solution 5==
 +
This problem essentially boils down to maximizing the value of <math>x+y+z</math> (where <math>x</math>, <math>y</math>, and <math>z</math> denote the dimensions of the box) given <math>xy+xz+yz=27</math> and <math>xyz=23</math>. After doing so, we can calculate <math>r^2</math> using <math>r^2=\frac{(x+y+z)^2-54}{4}</math> (as in Solution 2). We can turn <math>x+y+z</math> into an expression in terms of only <math>x</math> and use the method of critical points. Since <math>xyz=23</math>, we have <math>yz=\frac{23}{x}</math> and thus <math>xy+xz+yz=x(y+z)+\frac{23}{x}=27</math>. Isolating <math>y+z</math>, we find <math>y+z=\frac{27-\frac{23}{x}}{x}</math>, so<cmath>x+y+z=x+\frac{27-\frac{23}{x}}{x}=x+\frac{27x-23}{x^2}=x+27\cdot x^{-1}-23\cdot x^{-2}.</cmath>We have turned <math>x+y+z</math> into an equation in <math>x</math>, using all conditions the problem has given us. We proceed with calculus. The maximum value of this function in <math>x</math> is one of the critical points of this function, which can be calculated by equating the function's derivative with <math>0</math>. Using the power rule, the derivative of <math>f(x)=x+27\cdot x^{-1}-23\cdot x^{-2}</math> is <math>f'(x)=1-27\cdot x^{-2}+46\cdot x^{-3}</math>. Equating <math>f'(x)</math> to zero, we get<cmath>1-27\cdot x^{-2}+46\cdot x^{-3}=0 \implies x^3-27x+46=0</cmath>The roots of this can be found using the rational root theorem, yielding <math>x=2</math> or <math>-1\pm 2\sqrt{6}</math>. Don't forget -- <math>x</math> must be positive, so the only possible candidates of <math>x</math> to maximize <math>f(x)</math> are <math>2</math> and <math>2\sqrt{6}-1</math>. Plugging both of them into <math>f(x)=x+27\cdot x^{-1}-23\cdot x^{-2}</math>, we find <math>x=2</math> yields a greater result, <math>\frac{39}{4}</math>. Thus, the maximum value of <math>x+y+z=f(x)</math> is <math>\frac{39}{4}</math>. Therefore, the value of <math>r^2</math> is<cmath>\frac{(\frac{39}{4})^2-54}{4}=\frac{657}{64} \implies p+q=\boxed{721}.</cmath>
 +
 
 +
~[[Mathkiddie]]
 +
 
 +
==Solution 6 (If you don't notice that two of the side lengths have to be equal)==
 +
From the previous solutions we can see that we have to maximize <math>m</math> in the expression <math>x^3 - mx^2 + 27x - 23 = 0</math> such that <math>x^3 - mx^2 + 27x - 23 = 0</math> has <math>3</math> real and positive roots since the roots correspond to the side lengths of the rectangle. To do this we can use synthetic division to divide this expression by <math>(x - r)</math> for some arbitrary root <math>r</math> to try and see how <math>m</math> relates to the roots. After doing synthetic division, we get <cmath>(x^2 + (r - m)x + (27 + r^2 - rm) + \frac{r^3 - r^2m + 27r - 23}{x - r})(x - r) = x^3 - mx^2 + 27x - 23</cmath>Since we defined r to be a root of the expression, it must divide into it with no remainder, meaning that
 +
<math>r^3-r^2m+27r-23=0</math> or <math>m = r + \frac{27}{r} - \frac{23}{r^2}</math>
 +
 
 +
We can now substitute this value into <math>x^2 + (r-m)x + (27 + r^2 - rm)=0</math> to get  
 +
 
 +
<math>x^2 + (\frac{23}{r^2} - \frac{27}{r})x + \frac{23}{r} = 0</math>.
 +
 
 +
Multiplying everything by <math>r^2</math> yields <math>r^2x^2 + (23-27r)x + 23r = 0</math>.
 +
 
 +
We now have to find the maximum value of <math>r</math> for which this expression has 2 roots, since <math>m</math> strictly increases
 +
with <math>r</math> from our previous expression of <math>m = r + \frac{27}{r} - \frac{23}{r^2}</math>
 +
 
 +
To do this, we can find the discriminant of <math>r^2x^2 + (23-27r)x + 23r = 0</math> and find the maximum value of <math>r</math> for which it is positive.
 +
 
 +
The discriminant of this expression is <math>-92r^3 + 729r^2 - 1232r + 529</math>, and after using the rational root theorem we can find <math>\frac{23}{4}</math> as a root.
 +
 
 +
The remaining expression is <math>(x - \frac{23}{4})(-92x^2 + 200x - 92)</math>.
 +
We can quickly see using the quadratic formula that <math>\frac{23}{4}</math> is the largest root, meaning that <math>r=\frac{23}{4}</math> is the largest value that a root of <math>x^3 - mx^2 + 27x - 23 = 0</math> can have for which <math>x^3 - mx^2 + 27x - 23=0</math> has <math>3</math> positive, real solutions. From here, we can substitute this value back into the expression for <math>m</math>, giving us <math>m = \frac{39}{4}</math>. The length of the radius squared is <math>\frac{m^2-54}{4}=\frac{657}{64}</math> and <math>657+64=\boxed{721}</math>  
 +
 
 +
~Lapcas
 +
==Video Solution 1 by OmegaLearn.org (super short)==
 +
https://youtu.be/Io5TLjC3d0U
 +
 
 +
==Video Solution 2 (constrained optimization with Lagrangian multiplier)==
 +
 
 +
https://www.youtube.com/watch?v=KjEy2Ju2z8A
 +
 
 +
~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)
  
 
==See also==
 
==See also==
{{AIME box|year=2024|n=I|before=[[2023 AIME I]], [[2023 AIME II|II]]|after=[[2024 AIME II]], [[2025 AIME I]], [[2025 AIME II|II]]}}
+
{{AIME box|year=2024|n=I|num-b=14|after=Last Problem}}
 +
 
 +
[[Category:Intermediate Algebra Problems]]
 
{{MAA Notice}}
 
{{MAA Notice}}

Latest revision as of 22:18, 31 July 2024

Problem

Let $\mathcal{B}$ be the set of rectangular boxes with surface area $54$ and volume $23$. Let $r$ be the radius of the smallest sphere that can contain each of the rectangular boxes that are elements of $\mathcal{B}$. The value of $r^2$ can be written as $\frac{p}{q}$, where $p$ and $q$ are relatively prime positive integers. Find $p+q$.

Solution 1

Observe that the "worst" possible box is one of the maximum possible length. By symmetry, the height and the width are the same in this antioptimal box. (If the height and width weren't the same, the extra difference between them could be used to make the length longer.) Thus, let the width and height be of length $a$ and the length be $L$.

We're given that the volume is $23$; thus, $a^2L=23$. We're also given that the surface area is $54=2\cdot27$; thus, $a^2+2aL=27$.

From the first equation, we can get $L=\dfrac{23}{a^2}$. We do a bunch of algebra:

\begin{align*} L&=\dfrac{23}{a^2} \\ 27&=a^2+2aL \\ &=a^2+2a\left(\dfrac{23}{a^2}\right) \\ &=a^2+\dfrac{46}a \\ 27a&=a^3+46 \\ a^3-27a+46&=0. \\ \end{align*}

We can use the Rational Root Theorem and test a few values. It turns out that $a=2$ works. We use synthetic division to divide by $a-2$:

Asdf.png

As we expect, the remainder is $0$, and we are left with the polynomial $x^2+2x-23$. We can now simply use the quadratic formula and find that the remaining roots are $\dfrac{-2\pm\sqrt{4-4(-23)}}2=\dfrac{-2\pm\sqrt{96}}2=\dfrac{-2\pm4\sqrt{6}}2=-1\pm2\sqrt6$. We want the smallest $a$ to maximize $L$, and it turns out that $a=2$ is in fact the smallest root. Thus, we let $a=2$. Substituting this into $L=\dfrac{23}{a^2}$, we find that $L=\dfrac{23}4$. However, this is not our answer! This is simply the length of the box; we want the radius of the sphere enclosing it. We know that the diameter of the sphere is the diagonal of the box, and the 3D Pythagorean Theorem can give us the space diagonal. Applying it, we find that the diagonal has length $\sqrt{2^2+2^2+\left(\dfrac{23}4\right)^2}=\sqrt{8+\dfrac{529}{16}}=\sqrt{\dfrac{128+529}{16}}=\dfrac{\sqrt{657}}4$. This is the diameter; we halve it to find the radius, $\dfrac{\sqrt{657}}8$. We then square this and end up with $\dfrac{657}{64}$, giving us an answer of $657+64=\boxed{721}$.

~Technodoggo

Solution 2 (constrained optimization with Lagrangian multiplier)

Denote by $x$, $y$, $z$ the length, width, and height of a rectangular box. We have \begin{align*} xy + yz + zx & = \frac{54}{2} \hspace{1cm} (1) \\ xyz & = 23 \hspace{1cm} (2) \end{align*}

We have \begin{align*} 4 r^2 & = x^2 + y^2 + z^2 \\ & = \left( x + y + z \right)^2 - 2 \cdot \left( xy + yz + zx \right) \\ & = \left( x + y + z \right)^2 - 54 . \end{align*}

Therefore, we solve the following constrained optimization problem: \begin{align*} \max_{x,y,z} \ & x + y + z \\ \mbox{subject to } & (1), (2) \end{align*}

First, we prove that an optimal solution must have at least two out of $x$, $y$, $z$ that are the same.

Denote by $\lambda$ and $\eta$ lagrangian multipliers of constraints (1) and (2), respectively. Consider the following Lagrangian: \begin{align*} \max_{x,y,z, \lambda, \eta} & x + y + z + \lambda \left( xy + yz + zx - 27 \right) + \eta \left( xyz - 23 \right) . \end{align*}

Taking first-order-condition with respect to $x$, $y$, $z$, respectively, we get \begin{align*} 1 + \lambda \left( y + z \right) + \eta yz & = 0 \hspace{1cm} (3) \\ 1 + \lambda \left( z + x \right) + \eta zx & = 0 \hspace{1cm} (4) \\ 1 + \lambda \left( x + y \right) + \eta xy & = 0 \hspace{1cm} (5) \end{align*}

Suppose there is an optimal solution with $x$, $y$, $z$ that are all distinct.

Taking $(4)-(3)$, we get \[ \left( x - y \right) \left( \lambda + \eta z \right) = 0 . \]

Because $x \neq y$, we have \[ \lambda + \eta z = 0 \hspace{1cm} (6) \]

Analogously, we have \begin{align*} \lambda + \eta x & = 0 \hspace{1cm} (7) \end{align*}

Taking $(6) - (7)$, we get $\eta \left( z - x \right) = 0$. Because $z \neq x$, we have $\eta = 0$. Plugging this into (6), we get $\lambda = 0$.

However, the solution that $\lambda = \eta = 0$ is a contradiction with (3). Therefore, in an optimal solution, we cannot have $x$, $y$, and $z$ to be all distinct.

W.L.O.G, in our remaining analysis, we assume an optimal solution satisfies $y = z$.

Therefore, we need to solve the following two-variable optimization problem: \begin{align*} \max_{x,y} \ & x + 2y \\ \mbox{subject to } & 2 xy + y^2 = 27 \\ & xy^2 = 23 \end{align*}

Replacing $x$ with $y$ by using the constraint $xy^2 = 23$, we solve the following single-variable optimization problem: \begin{align*} \max_y \ & \frac{23}{y^2} + 2y \hspace{1cm} (8) \\ \mbox{subject to } & \frac{46}{y} + y^2 = 27 \hspace{1cm} (9) \end{align*}

By solving (9), we get $y = 2$ and $-1 + 2 \sqrt{6}$.

Plugging $y = 2$ into (8), we get $\frac{23}{y^2} + 2y = \frac{39}{4}$.

Plugging $y = -1 + 2 \sqrt{6}$ into (8), we get $\frac{23}{y^2} + 2y = \frac{96 \sqrt{6} - 21}{23}$.

We have $\frac{96 \sqrt{6} - 21}{23} < \frac{39}{4}$. Therefore, the maximum value of $x + y + z$ is $\frac{39}{4}$.

Therefore, \begin{align*} r^2 & = \frac{1}{4} \left( \left( x + y + z \right)^2 - 54 \right) \\ & = \frac{1}{4} \left( \left( \frac{39}{4} \right)^2 - 54 \right) \\ & = \frac{657}{64} . \end{align*}

Therefore, the answer is $657 + 64 = \boxed{\textbf{(721) }}$.

~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)

Solution 3 (Vieta's Formula and Rational Root Theroem)

First, let's list the conditions: Denote by $l$, $w$, $h$ the length, width, and height of a rectangular box.

\[lwh=23\] \begin{align*} 2(lw+wh+hl)&=54\\ lw+wh+hl&=27. \end{align*} Applying the Pythagorean theorem, we can establish that

\begin{align*} (2r)^2&=(l^2+w^2+h^2)\\ 4r^2&=(l^2+w^2+h^2)\\ 4r^2&=(l+w+h)^2-2(lw+wh+hl)\\ 4r^2&=(l+w+h)^2-54. \end{align*}

We can spot Vieta's formula hidden inside this equation and call this $m$. Now we have three equations:

\[lwh=23\] \[lw+wh+hl)=27\] \[l+w+h=m\]

Let there be a cubic equation. $x^3+bx^2+cx+d=0$. Its roots are $l$, $w$ and $h$. We can use our formulas from before to derive $c$ and $d$.

\[-b=l+w+h=m\]

\[c=lw+wh+lh=27\]

\[-d=lwh=23\]

We can now rewrite the equation from before:

$x^3-mx^2+27x-23=0$

To find the maximum $r$ we need the maximum $m$. This only occurs when this equation has double roots illustrated with graph below.

AIME 2024 I P15 Pic1.PNG

WLOG we can set $h=w$.

Thus:

\[lw+w^2+wl=27\] \[lw^2=23\]

We can substitute $l$ and form a depressed cubic equation with $w$. \begin{align*} lw^2&=23\\ l&=\frac{23}{w^2}\\ 2\left(\frac{23}{w^2}\right)w+w^2&=27\\ \frac{46}{w}+w^2&=27\\ w^2+\frac{46}{w}-27&=0\\ w^3 -27w+46&=0. \end{align*} Based on Rational Root Theorem the possible rational roots are $\pm1, \pm2, \pm23$

A quick test reveals that $2$ is a root of the equation. Comparing coefficients we can factorize the equation into:

$(w-2)(w^2+2w-23)=0$

Besides $2$, we derive another positive root using the quadratic formula, $2\sqrt{6}-1$ But to maximize the $m$ we need to pick the smaller $w$, which is $2$.

Substituting this into $l=\frac{23}{w^2}$, we find that $l=\dfrac{23}4$.

Applying it to our equation above: \begin{align*} 4r^2&=(l+w+h)^2-54\\ 4r^2&=(l+2w)^2-54\\ 4r^2&=\left(\dfrac{23}4+2\cdot2\right)^2-54\\ 4r^2&=\left(\dfrac{39}4\right)^2-54\\ 4r^2&=\left(\dfrac{1521}{16}\right)-54\\ 4r^2&=\left(\dfrac{657}{16}\right)\\ r^2&=\left(\dfrac{657}{64}\right). \end{align*} $657+64=\boxed{721}$.

~luckuso

Solution 3a (Derivative)

to find the maximum m for $x^3-mx^2+27x-23=0$

rewrite $m$ as function of $x$ and calculate derivatives to get maximum value, \[m(x) =-x + 27x^{-1} - 23x^{-2}\] \[m'(x) = -1 - 27x^{-2} -46x^{-3} = 0\] \[x^3 -27x+46=0\] \[(x-2)(x^2+2x-23)=0\]

when $x = 2$, \[m= 2 + \frac{27}{2}  - \frac{23}{4}  = \frac{39}{4}\] the rest is similar to solution 3

~luckuso

Solution 4

This question looks complex, but once converted into a number theory problem, it becomes elementary. We know, if the dimensions are taken to be numbers in the form of coprime numbers p/q,q/r, and r, it is immediately obvious that p=23. And solving we get: \[23(r^2+q)/qr+q=27\] We know length cannot be -ve, in this case, therefore, q=4. And, again, we see: \[23/r+4+23r/4=27\] giving rise to r=2. For a cuboid inside a circle, we know:the radius is half its diagonal or, can we not say, \[r^2=(L^2+b^2+h^2)/4\] or here, \[r^2=(128+529)/64\] so here, \[p+q=657+64=721\]

~Grammaticus

Solution 5

This problem essentially boils down to maximizing the value of $x+y+z$ (where $x$, $y$, and $z$ denote the dimensions of the box) given $xy+xz+yz=27$ and $xyz=23$. After doing so, we can calculate $r^2$ using $r^2=\frac{(x+y+z)^2-54}{4}$ (as in Solution 2). We can turn $x+y+z$ into an expression in terms of only $x$ and use the method of critical points. Since $xyz=23$, we have $yz=\frac{23}{x}$ and thus $xy+xz+yz=x(y+z)+\frac{23}{x}=27$. Isolating $y+z$, we find $y+z=\frac{27-\frac{23}{x}}{x}$, so\[x+y+z=x+\frac{27-\frac{23}{x}}{x}=x+\frac{27x-23}{x^2}=x+27\cdot x^{-1}-23\cdot x^{-2}.\]We have turned $x+y+z$ into an equation in $x$, using all conditions the problem has given us. We proceed with calculus. The maximum value of this function in $x$ is one of the critical points of this function, which can be calculated by equating the function's derivative with $0$. Using the power rule, the derivative of $f(x)=x+27\cdot x^{-1}-23\cdot x^{-2}$ is $f'(x)=1-27\cdot x^{-2}+46\cdot x^{-3}$. Equating $f'(x)$ to zero, we get\[1-27\cdot x^{-2}+46\cdot x^{-3}=0 \implies x^3-27x+46=0\]The roots of this can be found using the rational root theorem, yielding $x=2$ or $-1\pm 2\sqrt{6}$. Don't forget -- $x$ must be positive, so the only possible candidates of $x$ to maximize $f(x)$ are $2$ and $2\sqrt{6}-1$. Plugging both of them into $f(x)=x+27\cdot x^{-1}-23\cdot x^{-2}$, we find $x=2$ yields a greater result, $\frac{39}{4}$. Thus, the maximum value of $x+y+z=f(x)$ is $\frac{39}{4}$. Therefore, the value of $r^2$ is\[\frac{(\frac{39}{4})^2-54}{4}=\frac{657}{64} \implies p+q=\boxed{721}.\]

~Mathkiddie

Solution 6 (If you don't notice that two of the side lengths have to be equal)

From the previous solutions we can see that we have to maximize $m$ in the expression $x^3 - mx^2 + 27x - 23 = 0$ such that $x^3 - mx^2 + 27x - 23 = 0$ has $3$ real and positive roots since the roots correspond to the side lengths of the rectangle. To do this we can use synthetic division to divide this expression by $(x - r)$ for some arbitrary root $r$ to try and see how $m$ relates to the roots. After doing synthetic division, we get \[(x^2 + (r - m)x + (27 + r^2 - rm) + \frac{r^3 - r^2m + 27r - 23}{x - r})(x - r) = x^3 - mx^2 + 27x - 23\]Since we defined r to be a root of the expression, it must divide into it with no remainder, meaning that $r^3-r^2m+27r-23=0$ or $m = r + \frac{27}{r} - \frac{23}{r^2}$

We can now substitute this value into $x^2 + (r-m)x + (27 + r^2 - rm)=0$ to get

$x^2 + (\frac{23}{r^2} - \frac{27}{r})x + \frac{23}{r} = 0$.

Multiplying everything by $r^2$ yields $r^2x^2 + (23-27r)x + 23r = 0$.

We now have to find the maximum value of $r$ for which this expression has 2 roots, since $m$ strictly increases with $r$ from our previous expression of $m = r + \frac{27}{r} - \frac{23}{r^2}$

To do this, we can find the discriminant of $r^2x^2 + (23-27r)x + 23r = 0$ and find the maximum value of $r$ for which it is positive.

The discriminant of this expression is $-92r^3 + 729r^2 - 1232r + 529$, and after using the rational root theorem we can find $\frac{23}{4}$ as a root.

The remaining expression is $(x - \frac{23}{4})(-92x^2 + 200x - 92)$. We can quickly see using the quadratic formula that $\frac{23}{4}$ is the largest root, meaning that $r=\frac{23}{4}$ is the largest value that a root of $x^3 - mx^2 + 27x - 23 = 0$ can have for which $x^3 - mx^2 + 27x - 23=0$ has $3$ positive, real solutions. From here, we can substitute this value back into the expression for $m$, giving us $m = \frac{39}{4}$. The length of the radius squared is $\frac{m^2-54}{4}=\frac{657}{64}$ and $657+64=\boxed{721}$

~Lapcas

Video Solution 1 by OmegaLearn.org (super short)

https://youtu.be/Io5TLjC3d0U

Video Solution 2 (constrained optimization with Lagrangian multiplier)

https://www.youtube.com/watch?v=KjEy2Ju2z8A

~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)

See also

2024 AIME I (ProblemsAnswer KeyResources)
Preceded by
Problem 14
Followed by
Last Problem
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions

The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions. AMC logo.png