mrchris said:
I also am not sure how to use the definition of the limit here. Is it not enough to say that since we are taking h>0, as h approaches 0, those values of h will all be positive?
It's not enough, because if you haven't used the definition of the limit, you can't claim to have proved anything about the limit. Consider the related but slightly simpler problem of proving that if every term of a convergent sequence is <0, then the limit is ≤0. It's the same thing here. The statement is pretty obvious*, but you still need to prove it.
*) Actually it only
seems obvious because we tend to implicitly assume that the definition we're using is consistent with our intuition about limits. As a student, you understand that the way that the definition has been presented to you means that it's universally agreed to be the best definition of the term "limit", and that it wouldn't be if mathematicians hadn't already determined that it's consistent with our intuition. So to argue that "it's obvious" is the same thing as arguing that "this thing wouldn't even be
called a limit if someone hadn't already proved this".
I'll do the proof for sequences. You should be able to figure out how to do the corresponding proof for functions.
Definition: x is said to be a limit of ##\langle x_n\rangle_{n=1}^\infty## if every open interval that contains x contains all but a finite number of terms of the sequence.
Theorem: If ##\langle x_n\rangle_{n=1}^\infty## is a convergent sequence in ##\mathbb R##, and ##x_n<0## for all ##n\in\mathbb Z^+##, then ##\lim_n x_n\leq 0##.
Proof: Define ##x=\lim_n x_n##. Suppose that x>0. Since ##x_n\to x##, the open interval (x/2,3x/2) contains all but a finite number of terms. But none of the numbers in this interval are negative, so this contradicts the assumption that all the terms are <0.
mrchris said:
and also, if g(0) is undefined, doesn't this mean that f is not differentiable on R because then f '(x) is not defined?
No, because f'(x) isn't defined as g(0), but as ##\lim_{h\to 0}g(h)##. Note that a function doesn't have to be defined at 0 to have a limit at 0.