Hello! Just need some help graphing into desmos. What is the equation I’d input?

SOLUTION
The given funtion is:
[tex]f(x)=\begin{cases}3^{x+1}\text{ }{x\leq1} \\ \frac{-x^2+x+2}{x^2-3x+2}\text{ x>1}\end{cases}[/tex]The graph of the piecewise function is shown:
The rage is:
[tex]y\le7[/tex]