How do I derived these 2 formula from these 2 circuits?

Top