I'm guessing here that $f \in k[x]$, $s,t \in k$ and evaluating $f$ at a matrix $A$ is done as follows:
$$f(A) = \sum_{i=0}^n a_iA^i$$
where $f(x) = \sum_{i=0}^n a_ix^i$ and $A^0 = I$.
I imagine you should be able to prove this fairly easily by induction on the degree of $f$. It certainly very clearly holds when $f$ is linear.
To show it in the case when $f = a_1x +a_0$, first expand the RHS:
\begin{align*}(I-A)f(s) + Af(s+t) &= (I-A)(a_1s+a_0) + A(a_1(s+t)+a_0)\\
&=a_1(sI+tA)+a_0I = f(sI+tA)\end{align*}
Now, for the inductive step, say $f=a_nx^n + \ldots +a_1x +a_0$, we can write $f$ as $f=x\cdot a_nx^{n-1} + g$, where $g = a_{n-1}x^{n-1} + \ldots +a_1x+a_0$ has degree strictly smaller than $f$.
Now apply your inductive step and this result,
\begin{align*}f(sI+tA) &= (sI+tA)a_n(sI+tA)^{n-1} + g(sI+tA)\\
&=(sI+tA)a_n[(I-A)s^{n-1} +A(s+t)^{n-1}] + (I-A)g(s) + Ag(s+t)\end{align*}
Now expand, use that $A$ is idempotent to cancel some terms, and you get $Aa_n(s+t)^n + Ag(s+t) + (I-A)a_ns^n + g(s)$, which is precisely the result if you think how $g$ was defined.