Skip to main content
Mathematics LibreTexts

Optimization

  • Page ID
    219413
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Optimization

    Steps for Solving Optimization Problems

    1. Draw the picture and label variables.

    2. Determine a constraint equation  (if necessary) and a maximizing (minimizing) equation.

    3. Use the constraint equation to solve for one of the variables and substitute it into the maximizing (minimizing) equation.

    4. Take a derivative and set it equal to zero.  Then solve.

    5. Answer the question.


    Examples

    1. You want to construct a can that holds 150 cubic inches of juice as cheaply as possible. The top and bottom costs .1 cents per square inch and the side costs .09 cents per square inch. What should the dimensions of the can be?

          Cylinder with height h, 0.1 cent for the top and bottom and 0.09 cents for the side and radius x

      Solution

      We use the volume formula to get

              150 = pr2h 

      and next calculate the cost

              Cost = 2pr2(0.1) + 2prh(0.09)        Cost of top and bottom + Cost of sides

      The volume equation gives us:

                        150
              h  =               
                        p r2


      so that

                                               150    
              C = 0.2pr2 + 0.18p              
                                               p r2

                                  27
              =  0.2pr2 +          
                                    r

      To find the minimum cost we take the derivative and set it equal to 0:

                                   27
              C'  =  4pr -              =  0
                                    r2 


      So that

              4pr3  =  27

      or

                         27
              r3  =           
                        
      4p


              r = 2.14 in

      so that 

                          150
              h  =                        =  10.4 in
                         p(2.142


      The can should be constructed so that its radius is 2.14 inches and its height is 10.4 inches.

       

    2. A lifeguard swims at a rate of 5 feet per second and can run at a rate of 15 feet per second. Suppose that the lifeguard spots a drowning child in the ocean 200 feet down the shore and 50 feet out at sea. How far should the lifeguard run until she begins swimming?
              Picture of a lifeguard, the horizontal line x to a dot then 200-x to the end.  50 above the end is a person needing help.  The line form the person to the line is shown, making a right triangle.


      Solution

      Our goal is to minimize the total transit time.  The total transit time is 

              Total Transit Time (T) = Time Along the Beach + Time in the Water

      Using

                               Distance
              Time  =                         
                                  Rate


      We have 

                                      x
              TimeBeach =             
                                     15


      and

              \( \text{Time}_{\text{Water}} = \frac{\sqrt{50^2 + (200 - x)^2}}{5}      \)

      Hence
              \( T = \frac{x}{15} + \frac{\sqrt{50^2 + (200 - x)^2}}{5}      \)


      Notice that the derivative of the inside of the square root sign is

              -2(200 - x)

      We can take the derivative of the transit time with respect to x by using the chain rule. Since we want a minimum, we set this derivative equal to zero.

              \( T' = \frac{1}{15} - \frac{200 - x}{5\sqrt{50^2 + (200 - x)^2}}   = 0   \)


      After a lot of algebra or using a computer we get

              x  \( \approx \) 182.3 feet

      We can conclude that the lifeguard should run a little more than 182 feet before diving into the water.


    Exercises

    1. A poster is to have an area of 120 square inches with one inch margins at the bottom and sides and a 2 inch margin at the top.  What dimensions will give the largest printed area?

    2. A quarter mile race track is to be designed by having a rectangle with semicircles on each end.  Find the dimensions that will make the area of the rectangle as large as possible.


    Back to Applications Page

     

    Optimization is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?