The circuit in question 4 and they ask to express v_p and v_q as a function of v_g.

For v_q I am thinking of using node analysis and since we know that there is no current that flows through the bottom OP amp we get from Ohm's law that the current that goes out to the 10R resistor is the same that comes in from v_g/R = I_g.

So v_q is:

10R*I_g = v_g*10/R.

I don't have any clue how to solve the function for v_p though.

Is my line of reasoning right for v_q and could anyone help me how I should go about to find the function for v_p?