To type a large fraction, use parentheses so that the calculator knows all of what's on the top and bottom like:

(x^2+2x+1)/(x+1)

https://www.mathpapa.com/algebra-calculator.html?q=(x%5E2%2B2x%2B1)%2F(x%2B1)