This thesis investigates transient stability of the power system using numerical methods and direct methods. Structure preserving models are prepared for the stability analysis, where all nodes in the system are considered. Moreover, frequency dep...