Question

Finding Absolute Maximums and Absolute Minimums. We are guided here by two theorems about extreme values of functions Theorem
dE (x) diff(f(x), x) explot(dt(x), Ia, b) mysolver(df(x),x) If Matlab cannot find the critical points with the general comman
Finding Absolute Maximums and Absolute Minimums. We are guided here by two theorems about extreme values of functions Theorem 1: Iff(x) is continuous on a closed interval [a, b], then f(x) has both an absolute minimum value, m, and an absolute maximum value, M. This means there are some numbers c and d with m = f(c) and M = f(d) and m s f(x) s M for each x in [a, b]. The theorem does not tell us where to find those numbers c and d. The next theorem takes care of that by limiting the possible locations. Theorem 2: The extreme values of a continuous function f(x) on a closed interval a, b] can only occur at the critical points or end points of the interval. As an example, we will find the absolute maximum and absolute minimums of f(x) = sin x + x cos(H) on the interval [0, π] 1. First use the graph of the function and cursor to approximate values fo the absolute maximum and minima. Record them as M and m in text in your LiveScript. x syms f(x) sin(x)+2*cos ( x^2); hold off ezplot(f(x) , (a,bl) hold on Next, we find the derivative to determine the critical points, the exact locations of the absolute maxima and minima. Since the function is differentiable everywhere the only critical numbers will be solutions to the equation f(x)-0 Page 3
dE (x) diff(f(x), x) explot(dt(x), Ia, b) mysolver(df(x),x) If Matlab cannot find the critical points with the general command, we must resort to the vpasolver. From the graph of the function, it is clear that there are four solutions to f(x)-0. The first is in the interval [0.8,1]. This interval is used in the first of the next 4 commands. Find appropriate intervals for the remaining three intervals. cl=vpasolve{df(x),x,[0.8 1]); d-vpasolve ( df (x),X,[ c4-vpasolve(df (x),x,I ]); Finally, calculate the values of the function at those four critical points and the endpoints, 0 and pi. [f(a) f(c1) f(c2) f(C3) f(C4) f(b)] It shouldn't be too hard to identify the least value (-3.01..) and the greatest (3.100...) of the 5 floating point numbers, but it will be hard to compare them to f(b). Try the following command for that. [f(a) f(cl) f(e2) f(c3) f(c4) vpa ( f (b))] Now we can be sure the absolute maximum is f(c3) 3.100075094, and the absolute minimum is f[c4) -3.015500543. Putting it All Together Use the steps in the section "Finding Absolute Maximums and Minimums" to find the critical numbers for the functions below on the given intervals. Then find the absolute minimum and maximum as well Report your answers as done for the example above just before Putting it All Together started. 1. gx)-3x +x, x in [-1.5, 1.5 2. k(x)-yWt_ sin x + 1/2, x in [0, 2π] Page 4
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a)

%%% Matlab code

clc;
close all;
clear all;
format long
syms x;
f=x^4-3*x^2+x;
a=-1.5;
b=1.5;
figure;
ezplot(f,[a,b]);
grid on;
xlabel('x');
ylabel('f(x)');
df=diff(f,x);
figure
ezplot(df,[a,b]);
grid on
xlabel('x');
ylabel('f''(x)');
disp(' 3 critical point available');
c1=vpasolve(df,x,[-1.5 -1]);
c2=vpasolve(df,x,[-1 0.6]);
c3=vpasolve(df,x,[0.6 1.5]);
f1=[subs(f,a) subs(f,c1) subs(f,c2) subs(f,c3) subs(f,b) ];
fmax=max(f1);
fmin=min(f1);
fprintf('Maximum of function fmax= %f \n',fmax);
fprintf('Minimum of function fmin= %f \n',fmin);

OUTPUT:

x -3 x2+ x* -0.5 -1 -2 2.5 -3 -3.5 -1 0.5 0.5 1.5

0 5 5432-01-23-4

3 critical point available
Maximum of function fmax= 0.084135
Minimum of function fmin= -3.513905

(b)

%% Matlab code %%%

clc;
close all;
clear all;
format long
syms x;
f=x^3/4-sin(x)+1/2;
a=0;
b=2*pi;
figure;
ezplot(f,[a,b]);
grid on;
xlabel('x');
ylabel('f(x)');
df=diff(f,x);
figure
ezplot(df,[a,b]);
grid on
xlabel('x');
ylabel('diff(f(x))');
disp(' only 1 critical point available');
c1=vpasolve(df,x,[0 2]);
f1=[subs(f,a) subs(f,c1) subs(f,b) ];
fmax=max(f1);
fmin=min(f1);
fprintf('Maximum of function fmax= %f \n',fmax);
fprintf('Minimum of function fmin= %f \n',fmin);

OUTPUT:

x314 - sin(x)1/2 60 50 40 ご30 20 10 4 6

(3 x2)/4 - cos(x) 30 25 20 15 10 0 4 6

only 1 critical point available
Maximum of function fmax= 62.512553
Minimum of function fmin= -0.101123

Add a comment
Know the answer?
Add Answer to:
Finding Absolute Maximums and Absolute Minimums. We are guided here by two theorems about extreme...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • For the following piecewise-defined function f. find the critical numbers, local extreme values, and absolute...

    For the following piecewise-defined function f. find the critical numbers, local extreme values, and absolute extreme values on the closed interval 6, 90 20r109 if 6<214 f(z) 14< <18 8 87 if 18 < z<90 10+237 if Critical number(s) Preview Local minimum value(s) Preview Local maximum value(s) Preview Absolute minimum value: Preview Absolute maximum valug: Preview Points possible: 1 This is attempt 1 of 2. Submit For the following piecewise-defined function f. find the critical numbers, local extreme values, and...

  • 1. Find any absolute maximums or minimums of f(x)=xV1 - X on (-1,1). Use calculus methods...

    1. Find any absolute maximums or minimums of f(x)=xV1 - X on (-1,1). Use calculus methods illustrated in your book and notes and show all work. Do not use a graph to justify your answer. 2. Evaluate the limits using calculus methods illustrated in your book and notes and show all work. Do not use a graph to justify your answer. a. liman 2-0*+sin(2x) tan(4x)

  • Find the absolute maximum and minimum values of f(x, y) = x² + 4y? – 164...

    Find the absolute maximum and minimum values of f(x, y) = x² + 4y? – 164 – 4 on D: the set of points (x, y) that satisfy x2 + y2 < 25. Part 1: Critical Points The critical points of f are: (0,2) M Part 2: Boundary Work Along the boundary f can be expressed by the one variable function: f = f(y) = (49-y^2)+9y^2-36y-3 Σ List all the points on this side of the boundary which could potentially...

  • Trying to figure out how to find absolute extreme values of a function on an interval....

    Trying to figure out how to find absolute extreme values of a function on an interval. treme values of the function on the intera Find the absolute extreme values of the function 5) f(O) = sin(8 +3,0 ses **

  • a. Find the open interval(s) on which the function is increasing and decreasing b. Identify the function's local and absolute extreme values, if any, saying where they occur Determine the open in...

    a. Find the open interval(s) on which the function is increasing and decreasing b. Identify the function's local and absolute extreme values, if any, saying where they occur Determine the open interval(s) of x for which g(x) increases. Select the correct choice below and, if necessary, fill in the answer box to complete your choice. a. o A. The function is increasing on the open interval(s) Type your answer in interval notation. Use a comma to separate answers as needed.)...

  • (1 point) Consider the function f(x) = x2 - 4x + 2 on the interval [0,4]....

    (1 point) Consider the function f(x) = x2 - 4x + 2 on the interval [0,4]. Verify that this function satisfies the three hypotheses of Rolle's Theorem on the inverval. on f(x) is on [0, 4); f(x) is (0, 4); and f(0) = f(4) = Then by Rolle's theorem, there exists at least one value c such that f'(c) = 0. Find all such values c and enter them as a comma-separated list. Values of се (1 point) Given f(x)...

  • Determine the location and value of the absolute extreme values off on the given interval, if...

    Determine the location and value of the absolute extreme values off on the given interval, if they exist. f(x) = cos 3x on What is/are the absolute maximum/maxima off on the given interval? Select the correct choice below and, if necessary, fill in the answer boxes to complete your choice. OA. The absolute maximum/maxima is/are at x = (Use a comma to separato answers as needed. Type an exact answer, using a as needed.) OB. There is no absolute maximum...

  • Determine the location and value of the absolute extreme values off on the given interval, if...

    Determine the location and value of the absolute extreme values off on the given interval, if they exist f(x)= +14x? - 24x on -4,1) What is/are the absolute maximum/maxima off on the given interval? Select the correct choice below and, if necessary, fill in the answer boxes to complete your choice. A. The absolute maximum/maxima is/are at (Use a comma to separate answers as Weeded. Type exact answers, using radicals as needed) OB. There is no absolute maximum off on...

  • Determine the location and value of the absolute extreme values off on the given interval, if...

    Determine the location and value of the absolute extreme values off on the given interval, if they exist. 3 f(x) = 8x -x on [0,4096] What is/are the absolute maximum/maxima off on the given interval? Select the correct choice below and, if necessary, fill in the answer boxes to complete your choice. What is/are the absolute minimum/minima off on the given interval? Select the correct choice below and, if necessary, fill in the answer boxes to complete your choice. O...

  • Please answer all Application-Extreme value problems. (1 point) Library/UVA-Stew5e/setUVA-Stew5e-C04301-MaxMinValues/4-1-63.pg Find the absolute maximum and absolute minimum...

    Please answer all Application-Extreme value problems. (1 point) Library/UVA-Stew5e/setUVA-Stew5e-C04301-MaxMinValues/4-1-63.pg Find the absolute maximum and absolute minimum values of the function f(x) = 2x – 13 ln(72) on the interval (1, 10. Enter DNE for any absolute extrema that does not exist. Absolute maximum = Absolute minimum = 1 (1 point) Library/Wiley/setAnton_Section_4.4/question 12.pg Find the absolute maximum and minimum values of f(x) = -(x2 – 2) over the interval (-4, 3). absolute maximum is -0.6299 absolute minimum is -7.368 and it...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT