Use MATLAB to numerically differentiate the given function tofind the moment (in N*M). You may use either the diff function orthe gradient function. Find the solution analytically (usingCalculus) and plot the numerical and analytical solutions on thesame plot. Include a title, axis labels, and a legend in yourplot.Consider the following description for problems 3 and 4. The following relationships can be used to analyze uniform beams subject to distributed loads, dx = 0(x) dx = E d x = V(x) dx = -W(x) where x = distance along the beam (m), y = deflection (m), L = beam length (m), (x) = slope (m/m), E = modulus of elasticity (Pa = N/m²), 1 = moment of inertia (m), M(x) = moment (N*m), V(x) = shear (N), and w(x) = distributed load (N/m). For the specific case of a linearly increasing distributed load, the slope can be computed analytically as: (x) = 120€ (-5x* + 6Lºx? – <“) The following parameter values are given for a 3m long beam: E = 150 GPa 1 = 0.0002 m Wo = 4 kN/cm L = 3 m Show transcribed image text Consider the following description for problems 3 and 4. The following relationships can be used to analyze uniform beams subject to distributed loads, dx = 0(x) dx = E d x = V(x) dx = -W(x) where x = distance along the beam (m), y = deflection (m), L = beam length (m), (x) = slope (m/m), E = modulus of elasticity (Pa = N/m²), 1 = moment of inertia (m), M(x) = moment (N*m), V(x) = shear (N), and w(x) = distributed load (N/m). For the specific case of a linearly increasing distributed load, the slope can be computed analytically as: (x) = 120€ (-5x* + 6Lºx? –
Expert Answer
Answer to Use MATLAB to numerically differentiate the given function to find the moment (in N*M). You may use either the diff func…