The following diagram is the 50W offline switching power supply circuit design. The circuit powered by a MOSFET. BUZ80A/IXTP4N8 for…