Positron emission tomorgraphy (PET), and functional magnetic resonance imaging (fMRI) have led to a greater understanding to which center are activated during arousal. These imaging studies measure increases in cerebral blood flow or changes in cerebral activity on a real-time basis. Studies are performed when male subject are aroused by visual cues (usually sexual explicit photos or videos) and compared to images obtained during exposure to sexually neutral cues differences can be measured. Several studies have identified that the inferior frontal lobes, inferior temporal lobes and insular gyrus, and occipital lobes are involved with processing arousal cues, although each are likely to process different stimuli (20-23).
One of the first steps is to distinguish between physiological and psychological ED. Determining whether involuntary erections are present is important in eliminating the possibility of psychogenic causes for ED. Obtaining full erections occasionally, such as nocturnal penile tumescence when asleep (that is, when the mind and psychological issues, if any, are less present), tends to suggest that the physical structures are functionally working. Similarly, performance with manual stimulation, as well as any performance anxiety or acute situational ED, may indicate a psychogenic component to ED.
Recognized risk factors for ED include cardiovascular disease (CVD) (hypertension, atherosclerosis, and hyperlipidemia), diabetes, depression, alcohol use, smoking, pelvic/perineal surgery or trauma, neurologic disease, obesity, pelvic radiation, and Peyronie’s disease. One study suggested that the relationship between arterial disease and ED is very strong, with 49% (147 of 300) of patients with coronary artery disease noted on cardiac catheterization reporting significant erectile dysfunction.6 Endothelial dysfunction has been indicated as the pathophysiologic mechanism responsible for both CVD and ED.7 The Boston Area Community Health survey demonstrated a dose-response between smoking and incidence of erectile dysfunction.8 Animal studies have demonstrated both smooth-muscle disruption and decreased production of neural nitric oxide synthase in cigarette-exposed animals.9
Trauma to the pelvic blood vessels or nerves can also lead result in ED. Bicycle riding for long periods has been implicated as an etiologic factor; direct compression of the perineum by the bicycle seat may cause vascular and nerve injury.  On the other hand, bicycling for less than 3 hours per week may be somewhat protective against ED.  Some of the newer bicycle seats have been designed to diminish pressure on the perineum. [37, 38]
The laboratory results should be discussed with the patient and, if possible, with his sexual partner. This educational process allows a review of the basic aspects of the anatomy and physiology of the sexual response and an explanation of the possible etiology and associated risk factors (eg, smoking and the use of various medications). Treatment options and their benefits and risks should be discussed. This type of dialogue allows the patient and physician to cooperate in developing an optimal management strategy.
Impotence is the inability to get and keep an erection hard enough to have sex. Many men experience difficulties getting an erection when they are tired or stressed. This is normal and it doesn’t require treatment. However, if you encounter problems that persist, you may be suffering with a degree of impotence. Impotence is a very treatable condition and help is available either when you visit your local GP or an online doctor.
When a man becomes sexually excited, muscles in their penis relax. This relaxation allows for increased blood flow through the penile arteries. This blood fills two chambers inside the penis called the corpora cavernosa. As the chambers fill with blood, the penis grows rigid. Erection ends when the muscles contract and the accumulated blood can flow out through the penile veins.
If you’re experiencing psychological ED, you may benefit from talk therapy. Therapy can help you manage your mental health. You’ll likely work with your therapist over several sessions, and your therapist will address things like major stress or anxiety factors, feelings around sex, or subconscious conflicts that could be affecting your sexual well-being.
Since the advent of PDE5i, many other selective and non-selective peripheral acting compounds have been developed or are in development. Avanafil has shown promising results in treating ED in post-prostatectomy patients with suspected cavernous nerve injury (111). Other PDE5i marked in Asia such as udenafil, and mirodenafil also effective at treating ED may minimize side effects due to shorter half-lives (112-114). Soluable guanylate-cyclase inhibitors and potassium channel activators are compounds that have induced erections in animal models but remain experimental requiring further investigation (115-117).
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
Sexual dysfunction is highly prevalent in men and women. In the MMAS, 52% of the respondents reported some degree of erectile difficulty. Complete ED, defined as (1) the total inability to obtain or maintain an erection during sexual stimulation and (2) the absence of nocturnal erections, occurred in 10% of the respondents. Mild and moderate ED occurred in 17% and 25% of responders, respectively. 
Communication is key: don’t try to hide your erectile dysfunction from your partner, or to avoid discussing it out of embarrassment or shame. Sometimes just admitting that you are concerned can reduce the stress and anxiety you’re feeling. Remember, your partner may be just as confused and upset by this as you are, so try initiating a frank and open discussion on the issue.
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.
Viagra is available in three strengths: 25 mg, 50 mg, and 100 mg. Viagra works best if taken on an empty stomach about 30-45 minutes before sexual activity. Optimal results may not be realized until the medication has been tried six to eight times. Viagra may be used cautiously with alpha-blocker medications as long as sufficient time has passed between their dosing.
Caution is recommended regarding the use of PDE-5 inhibitors and alpha-blockers (for example, Hytrin, Cardura, Uroxatral, Flomax, Rapaflo), medications commonly used to treat benign prostate enlargement (BPH). The combination of these medications can cause lowering of the blood pressure. Stable use of one therapy should occur prior to the addition of the other therapy, which should start at a low dose.
In patients who either fail to respond to first or second-line therapy, or are not interested in the conservative therapies, penile prosthesis implantation is available. Malleable and rigid implants were available for many years, but in 1973 the world of penile prosthetics took a giant leap forward with the advent of the inflatable penile implant. Most implants done nowadays are of the inflatable variety. Adverse events including malfunction and infection are rare, and patient satisfaction is very high.45
There are risks to prosthetic surgery and patients are counselled before the procedure. If there is a post-operative infection, the implant will likely be removed. The devices are reliable, but in the case of mechanical malfunction, the device or a part of the device will need to be replaced surgically. If a penile prosthesis is removed, other non-surgical treatments may no longer work.