Trials of testosterone treatment in men with type 2 diabetes have also taken place. A recent randomized controlled crossover trial assessed the effects of intramuscular testosterone replacement to achieve levels within the physiological range, compared with placebo injections in 24 men with diabetes, hypogonadism and a mean age of 64 years (Kapoor et al 2006). Ten of these men were insulin treated. Testosterone treatment led to a significant reduction in glycated hemoglobin (HbA1C) and fasting glucose compared to placebo. Testosterone also produced a significant reduction in insulin resistance, measured by the homeostatic model assessment (HOMA), in the fourteen non-insulin treated patients. It is not possible to measure insulin resistance in patients treated with insulin but five out of ten of these patients had a reduction of insulin dose during the study. Other significant changes during testosterone treatment in this trial were reduced total cholesterol, waist circumference and waist-hip ratio. Similarly, a placebo-controlled but non-blinded trial in 24 men with visceral obesity, diabetes, hypogonadism and mean age 57 years found that three months of oral testosterone treatment led to significant reductions in HbA1C, fasting glucose, post-prandial glucose, weight, fat mass and waist-hip ratio (Boyanov et al 2003). In contrast, an uncontrolled study of 150 mg intramuscular testosterone given to 10 patients, average age 64 years, with diabetes and hypogonadism found no significant change in diabetes control, fasting glucose or insulin levels (Corrales et al 2004). Another uncontrolled study showed no beneficial effect of testosterone treatment on insulin resistance, measured by HOMA and ‘minimal model’ of area under acute insulin response curves, in 11 patients with type 2 diabetes aged between 33 and 73 years (Lee et al 2005). Body mass index was within the normal range in this population and there was no change in waist-hip ratio or weight during testosterone treatment. Baseline testosterone levels were in the low-normal range and patients received a relatively small dose of 100 mg intramuscular testosterone every three weeks. A good increase in testosterone levels during the trial is described but it is not stated at which time during the three week cycle the testosterone levels were tested, so the lack of response could reflect an insufficient overall testosterone dose in the trial period.
Penile erection is managed by two mechanisms: the reflex erection, which is achieved by directly touching the penile shaft, and the psychogenic erection, which is achieved by erotic or emotional stimuli. The former uses the peripheral nerves and the lower parts of the spinal cord, whereas the latter uses the limbic system of the brain. In both cases, an intact neural system is required for a successful and complete erection. Stimulation of the penile shaft by the nervous system leads to the secretion of nitric oxide (NO), which causes the relaxation of smooth muscles of corpora cavernosa (the main erectile tissue of penis), and subsequently penile erection. Additionally, adequate levels of testosterone (produced by the testes) and an intact pituitary gland are required for the development of a healthy erectile system. As can be understood from the mechanisms of a normal erection, impotence may develop due to hormonal deficiency, disorders of the neural system, lack of adequate penile blood supply or psychological problems. Spinal cord injury causes sexual dysfunction including ED. Restriction of blood flow can arise from impaired endothelial function due to the usual causes associated with coronary artery disease, but can also be caused by prolonged exposure to bright light.
Effective treatment for erectile dysfunction is available, and for most men will allow the return to a fulfilling sex life. The side effects of the treatment for erectile dysfunction vary depending on the treatment that is used. Some may interrupt the spontaneity of sexual activity. For example, PDE-5 inhibitors typically need to be taken one hour before sex. Side effects may include headaches, indigestion, vasodilation, diarrhoea and blue tinge to vision. Other treatments such as penile injections may cause pain at the injection site, or an erection that will not go down. Treatment options need to be carefully discussed with your doctor to determine which one is best suited to you.
In a randomized double-blind, parallel, placebo-controlled trial, sildenafil plus testosterone was not superior to sildenafil plus placebo in improving erectile function in men with ED and low testosterone levels.  The objective of the study was to determine whether the addition of testosterone to sildenafil therapy improves erectile response in men with ED and low testosterone levels.
The chemical synthesis of testosterone from cholesterol was achieved in August that year by Butenandt and Hanisch. Only a week later, the Ciba group in Zurich, Leopold Ruzicka (1887–1976) and A. Wettstein, published their synthesis of testosterone. These independent partial syntheses of testosterone from a cholesterol base earned both Butenandt and Ruzicka the joint 1939 Nobel Prize in Chemistry. Testosterone was identified as 17β-hydroxyandrost-4-en-3-one (C19H28O2), a solid polycyclic alcohol with a hydroxyl group at the 17th carbon atom. This also made it obvious that additional modifications on the synthesized testosterone could be made, i.e., esterification and alkylation.
Erectile dysfunction is known to be associated with general health status, thus, lifestyle modification improves erectile function and decreases the rate of decline of function with aging. One year after discontinuation of smoking, patients were found to have a 25% improvement in erectile quality.16 In addition, multivariate analysis found obesity is associated with erectile dysfunction with an approximately 50% increase in ED in obese men as compared with normal weight men.17
Some men report being helped by an oral medication called yohimbine, which comes from the bark of a tree that grows in India and Africa. This drug, which needs to be taken every day, has been reported to help about 20 to 25 percent of the men taking it. A relatively new but widely used oral medication called Viagra requires a careful medical evaluation by your doctor.
All studies demonstrate a strong association with age, even when data are adjusted for the confounding effects of other risk factors. The independent association with aging suggests that vascular changes in the arteries and sinusoids of the corpora cavernosa, similar to those found elsewhere in the body, are contributing factors. Other risk factors associated with aging include depression, sleep apnea, and low HDL levels.
Psychological factors — Psychological issues such as depression, anxiety, guilt or fear can sometimes cause sexual problems. At one time, these factors were thought to be the major cause of impotence. Doctors now know that physical factors cause impotence in most men with the problem. However, embarrassment or "performance anxiety" can make a physical problem worse.
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
Capogrosso, P., Colicchia, M., Ventimiglia, E., Castagna, G., Clementi, M. C., Suardi, N., ... Salonia, A. (2013, July). One patient out of four with newly diagnosed erectile dysfunction is a young man — worrisome picture from the everyday clinical practice. The journal of sexual medicine. 10(7), 1833–1841. Retrieved from https://onlinelibrary.wiley.com/doi/full/10.1111/jsm.12179