The problem below has a limit that DNE. How do we find out whether it approaches positive or negative infinity? Hint. 
g(x)=x2−1, if x<0
g(x)=2x+1, if x is greater than or =0
Find lim of g(x) as x→0
g(x)=(0)2−1=−1 Left hand limit lim of g(x) as x→0−
g(x)=2(0)+1=1, lim of g(x) as x→0+
Limits don't match so lim of g(x) as x→0 DNE.