Let vectors x, and y be as given. Let f be as given. Then let v also be a vector in Rn. Then,
f(y + v) = <y + v, x> = <y, x> + <v, x> = f(y) + f(v), satisfying the first condition of linear transformation.
Now let k be a scalar in R. We have that f(ky) = <ky, x> = k<y, x> = kf(y), satisfying the second condition.
Both conditions for having a linear transformation has been satisfied for f.