Hello,
I am struggling to figure out how to code and show where these functions on a given plane are increasing and decreasing.
I've been given the following instructions. Graph: Sin(x) and Cos(x) on the same plane for -2Pi< x < 2Pi how to I code to find where Sin(X) is increasing and decreasing on this interval?
Well the Sin(x) is decreasing when the Cos(x) >=0 You could use colorfunction?
Plot[{Sin[x], Cos[x]}, {x, -2 Pi, 2 Pi}, {PlotLegends -> "Expressions"}, ColorFunction -> Function[{x, y}, If[Cos[x] >= 0, Black, Blue]], ColorFunctionScaling -> False]