This is probably very simple but I don't know why I am having trouble switching the order of integration and the parameters for double integrals.

For example,

if the x parameters are 0 and pi and the y parameters are 0 and sinx,

how would i change the parameters so I express x as function of y and get two values for y boundaries