Suppose that $V$ is a finite dimensional euclidean space and let $f:V\to V$ is an operator. Let $f^*:V\to V$ is an adjoint operator. Let $W$ is a subspace of $V$ which is invariant under $f$ and $f^*$. Then we can define new operators $(f|_W)^*:W\to W$ and $f^*|_W:W\to W$.
So probably I will ask a stupid question: how to show that $(f|_W)^*=f^{*}|_W$? Since domain of those operators is $W$, then we need to show that for each $x\in W$ we have $(f|_W)^*(x)=f^{*}|_W(x)$.
The RHS of above is $f^{*}|_W(x)=f^{*}(x)$ by definition of restriction. I want to show that LHS if also equal to $f^{*}(x)$, i.e. $(f|_W)^*(x)=f^{*}(x)$. Intuitively I know that this is true but cannot persuade me that this is formally correct.
Would be very thankful for any help and comments!