addfrac(x+1/x)
The original denominators must be nonzero:
Let's add fractions:
ⓘ To add fractions, put them over the same denominator, then add the numerators: =
ⓘ To multiply powers with the same base, add their exponents: =
▶Result: