How much energy is used to manufacture a solar panel, is it worth it?

With current production methods a solar panel will take 3 years to generate the power that it takes to produce it. With the average lifespan of a solar panel being between 30 and 40 years we would estimate that a solar panel will generate at least 10 times the energy that it takes to produce it.Source