Minimization Problem: Distance from a Point to a Curve

This post is a further exploration of the optimization problem of finding a point on f(x) = sinh(x) – xe-3x closest to the point (1,7).  The problem is part of our Teaching Concepts with Maple web site, a collection of video examples and Maple worksheets designed to illustrate how Maple can be used to generate greater insight and understanding with its ease-of-use features.

The problem is stated as:

After looking over the solution to this problem, I was moved to write the animation in figure 3.8.1 below.

 

Click on the graph, then move the slider in the animation toolbar that opens at the top of the worksheet. The number written above the red dot (the point (1, 7)) is the distance from that point to the curve. The slider controls the x-coordinate along the x-axis. The code for the animation is hidden behind the cell containing the animation.

Frankly, this animation appeared at the end of a worksheet in which a number of preliminary calculations first were realized. After defining the function and an expression for d(x), the distance from (1, 7) to the graph of f(x), a graph of d(x) was drawn. Surprisingly, it showed two minima. These two minima had to be found and compared. All the while, the thought of the animation in Figure 3.8.1 was lurking in the background. So then, here are the additional calculations related to the posted solution to the problem.

Apply the Minimize command from the Optimization package:

Obtain the leftmost minimum:

 

Clearly, X1 is the global minimum, and the corresponding y-coordinate on the graph of f is

 

Of course, the line from (1,7) to the distance-minimizing point on the graph of f is orthogonal to that graph, but let’s see if the orthogonality can be demonstrated. The slope of the minimizing line is:

The slope of the tangent line at the minimizing point:

Show that m M ≐ (-1) to establish orthogonality.

Likewise, the reader can check that a line from (1,7) to the “other” minimum is also orthogonal to the graph of f.

 

Download this worksheet: Teaching_Concepts-Minimization Problem.mw

About Desktop Scientific

Desktop Scientific offers business, academic, research and government customers, premium products from an established and dependable distribution company with up-to-the-minute product knowledge, value-added resources and after-sales support. We strive to make our products affordable and accessible, and pride ourselves on staying on the cutting-edge of technology in respect of our products, training and consultancy services, whilst keeping abreast of international trends in software technology and applications. We aim to assist our customers at all levels of software usage – from first-time users to power users – from students to professionals – from single users to enterprise-wide applications – covering both corporate and academic multi-user licensing. Each of our products are long-established software products of choice, all having earned international recognition in various major international software publications, and all with established user bases comprising millions of users. No maths, engineering, science, research or technical software requirement is too great or too small and we endeavor to deliver advice, goods and services, to even the most remote locations, in the interest of serving our customers – and in the interests of science and technology.

Posted on September 19, 2012, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a comment