Definite Integral Matlab. The area between two curves is equal to the integral of the difference between the upper curve and the lower curve, so you have an incorrect sign in the second integrand. The main problem is however that you are using symbolic expressions.