Normally in limits you think about the value of the function as x approaches the limit A from both above and below its value (i.e. from the left and the right), and consequently a value

such that

. But in the case of infinity you can only approach from below, and this concept of the

doesn't apply. Instead you need to find a value for S such that for any x>S the value of 3/(x^2) is less than

from the limit. In the first example you gave, if X approaches infinity, what is the value of 3/(x^2)? You can see that the bigger x gets, the value of 3/(x^2) gets closer and closer to 0. So that's the limit.
More formally, from the definition of a limit given here:
Limit of a function - Wikipedia, the free encyclopedia
the limit (L) in the first example is 0, and so for any

you can find a value S such that

for

.