Determining limits using the squeeze theorem