Welcome to e health forum.
Your symptoms appear to be due to urinary infection, induced by sexual intercourse induced urethral trauma and or lack or lubrication.
Females have a higher risk for UTIs than most males, probably because of their anatomy, because their urethra is short and its exit (or entry for pathogens) is close to the anus and vagina, which can be sources of pathogens.
In addition, females who become sexually active seem to have a higher risk of UTI. This is due to the fact that during sexual intercourse, bacteria in the perineal region (Vaginal Introitus, Anal opening) can be propelled into the urethra. The resultant friction associated with sex also creates urethral tissue damage increasing the severity of infections.
Adopting a few precautions and important measures will help prevent recurrent urinary infections. These include -
1. Good hygiene - for females, wiping from front to back helps keeps pathogens in the perineal region away from the urethra;
2. Complete bladder emptying and avoiding the urge to resist normal urinary urge is important.
3. Washing and urinating before sexual intercourse and soon after sex, also helps to reduce the chance of urethritis / cystitis.
4. Avoiding factors that irritate the genital area also is helpful. For example, tight clothing, deodorant sprays, or other feminine products like bubble bath should be avoided as they may encourage UTI development.
5. Wearing absorptive underwear (for example, cotton instead of those made with synthetic material) may help wick away urine drops that otherwise may be areas for pathogen growth.
In your case, taking adequate rest and anti inflammatory agents (Advil, motrin) or tylenol should help your symptoms. In addition, you should consult your doctor for a urinalysis and treatment of the infection with proper antibiotic.
There is no need to change your history, just to avoid any form of inconvenience. Your doctor can know the cause of the infection just by clinically examining you.
I hope this helps.