Explanation :
The kinetic energy of an object,
Potential energy of an object,
Where,
m is the mass of an object
v is the velocity of an object
g is the acceleration due to gravity
h is the height above the reference level
When Eric throws a basketball straight up in the air, the kinetic energy at maximum height will be zero or we can say that the kinetic energy decreases to zero. The potential energy of basketball is increasing due to increase in height.