Let $A$ be the set of affine functions denoted by $$ f_{a,b} (x) = a x + b$$ (with $a \in \mathbb{R}$ and $b \in \mathbb{R}$ and $x \in \mathbb{R}$ and $f_{a,b} (x) \in \mathbb{R}$)
We can easily show that $A$ has the structure of a real vector space (internal addition $f_{a,b} + f_{c,d}= f_{a+c, b+d}$ and external multiplication for $\alpha \in \mathbb{R}$, $\alpha f_{a,b} = f_{\alpha a , \alpha b}$).
I would like to further show that $S=\{ f_{1,0} , f_{0,1} \}$ is a basis for $A$.
$S$ generates $A$: take any $f_{a,b} \in A$ . For $\alpha_1$ and $\alpha_2$ real, we have $f_{a,b}(x) = \alpha_1 f_{1,0} (x) + \alpha_2 f_{0,1} (x)$ $\Leftrightarrow a x + b = \alpha_1 x + \alpha_2$. We get $\alpha_1 = a$ and $\alpha_2 = b$.
However I fail to show that $f_{1,0}$ and $f_{0,1}$ linearly independent, for all $x \in \mathbb{R}$