Step-by-step explanation
to graph a function and its inverse, all you have to do is graph the function and then switch all x and y values in each point to graph the inverse, so
Step 1
draw the line y=x
Step 2
switch all x and y values in each point, in the graph it will look like if the line y=x( green) is a mirror.
I hope this helps you