where \(X\in\mathbf{Psh}(\mathcal C)=\operatorname{Fun}(\mathcal C^{\mathrm{op}},\mathbf{Set})\) & \(\smallint X\) is the category of elements of \(X\).
Let \(p\colon Y\to X\) be an object of the slice \(\mathbf{Psh}(\mathcal C)/X\) (so \(Y\) is a presheaf and \(p\) is a natural transformation). Define a presheaf \(\widetilde Y\) on \(\smallint X\) (i.e. a functor \((\smallint X)^{\mathrm{op}}\to\mathbf{Set}\)) by
Functoriality of \(\widetilde Y\) follows from functoriality of \(Y\). On morphisms \(p\mapsto\widetilde Y\) acts by sending a commutative triangle of natural transformations to the induced natural transformation of the corresponding presheaves on \(\smallint X\). This can be verified w/ similar pointwise calculations as above. Name this functor \(F:\mathbf{Psh}(\mathcal C)/X \longrightarrow \mathbf{Psh}(\smallint X)\).
Conversely, let \(A\in\mathbf{Psh}(\smallint X)\), i.e. \(A:(\smallint X)^{\mathrm{op}}\to\mathbf{Set}\). Define a presheaf \(Y_A\in\mathbf{Psh}(\mathcal C)\) together with a morphism \(p_A:Y_A\to X\) as follows.
Thus \((Y_A,p_A)\) is an object of the slice. On morphisms \(A\mapsto (Y_A\to X)\) is defined in the obvious coordinatewise way, giving a functor \(G:\mathbf{Psh}(\smallint X)\longrightarrow \mathbf{Psh}(\mathcal C)/X\).
We check \(G\circ F\cong\mathrm{id}\) and \(F\circ G\cong\mathrm{id}\) naturally.
Thus \(F\) and \(G\) are inverse equivalences of categories.
We have constructed explicit mutually inverse functors that proves
\[ \mathbf{Psh}(\mathcal C)/X \simeq \mathbf{Psh}(\smallint X) \]hence the slice category \(\mathbf{Psh}(\mathcal C)/X\) is (canonically) equivalent to \(\mathbf{Psh}(\smallint X)\) ■
Let \(\mathcal C\) be a small category, \(X\in\widehat{\mathcal C}=\mathbf{Psh}(\mathcal C)=\mathrm{Fun}(\mathcal C^{\mathrm{op}},\mathbf{Set})\). Let \(\smallint X\) denote the category of elements of \(X\). Write \(y:\mathcal C\to\widehat{\mathcal C}\) for the Yoneda embedding; an element \(x\in X(c)\) corresponds (by Yoneda) to a morphism \(x: y(c)\to X\) in \(\widehat{\mathcal C}\).
We will produce canonical mutually quasi-inverse functors
\[ F:\widehat{\mathcal C}/X\longrightarrow\widehat{(\smallint X)}\qquad\text{and}\qquad G:\widehat{(\smallint X)}\longrightarrow\widehat{\mathcal C}/X \]and show they are inverse.
For an object \(p:Y\overset{p}{\to}X\) of the slice \(\widehat{\mathcal C}/X\) define a presheaf \(F(p)\) on \(\smallint X\) by the rule
\[ F(p)\bigl(c,x\colon y(c)\to X\bigr):=\operatorname{Hom}_{\widehat{\mathcal C}/X}\bigl(y(c)\xrightarrow{x}X,\;Y\xrightarrow{p}X\bigr). \]That is: at the object \((c,x)\in\smallint X\) we take the set of morphisms in the slice from the representable map \(x:y(c)\to X\) into \(p\). Functoriality in \((c,x)\) is given by precomposition in the slice; this is tautologically functorial.
This definition is purely representable: for fixed \((c,x)\) the functor
\[ \widehat{\mathcal C}/X\longrightarrow\mathbf{Set},\qquad (Y\to X)\mapsto\operatorname{Hom}_{/X}(y(c)\xrightarrow{x}X,Y\to X) \]is representable (represented by the object \(y(c)\xrightarrow{x}X\) itself). Thus \(F(p)\) is just the functor of slice-maps from representables, packaged as a presheaf on \(\smallint X\).
Conversely, let \(A\in\widehat{(\smallint X)}\). Compose the projection functor \(\pi:\smallint X\to\mathcal C\) with \(y\) to get representables indexed by \(\smallint X\):
\[ \smallint X \xrightarrow{\ \pi\ } \mathcal C \xrightarrow{\ y\ } \widehat{\mathcal C} \]There is a canonical coend / coproduct (colimit) presentation
\[ Y_A := \underset{(c,x)\in\smallint X}{\mathrm{colim}}\; \bigl( A(c,x)\cdot y(c) \bigr) \](where \(A(c,x)\cdot y(c)\) denotes the coproduct of copies of the representable \(y(c)\) indexed by the set \(A(c,x)\)). The colimit carries a canonical map \(p_A:Y_A\to X\) induced from the maps \(y(c)\xrightarrow{x}X\) used in the colimit diagram. This produces an object \(p_A:Y_A\to X\) of the slice \(\widehat{\mathcal C}/X\). Define \(G(A):= (Y_A\to X)\).
Concretely this is the left Kan extension (along \(\pi\)) of \(A\) followed by the canonical map into \(X\); nothing ad hoc — just the universal colimit reconstructing a presheaf on \(\mathcal C\) from its fibres over representables.
Now we'll check the two composites are naturally isomorphic.
These isomorphisms are natural, hence \(F\) and \(G\) are mutually quasi-inverse equivalences.
The functor
\[ F:\widehat{\mathcal C}/X\longrightarrow\widehat{(\smallint X)}\qquad (Y\to X)\mapsto\bigl((c,x)\mapsto\operatorname{Hom}_{/X}(y(c)\xrightarrow{x}X,Y\to X)\bigr) \]is an equivalence of categories with inverse given by the left Kan extension/colimit construction \(G\). All verifications reduce to the universal (representability/Yoneda) properties of the representables and of colimits.
Hence
\[ \mathbf{Psh}(\mathcal C)/X \simeq \mathbf{Psh}(\smallint X) \]as required. ■