How can I shade an region of a graph using the graph function?
1 Answer
Let's say I have the inequality
graph{x}
To work with shading and multiple graphs, you need to change the format of what is graphed - essentially we add
graph{y-x=0}
To shade, change the equal sign to an inequality. "graph { y-x>0 } " gives:
graph{y-x>0}
There are a number of existing answers that give more advanced tips on limiting graphs and shading, creating shaded shapes, and more. Here are a few:
https://socratic.org/questions/useful-to-plot-points-on-socratic-graph