What is the probability that a point chosen at random within a square is closer to the centre than to the boundary?
You're probably referring to a square of side length located within the original square of side length .
However, the corner of the inner square is units away from the centre whereas it is only units away from the boundary.
So I don't think the above approach is correct.