With the integrate command, together with a cos(2*x) expression as well as two limits, in this case 0, 1, because it is a definite integral, the immediate integral of the entered expression is calculated, then the limits are replaced , obtaining the result sin(2)/2