<em>f '</em> (0) exists if the limit,

exists, and <em>f</em> <em>'</em> (0) has the value of this limit.
In order for this limit to exist, both limits from either side of <em>h</em> = 0 must exist.
Suppose <em>h</em> < 0. Then 0 + <em>h</em> is also negative, so by definition of <em>f(x)</em> we have
<em>f</em> (0 + <em>h</em>) = ((0 + <em>h</em>) + 1)² = <em>h</em> ² + 2<em>h</em> + 1
Then in the limit, if <em>h</em> is approaching 0, it must be from below or from the left:

Now suppose <em>h</em> > 0, so that 0 + <em>h</em> is positive and <em>h</em> approaches 0 from above or from the right. Then
<em>f</em> (0 + <em>h</em>) = 2 (0 + <em>h</em>) + 1 = 2<em>h</em> + 1
and

Both one-sided limits match, so <em>f '</em> (0) = 2.