I have copied the explanations below from another answer of mine to a similar question. I hope they will help understanding of this exotic analog circuit.
Short explanation
The output voltage VOUT is "lifted" with VGS above the input voltage VIN... but since a compensating voltage drop VR1 = VGS is subtracted from it (Fig. 1), the output voltage is equal to the input voltage.
Fig. 1. The idea of VGS compensation (a geometrical interpretation)
Detailed explanation
This ingenious circuit solution is a "cocktail" of famous circuit concepts. Let's investigate what they are and how they are implemented in the OP's circuit.
Negative feedback. The top JFET M1 is connected in a circuit with negative feedback known as source follower. It compares (subtracts) its source (circuit output) voltage with its gate (circuit input) voltage and changes its drain current until makes them equal. As a result, the output voltage copies the input voltage and the circuit behaves as a voltage source.
The lower JFET M2 is connected in another circuit with negative feedback known as constant-current diode. It creates a voltage drop across a constant resistor RE2; then compares this voltage with its threshold voltage Vth and changes its drain current until makes them equal. As a result, M2 keeps its drain current (almost) constant and the circuit behaves as a constant current source (more precisely, sink).
Interacting NFB systems. The two "sources" are connected to each other and act as interacting negative feedback systems. They provide ideal load conditions for each other: the voltage "source" M1 acts as a short circuit for the current "source" M2 and the current "source" M2 acts as an open circuit for the voltage "source" M1. Figuratively speaking, the voltage source "helps" the current source when it tries to change the current and the current source "helps" the voltage source when it tries to change the voltage. In circuitry, this configuration is known as "cascode".
Current biasing. Thus M1 is biased from the side of the source by directly setting its drain current. This is possible because of the negative feedback that "reverses" the M1 behavior (as though its drain current controls the gate-source voltage). Let's see how.
The current sink M2 "pulls down" the M1 source thus trying to draw its desired current from it. VGS1 decreases and M1 reacts to this intervention by increasing its drain current until it becomes equal to the desired M1 current. This creates the illusion that the drain current controls the gate-source voltage.
Dynamic load. This circuit has extremely high open-loop gain (gm x Rdyn) because of the extremely high differential resistance of the dynamic resistor in the source (aka 'current source'). We can see two cascaded stages - a 'voltage-to-current converter' (the transconductance gm) and a 'current-to-voltage converter' (the dynamic resistor in the emitter aka 'dynamic load'), that form a 'voltage amplifier'. As a result, the closed-loop gain is almost 1 (perfect follower).
Passive compensation. The idea of this old technique is to compensate for a disturbance by an equivalent "anti-disturbance". It is not only a circuit idea; it can be seen all around us. In the specific OP's circuit this means to compensate for the voltage VGS by an "anti-voltage" -VGS (Fig. 2).
Fig. 2. The circuit operation is visualized by voltage bars in red and current loops in green (a geometrical interpretation).
The input voltage is obtained by the potentiometer P connected between the supply rails. For simplicity, the case when VIN = 0 V (the wiper is in the middle) is shown. As a result of the voltage compensation, the output voltage is VOUT = VIN = 0 V. Let's see how this is achieved.
Voltage shifting. What is special here is that the output (source) voltage is "lifted" with VGS above the input (gate) voltage... and we have to "lower" it back down with VGS. In contrast, in most circuits of voltage followers VOUT < VIN, and there we have to "lift" the output voltage with VGS.
This technique is known as "voltage shifting". It is used for the first time by Widlar when designing 702 op-amp. Since the "shifting" voltage is "floating, it is created by passing constant current through a constant resistor. Thus the voltage drop across the resistor stays constant when the input voltage varies.
To implement this idea, the resistor Re1 is inserted in the M1 source. The current I produced by M2 creates a voltage drop VRe1 = I.Re1 = VGS across it that is subtracted from VOUT (you can think of Re1 as an opposing "battery" with voltage VGS). As a result of this compensation, VOUT = VIN... and the circuit acts as a perfect voltage follower.
I hope that my story about this amazing circuit of a source follower with dynamic load will increase your interest in even more sophisticated analog circuits...