I’ve got the same question as Tom: I don’t recognize this as anything that Prof Ng talks about in any of the courses here that I have taken.
It’s fine to ask random questions in General Discussions and maybe you get lucky and someone can help, although this doesn’t look ML related. But if you’re asking for someone else to do your homework for you in some university course, that seems like maybe you’re short changing yourself. Maybe the better idea is to go back and check your notes or read the relevant sections of the text book again.
I was a math grad student quite a long time ago and I also don’t remember seeing a problem formulated that way in any of my studies. What is the subject of the course you are taking?
I’m not sure I understand what the goal is, but notice that the values you have circled in the diagram do not include 1. But that is in the RHS of the target expression.