Please find attached the screenshots of the Matlab graphs and
script at the end. Run the script to verify the Matlab generated
answers.
part (3)
part (5)
Matlab Script
clear; close all; clc;
%% part 3
x = linspace( 0, 9, 400 );
V = (48-2*x).*(18-2*x).*x
%V = 4*x.^3 - 132*x.^2 + 864*x ;
figure
plot( x, V )
xlabel( '\bf x' )
ylabel( '\bf V(x)' )
grid on
%% part 4
syms symX
Volume = expand( (48-2*symX) * (18-2*symX) * symX )
VolumePrime = simplify( diff( Volume ) )
p = [ 4 -132 864 -1400 ];
r = roots(p)
%% part 5
Vprime = 12*x.^2 - 264*x + 864 ;
figure
plot( x, V, x, Vprime )
xlabel( 'x' )
legend( 'V(x)', 'dV/dx' )
grid on
The length is 48-2x , width is 18-2x, and height is herepore, the volume V oF the box as o functon of x is given as, v(x) = (48-2x)(18-2x) χ 4χ3-1322+86 4 χ The domain OF Possible values of χ IS 2. (o, 9] The screenshot of the graph is ottached below (at the end) The values of x estimated graphicaly so that volume of boz is 1400 cubic inches are 2.504 inch and 5.594 Inch respectively. 4.Vx) -1400 Rewrite the equation as V(x)-1 400 0 From, part (1) V(X)s 4χ3-132x +864 χ Substitute in the equation 0 4x. 132 χ + 864-1400 Therefore, P- L4, -132, 864, -1400 = Toots (p) hus, roots ore given as 24.8854, s.6056, 2.5090 since our graph domain is limited from [o, 9J,the vefoxe, root 24,8854 was undetermined thugh gro hicol nvestoh
5. The plots of V(x) vs χ and V,1%) vs x are attached at the end. Through graph the estimated value of x that haximises V is 3.992 v'(x): 12z?-264 χ +864 o determine the critical paint, Find root of the equahion (X2-222+72):0 12 (x2 -18x- 42 +72) 0 12 [2(x-18)-4 (x-18)] כ 12 0 12 (x-4)(x-18) x 4, 18 neglect χ:18 Since, xe (0,9) Hence our Formula shows last answer is a critical paint For V'(x), ie., answer is yes Vx), ie, answer is yes. 7. From part (6) at x4 VCz) is maximum,so, substitule X s4 in the expessian for Vx) V(r 4) 4X43- 132 X41+864x4 1600 hus, the exact value oximum of Viz) is 1600 cubic inches
1600 1400 X: 2.504 Y: 1399 1200 1000 800 600 400 200 3 4 5 6 7 9
1600 1400 X: 5.594 Y: 1403 1200 1000 800 600 400 200 3 4 5 6 7 9
2000 dV/dx 1500 X: 3.992 Y: 1600 1000 500 -500 -1000 3 4 5 6 7 9