Application Center - Maplesoft
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

App Preview:

Max and min problems III

You can switch back to the summary page by clicking here.

Learn about Maple
Download Application


 

L10-maxmin3.mws

Calculus I

Lesson 10: Max and Min Problems 3

Example 1: Paper Folding

Problem: A sheet of paper 4 inches wide by 8 inches high is folded so that the bottom right corner of the sheet touches the left hand edge of the sheet. The tip of the corner is no more than 4 inches above the bottom edge of the paper. Then the paper is creased (see figure). Find the length L of the crease, and find how to fold the paper so that L is minimum.

Solution:

Let h, x, and y be as shown in the diagram below.

> restart;

> A1:=plots[textplot]({[2.6,1.9,'L'],[3.7,2,'h'],[.1,1.1,`y`],[.5,.3,`x`]},align=RIGHT):

> A3:=plot({[[0,0],[0,8],[4,8],[4,4.45],[1.219,0],[0,0]],[[4,4.45],[0, 2.5],[1.219,0]]},color=blue):

> A4:=plot([[4,4.45],[4,0],[1.219,0]],color=red):

> A5:=plots[polygonplot]([[4,4.45],[0,4.45],[0,2.5]],style=patch,color=tan):

> plots[display]([A1,A3,A4,A5],axes=boxed,scaling=constrained);

[Maple Plot]

We can see several equations relating x, y, h, and L in the diagram. For example, the small right triangle with legs x and y has a hypotenuse which is 4-x units long. This gives eq1.

> eq1 := y^2+x^2=(4-x)^2;

eq1 := y^2+x^2 = (4-x)^2

eq2 comes from the right triangle with hypotenuse L and legs h and 4-x.

> eq2 := L^2 = (4-x)^2 + h^2;

eq2 := L^2 = (4-x)^2+h^2

Now it is easy to work out that the tan right triangle with hypotenuse h and legs 4 and h-y is similar to the right triangle with hypotenuse 4-x and corresponding legs y and x. So we get eq3.

> eq3 := 4/(h-y)=y/x;

eq3 := 4/(h-y) = y/x

> h := solve(eq3,h);

h := (4*x+y^2)/y

> x := solve(eq1,x);

x := -1/8*y^2+2

> L := unapply(sqrt(op(2,simplify(eq2))),y);

L := proc (y) options operator, arrow; 1/8*((16+y^2...

So we have L expressed as a function of one variable y. Examining the behavior of L as y varies,

> plot(L,2..4);

[Maple Plot]

we see that there is a minimum length crease of about L = 5.2 inches at about y = 2.8 inches. We can get a more precise value with fsolve, by locating the x between 2.6 and 3 where the derivative of the crease function is 0.

> y1 := fsolve(diff(L(y),y),y,2.6..3);

y1 := 2.828427125

Now check the value of x and L for this value of y.

> minL := L(y1);

minL := 5.196152423

> minx := subs(y=y1,x);

minx := 1.000000000

Notice the nice integer value of minx . This gives rise to a simple construction of the crease of minimum length: by folding twice along the bottom edge, we can mark the point 1 inch from the left edge of the paper. Then bring the corner point up to the left edge and crease.

Exercise: Use Maple to draw the diagram showing the minimum length crease.

Exercise: Suppose we wanted to minimize L + y, rather than just L. Would the minimum occur at the same place? Work it out.

Example 2


A woman's blood pressure p ranges from a high (the systolic pressure) to a low

(the diastolic pressure) so that at time t in seconds, p is given (approximately) by

p = P(t) = 100 + 20 sin(5t).

The time between two successive high pressures is the time needed for one heartbeat.

First, plot P(t).

a) Find an expression for the rate at which the woman's blood pressure is changing

at time t.

b) At what time is the woman's blood pressure a max? a min?

c) What is the woman's max blood pressure? min blood pressure?

d) How many times per minute does the woman's heart beat?

> restart: with(plottools): with(plots):

Warning, the name changecoords has been redefined

> f:= 100 + 20*sin(5*x);

f := 100+20*sin(5*x)

> plot(f(x), x = 0..10);

[Maple Plot]

> f:= x -> 100 + 20*sin(5*x);

f := proc (x) options operator, arrow; 100+20*sin(5...

> D(f);

proc (x) options operator, arrow; 100*cos(5*x) end ...

a) The womans blood pressure changes at a rate of

df/dx = 100*cos(5*x) .

> fsolve(100 * cos( 5*x) = 0, x, 0..1);

.3141592654

> fsolve(100* cos(5*x) = 0, x, .5..1);

.9424777961

> fsolve(100* cos(5*x) = 0, x, 1..2);

1.570796327

b) Since f takes on max min when df/dx = 0 , we see that

f has a max when x is about .3141592654 and 1.570796327.

Also, f has a min when x is about .942477796.

We otained these estimates by setting df/dx = 0 .

> f(.3141592654);

120.

> f(.9424777961);

80.

> f(1.570796327);

120.

c) We see the max blood pressure is 120 and the minimum is 80.

> 1.570796327 - .3141592654;

1.256637062

> 60 / 1.256637062;

47.74648291

d) Each heartbeat takes approx 1.256637062 seconds.

She has approximately 48 heartbeats per minute.

Example 3


A triangle is formed in the first quadrant by a tangent line to the graph of the curve

y = e^(-x)

and the coordinate axes. What is the area of the largest such triangle? First let's see a diagram of the situation.

> f := x->exp(-x);
a1 := 1.5: a2 := 2.5:
eqTanLine := (x,a) -> f(a) + (x-a) * D(f)(a):
b1 := solve( eqTanLine(x,a1)=0, x):
b2 := solve( eqTanLine(x,a2)=0, x):
graph := plot( f(x), x = 0..5, thickness=2):
tanLine1 := plot( eqTanLine(x,a1), x = 0..b1, color=blue, thickness=2):
tanLine2 := plot( eqTanLine(x,a2), x = 0..b2, color=green, thickness=2):
line1 := line( [0, 0],[b1, 0], color=blue, thickness=2):
line2 := line( [0, 0],[0, eqTanLine(0,a1)], color=blue, thickness=2):
line3 := line( [0, 0],[b2,0], color=green, thickness=2):
line4 := line( [0, 0],[0, eqTanLine(0,a2)], color=green, thickness=2):
display( graph, tanLine1, tanLine2, line1, line2,line3, line4);

f := proc (x) options operator, arrow; exp(-x) end ...

[Maple Plot]

From the above plot we see that the triangle changes with our choice of tangent lines.

We need to find a tangent line that gives a triangle of maximal area.

Find the x-intercept of a tangent line.

> solve( exp(-a)-exp(-a)*(x-a)=0,x);

1+a

So, the x-intercept of the tangent line when x = a is: 1 + a.

Find the y-intercept of a tangent line.

> tl(0,a);

tl(0,a)

So, the y-intercept of the tangent line when x = a is: exp(-a)+exp(-a)*a

Thus using the tangent line for x = a we have that the triangle has

height = e^(-a)+a*e^(-a) and

base = 1 + a. We can now calculate the area of the triangle.

> A:= 0.5 * (exp(-a)+exp(-a)*a) * ( 1 + a);

A := .5*(exp(-a)+exp(-a)*a)*(1+a)

> plot(A(a), a = 0..5);

[Maple Plot]

From the plot of the area function (area of the triangle), we see that there is indeed

a maximum. We need to precisely locate for what a values does this maximum occur.

At this maximum dA/da = 0 . So, we solve dA/da = 0 .

> AA:= a -> 0.5 * (exp(-a)+exp(-a)*a) * ( 1 + a);

AA := proc (a) options operator, arrow; .5*(exp(-a)...

> diff(AA(a),a);

-.5*exp(-a)*a*(1+a)+.5*exp(-a)+.5*exp(-a)*a

> solve(% = 0, a);

1., -1.

> plot(A(a), a = -2..3);

[Maple Plot]

From the plot, we see that indeed dA/da = 0 for a = -1,1.

We are only interested in positive values of a.

Thus the answer is that the area of the triangle is largest when

the tangent line is for x = 1.

Example 4

A cone is to be formed by revolving a right triangle with a hypotenuse of length 3

feet about one of its legs. What is the volume of the largest cone that can be formed

in this manner? See the diagram below.

> c := cone([0,0,4], sqrt(8), -4, color=green):
t := pointplot3d([[0,0,0], [sqrt(8),0,0], [0,0,4],[0,0,0]], connect=true, color=black, thickness=2):
ground := plot3d(0,x=-3..3,y=-3..3,color=grey,grid=[5,10], style=patchnogrid):
display([c,t,ground],scaling=constrained,style=wireframe, orientation=[40,60]);

[Maple Plot]

Let a denote the length of the base of the right triange, and b denote the

height of the right triangle. We are given the hypotenuse is 3 feet.

The volume of the resulting cone is: Pi*a^2*b/3 . We want to maximize the volume.

Since we have a right triangle we know that a^2+b^2 = 9 .

> restart:

> evalf(Pi);

3.141592654

> V:= (1/3) * (3.141592654) * (9 - b^2) * b;

V := 1.047197551*(9-b^2)*b

> plot(V(b), b = 0..3);

[Maple Plot]

From the estiamted plot, we see that the volume has one maximum and that

at this maximum dV/db = 0 . Hence, we solve: dV/db = 0 .

> VV:= b -> (1/3) * Pi * (9 - b^2) * b;

VV := proc (b) options operator, arrow; 1/3*Pi*(9-b...

> diff(VV(b),b);

-2/3*Pi*b^2+1/3*Pi*(9-b^2)

> solve(%=0,b);

sqrt(3), -sqrt(3)

> evalf(sqrt(3));

1.732050808

The cone will have maximum volume when b = sqrt(3) and

a^2 = 9-b^2 = 9 - 3 = 6, i.e,

b = sqrt(3) and a = sqrt(6) .