Solving second order ODE
Objective: clear allclose allclc % Inputsgamma = 1.4t3 = 2300 % State variablesP1 = 101325T1 = 500K % Engine geometric parametersbore = 0.1;stroke = 0.1;con_rod = 0.15;cr = 12; % Calculating the swept volume and clearance volumev_swept = (pi/4)*bore^2*stroke;v_clearance = v_swept/(cr-1); v1 = v_swept + v_clearancev2 = v_clearance…