## Summary

The decrease in your potential energy is compensated by the increase in your rotational kinetic energy.

## Setup

First let’s analyze a similar scenario in another context to build the intuition needed to understand the original problem. Imagine a horizontal rod spinning around a stationary axis and you are hanging at the farther end of the rod. Let’s say that now you want to get closer to the axis of rotation and thus you try to pull yourself closer to the axis, however you feel an opposing force, **the centrifugal force** (a pseudo force encountered in the rotating frame of reference whose magnitude is $momega ^2 r$). So you need to do some work against this force to get closer to the axis.

## Angular Momentum

But the question arises, where does this work done go? The answer is that this work done contributes to the change in kinetic energy. How? See, when you changed your position, one thing remained constant throughout the change, which is the angular momentum. This is famously stated as **the law of conservation of angular momentum**. It implies that the final angular momentum is the same as the initial angular momentum, that is

$$mathrm d (I omega)=0quad Rightarrow quad I_{text{initial}}omega_{text{initial}}=I_{text{final}}omega_{text{final}}tag{1}$$

where $I$ is the moment of inertia and $omega$ is the angular velocity. In the above case, since you came closer to the axis, the moment of inertia decreased and thus the angular velocity increased while keeping the angular momentum constant

## Energy

^{From now on, I will denote “final” as “f” and initial as “i”.}

However, the energy was not conserved during this change, which was expected since you did some non zero positive work to get closer to the axis. So, the change in the energy is

$$Delta E =frac 1 2 I_text{f}omega^2_text{f}-frac 1 2 I_text{i}omega^2_text{i} tag{2}$$

Since $I_{text{i}}omega_{text{i}}=I_{text{f}}omega_{text{f}}$, thus $(2)$ simplifies to

$$Delta E =frac 1 2 I_text{i} omega_text{i}(omega_text{f}-omega_text{i})$$

Now since $omega_text{f}>omega_text{i}$, thus $Delta E>0$. This positive energy change, which was manifested as increase in the rotational kinetic energy, is due to the work done by you against the centrifugal force.

## The bicycle turn case

You’d have already observed the analogy and the connection between the above example and the bicycle turning case. In the turning case, the friction is almost always acting along the center of curvature of the turning circle, so we can safely conserve the angular momentum of the cyclist about the center of curvature (in reality, there would be a tangential component of friction which would reduce the angular momentum and the rotational kinetic energy, however it’s negligible for a fully inflated tire and we can ignore it). And again, in this case as you lean, you get closer to the axis passing through the center of curvature, and the moment of inertia of the system decreases, so the final angular velocity increases and so does the final rotational kinetic energy. And thus, you speed up while turning around the circle.

## Difference

However, there is a subtle difference in the bicycle case, there is a torque due to gravity, however this torque does not stop us from conserving angular momentum since it is perpendicular to the angular velocity. This case is analogous to a particle moving in uniform circular motion. The gravity’s torque only changes the direction of the angular momentum and does not change its magnitude, thus as long as we are only concerned with the magnitude of the angular momentum, which we are, we need not worry about the gravity’s torque. However, if you are interested, then you can refer to Wikipedia’s page on precession for further reading. So it is precession which makes your bicycle go around a corner/turn after you tilt it and it is the law of angular momentum conservation which makes your bicycle speed up once you turn it. This scenario is very similar to its translational analog, a ball (connected by a thread) moving uniformly in a 2D circle initially and then you reduce (change) its radius