To write the equation for a piecewise linear function shown on a graph, you need to determine the equation of each linear segment and the interval for which it is applied.
This involves identifying the slope and y-intercept (or using two points to find the equation) for each segment of the piecewise function and specifying the domain (intervals) over which each piece is valid.