Can you express x as a function of z? Then focus on the chain rule...
Just in case a picture helps with the logic of this...
... the chain rule. Straight continuous lines differentiate downwards (integrate up) with respect to x, and the straight dashed line similarly but with respect to the dashed balloon expression (the inner function of the composite which is subject to the chain rule).
Don't integrate - balloontegrate!