a) y = |sinx|
b) y = sin|x|
how do i sketch these functions?
For the second one, draw the graph of y = sin x for x > 0. Now reflect this graph in the y-axis to get the required part of the graph for x < 0. Alternatively, note that |x| = -x for x < 0 and so sin |x| = sin (-x) = - sin x for x < 0.