A homework problem for power system stability course. I attached it in this mess