Claim 1. Let V∈TY. By the definition of f∣A,
{x∈A:f∣A(x)∈V}={x∈A:f(x)∈V}=A∩f−1(V),f−1(V)={x∈X:f(x)∈V}.
Since f is continuous, f−1(V)∈TX, and therefore A∩f−1(V)∈TA by the definition of the subspace topology. As V was an arbitrary member of TY, the map f∣A is continuous from (A,TA) to (Y,TY).
Claim 2. By the definition of a compact subset, the hypothesis that A is compact in X says exactly that the topological space (A,TA) is compact. By claim 1 the map f∣A:(A,TA)→(Y,TY) is continuous, so Continuous Image of a Compact Space is Compact, applied to f∣A in place of the map there and to (A,TA) in place of its domain, shows that the image
{f∣A(x):x∈A}=f(A)
is compact in Y.