A random point $(X,Y)$ is distributed uniformly on the square with vertices $(1,1)$, $(1,-1)$, $(-1,1)$, and $(-1,-1)$. That is, the joint pdf is $f(x,y)=\frac{1}{4}$ on the square. Determine the probability of $P(|X+Y|<2)$.
My attempt: $$\int_{-1}^1\int_{-1}^{2-x} \frac{1}{4}\,dy\,dx$$ Did I set up the double integral right?


Comment: @herbsteinberg is correct that the problem as stated is pointless, because the answer is obviously $1.$ The integral would be $\int_{-1}^1 \int_{-1}^1 \frac 1 4\, dy\,dx.$
The plot below shows the region of the square corresponding to $P(|X+Y|<1).$ Because the joint distribution of $(X,Y)$ on the square is uniform it seems clear that $P(|X+Y|<1) = 3/4.$
If you want to use integral calculus, it is probably best to break the integral into two parts, perhaps to the left and right of the vertical green line.
Note: I used simulation (in R statistical software) as an easy way to make the plot. But the same simulation also provides a way to approximate the result $P(|X+Y|<1) = 3/4,$ correct to two places. [A larger number of points, such as
m = 10^6, would give a much closer approximation, but an ugly plot.]