To evaluate a function, substitute the input variable into the function in place of the original variable. This gives the output or image of the input under the function. For example, to evaluate f(x)=3x-5 at x=4, substitute 4 for x: f(4)=3(4)-5=7. When substituting expressions, use parentheses to avoid errors. For a function like f(x)=x^2-x-4, if f(k)=8, set the function equal to 8 and solve for k, finding that k=4 or k=-3.