Is geothermal energy ultimately derived from solar energy? The following question is taken from 10th class science NCERT book chapter 14th.

Most of the sources of energy we use represent stored solar energy. Which of the following is not ultimately derived from the Sun’s energy?
(a) geothermal energy (b) wind energy
(c) nuclear energy (d) bio-mass.

The answer is given as (c) nuclear energy.
I understand that the wind moves because of the uneven heating of the earth by the sun. And biomass uses solar energy for photosynthesis.
How is geothermal energy ultimately derived from the sun?
 A: No , the geothermal Energy is not derived from Sun's Energy or Has any relation to Sun's heat energy under normal circumstances. It comes/transforms/translates from within the Earth's Crust through several Chemical and Physical Events inside.
The Answer given is Nuclear Energy , because Of the RadioActive Decay of Matter inside the crust but this is one of the factors that may result in Thermal Energy
An excerpt from Wikipedia says this.

Geothermal energy is thermal energy generated and stored in the Earth. Thermal energy is the energy that determines the temperature of matter. The geothermal energy of the Earth's crust originates from the original formation of the planet and from radioactive decay of materials (in currently uncertain but possibly roughly equal proportions).

Wikipedia Article Here About Geothermal Energy
A: To the extent that Geothermal Energy arises from the Primordial Energy from the accretion of the planets during the formation of the Solar System, you could correctly argue that Geothermal Energy is also ultimately attributable to the sun, albeit via the suns gravitational attraction rather than it's radiation. More precisely, however, Geothermal energy is comes not only this 'Primordial Heat, but also from 'Radiogenic Heat' from the decay of radioactive isotopes, in roughly similar proportions. According to this Wikipedia article the ranges of these sources are estimated at 15–41 TW and 12–30 TW for radiogenic heat and primordial heat, respectively. https://en.wikipedia.org/wiki/Earth%27s_internal_heat_budget
A: It is not a correct statement:

Geothermal energy comes from the heat within the earth. The word "geothermal" comes from the Greek words geo, meaning earth," and therme, meaning "heat." People around the world use geothermal energy to produce electricity, to heat buildings and greenhouses, and for other purposes.


The earth's core lies almost 4,000 miles beneath the earth's surface. The double-layered core is made up of very hot molten iron surrounding a solid iron center. Estimates of the temperature of the core range from 5,000 to 11,000 degrees Fahrenheit (F). Heat is continuously produced within the earth by the slow decay of radioactive particles that is natural in all rock

italics mine.
Geothermal energy comes from the original energy of the  matter solidifying into the sun-planetary system, ultimately from the Big Bang, and from continuous nuclear decays and reactions .
A: Geothermal energy, ultimately, is derived from the Sun. How can that be? There's a couple of ways you could look at it.
First, models for planetary formation involve material ejected from primordial supernovae slowly coalescing under the force of gravity. Nearly all matter and energy trapped in the core of the Earth originated inside the Sun (not the same Sun, technically, since the current Sun formed out of that same supernova explosion the Earth came from).
Secondly, thermal energy is only useful when there is a temperature gradient. At the end of a thermal reaction (uniform temperature), the amount of energy in a system is the same, but no more meaningful work can be done with it. So the thermal energy in the Earth's core is only useful to us because of the relatively cooler surface temperature, and the surface temperature of a planet is directly attributable to the amount of solar energy it receives (among other things).
You could even argue that solar energy is nothing more than a side-effect of nuclear energy, the direct result of thermal energy released by nuclear fusion of lighter elements into heavier elements. But you can't argue that nuclear energy is the result of solar energy. It's kinda like how all squares are rectangles, but not all rectangles are squares.
