I am trying to calculate the integral $$ y(x)=\int^b_a dz\delta(x-w(z)) $$ were $\delta$ is the dirac delta function, $w$ is a one-dimensional matrix, $a=-3$ and $b=3$.