Viagra, commonly known as sildenafil, is a approved medication primarily used to treat male impotence . It functions by increasing circulation to the penis, facilitating an erection in response to arousal . While generally safe when taken as directed, potential side effects may include headaches