function xp=ps5p2_stage2_xp(tildez); [theta2,x2]=ps5p2_stage2(tildez); xp=ps5p2_X(theta2);