So we differentiate displacement (from our frame of reference) with respect to proper time of the moving object $\dfrac{dx}{d\tau}$ to get to the momentum equation: $$p=\gamma mv$$ But when we derive the energy equation: $$E=\int\frac{\mathrm{d}p}{\mathrm{d}t}\mathrm{d}x$$ we use our time instead of the object's.
Why do we use our time to get the energy and the object's time to get the momentum? And, why do we differentiate displacement from my frame of reference with respect to the object's (proper) time to get the momentum? (Why don't we use the contracted displacement from the object's reference frame?)