Joe P. answered 11/24/19
NASA Alum w/ 10 yrs Tutoring and Research in Advanced Linear Algebra
This question isn't very clear, but making necessary reasonable assumptions, here we go.
Assume by way of a conditional proof that w is orthogonal to the vectors in S (which is to say the inner product with each of them is equal to zero by definition of orthogonal).
Let u be an arbitrary vector in Span(S).
Then u = a1v1 + ... + amvm, where the a's are elements of the field the vector space V is over.
Now <w,u> = <w,a1v1 + ... + amvm> = <w,a1v1> + ... + <w,amvm> = a1<w,v1> + ... + am<w,vm> = a1*0 + ... + am*0 = 0.
The first equality comes from substitution.
The second and third are both properties of linearity, and inner products are linear.
the fourth equality comes from the assumption that w is orthogonal to the vectors in S.
Since u was an arbitrary vector in Span(S), the above is true for all elements of W = Span(S).
By condition proof, if w is orthogonal to the vectors in S, then it is orthogonal to all of the vectors in W.