I'm trying to derive the expression for \( A_X = \frac{V_X}{V_{IN}}\) but I'm getting two different ones relatively to the \(KCL\) I use to calculate it.

With \( KCL \; A)\; -\frac{V_{IN}}{R_S} = \frac{V_{IN}-V_O}{R_F}\)
therefore with \(V_O = \left(1+\frac{R_F}{R_S} \right)V_{IN}\) , if I use:
I was thinking that maybe not considering the current that goes into the output of the op-amp when applying Kirchhoff's current law at the \( O\) node is an error thus resulting in the second expression being wrong, but I'm not sure.

With \( KCL \; A)\; -\frac{V_{IN}}{R_S} = \frac{V_{IN}-V_O}{R_F}\)
therefore with \(V_O = \left(1+\frac{R_F}{R_S} \right)V_{IN}\) , if I use:
- \(KCL \; X)\; \frac{V_{IN}-V_X}{R_3}+sC\left(V_O-V_X\right) = \frac{V_X}{R_4}\) , \(\\\) then I get \( R_4V_{IN}-R_4V_X + sCR_3 R_4 \left(1+\frac{R_F}{R_S} \right)V_{IN} - sCR_3 R_4V_X=R_3 V_X\) , \(\\\) therefore \( A_X = \frac{V_X}{V_{IN}} = \frac{R_SR_4+sCR_3R_4\left( R_S+R_F\right)}{R_S\left(R_3+R_4 \right)+sCR_3R_4R_S} \) .
- \( KCL\;O)\; \frac{V_{IN}-V_O}{R_F}=sC\left(V_O-V_X\right)\) , \(\\\) then I get \( V_{IN}-\left(1+\frac{R_F}{R_S} \right)V_{IN} = sCR_F\left(1+\frac{R_F}{R_S} \right)V_{IN}-sCR_FV_X\) ,\(\\\) therefore \( A_X = \frac{V_X}{V_{IN}} = \frac{1+sC\left(R_S+R_F\right)}{sCR_S}\) .
I was thinking that maybe not considering the current that goes into the output of the op-amp when applying Kirchhoff's current law at the \( O\) node is an error thus resulting in the second expression being wrong, but I'm not sure.

