Maximize using range

Calculus Level 3

Let ( a , b ) (a,b) be a pair of real numbers with a b a\leqslant b that maximise the integral a b e cos ( x ) ( 380 x x 2 ) d x \int_a^b e^{\cos (x)}(380-x-x^2) \mathrm{d} x Find the value of a + b . a+b.


The answer is -1.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Chris Lewis
Nov 18, 2020

The function f ( x ) = e cos x ( 380 x x 2 ) = e cos x ( 19 + x ) ( 20 x ) f(x)=e^{\cos x} \left(380-x-x^2\right)=e^{\cos x} (19+x)(20-x) has two real roots, at x = 19 x=-19 and x = 20 x=20 .

Since e cos x e^{\cos x} is always positive for real x x , the sign of f f is the same as the sign of ( 19 + x ) ( 20 x ) (19+x)(20-x) ; that is f ( x ) > 0 f(x)>0 precisely when 19 < x < 20 -19<x<20 . The integral is therefore maximised by taking a = 19 a=-19 , b = 20 b=20 , giving a + b = 1 a+b=\boxed{-1} .

Tom Engelsman
Nov 21, 2020

Let f ( a , b ) = a b e cos ( x ) ( 380 x x 2 ) d x f(a,b) = \int_{a}^{b} e^{\cos(x)} ( 380-x-x^2) dx , and let us compute g r a d f = 0. grad f = 0. This yields:

f a = e cos ( a ) ( 380 a a 2 ) = e cos ( a ) ( 19 a ) ( 20 + a ) = 0 a = 20 , 19 ; \frac{\partial{f}}{\partial{a}} = -e^{\cos(a)} (380-a-a^2) = -e^{\cos(a)} (19-a)(20+a) = 0 \Rightarrow a = -20, 19;

f b = e cos ( b ) ( 380 b b 2 ) = e cos ( a ) ( 19 a ) ( 20 + a ) = 0 b = 20 , 19 ; \frac{\partial{f}}{\partial{b}} = e^{\cos(b)} (380-b-b^2) = e^{\cos(a)} (19-a)(20+a) = 0 \Rightarrow b = -20, 19;

Since we require a b a \le b we have three possible critical points to check: A ( 20 , 20 ) ; B ( 19 , 19 ) ; C ( 20 , 19 ) A(-20,-20); B(19,19); C(-20,19) . Clearly f f equals zero at both A A and B , B, which leaves us C . C. If we compute the Hessian matrix of f f at C C :

F ( a , b ) = ( f a a f a b f b a f b b ) = ( e cos ( a ) ( ( 380 a a 2 ) sin ( a ) + 1 + 2 a ) 0 0 e cos ( b ) ( ( 380 b b 2 ) sin ( b ) 1 2 b ) ) F(a,b) = \begin{pmatrix} f_{aa} & f_{ab} \\ f_{ba} & f_{bb} \end{pmatrix} = \begin{pmatrix} e^{\cos(a)} ((380-a-a^2)\sin(a) + 1 + 2a)& 0 \\ 0 & e^{\cos(b)} (-(380-b-b^2)\sin(b) -1 - 2b) \end{pmatrix} ;

or F ( 20 , 19 ) = ( 39 e cos ( 20 ) 0 0 39 e cos ( 19 ) ) F(-20,19) = \begin{pmatrix} -39e^{\cos(-20)} & 0 \\ 0 & -39e^{\cos(19)} \end{pmatrix}

which is negative-definite since the Hessian contains two real, distinct negative eigenvalues. Hence, point C C maximizes f a + b = 19 20 = 1 . f \Rightarrow a + b = 19 - 20 = \boxed{-1}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...