Loading [MathJax]/jax/output/SVG/jax.js
 

hectictar

avatar
Usernamehectictar
Score9488
Membership
Stats
Questions 10
Answers 3005

 #1
avatar+9488 
+2

g(x)=(x2x+1)ex

 

The function is continuous in the interval [-4, 1] so, to find its maximum value, we only have to examine the endpoints of the interval and the points at which the slope (derivative) is 0.

 

First let's find all the values of  x  that make the derivative equal  0 .

 

g(x)=(x2x+1)(ex)+(ex)(2x1)

 

Set the derivative equal to 0 and solve for  x :

 

(x2x+1)(ex)+(ex)(2x1)=0 ex( (x2x+1)+(2x1) )=0 ex( x2+x )=0 ex(x)(x+1)=0

 

Set each factor equal to zero and solve each equation for  x:

 

ex=0orx=0orx+1=0 no solutionx=0x=1

 

So only the following x values have the possibility to produce the maximum  g  in the interval:  -4, -1, 0 1

 

g(4)=((4)2(4)+1)e4=21e40.385 g(1)=((1)2(1)+1)e1=3e11.104 g(0)=((0)2(0)+1)e0=(1)1=1 g(1)=((1)2(1)+1)e1=(1)e12.718

 

The maximum value of  g  in the interval  [-4, 1]  is  2.718  and it occurs when  x = 1

 

Check: https://www.desmos.com/calculator/eesnhly6qa

Nov 12, 2021