Subspaces of all real-valued continuous functions on $\mathbb{R}^1$ I'll go ahead and give you the problem first, and then explain my trouble with it.
Which of the following subsets are subspaces of the vector space C(-$\infty$,$\infty$) defined as follows: Let V be the set of all real-valued continuous functions defnined on $\mathbb{R}^1$. If $f$ and $g$ are in $V$, we define $(f + g)(t) = f(t) + g(t)$. If $f$ is in $V$ and $c$ is a scalar, we define $c$ · $f$ by $(c · f)(t) = cf(t)$. Then $V$ is a vector space, which is donatedby C(-$\infty$,$\infty$).
(a) All nonnegative functions (b) All constant functions
There are more, but I have a feeling that after the (a) I'll be able to get the rest myself. Anyay, my problem is that the problem says it required calculus, and I don't understand how calculus even comes into it.  As far as I can tell, (b) would be a subspace (because it's are closed under operations of V), but (a) would not because V could make a negative value positive.  I may be completely wrong though; any suggestions?

The set of constant functions makes a subspace since (1) each constant function is continuous, (2) if $f$ and $g$ are constant functions and $c$ is a scalar, then $f+g$ and $c\cdot f$ are also constant functions.
The set of non-negative functions is not a subspace for various reasons: (1) not every non-negative function is continuous, (2) if $f$ is non-negative and non-zero, then $-1\cdot f$ takes a negative value so the set of non-negative functions is not closed under scalar multiplication. (It is closed under addition). 
