Tried to fix example 3
Fixed example 3 - scipy.integrate.trapz needs its arguments to begin with y and include x as the optional parameter x=x