Piecewise functions are functions defined by different formulas depending on the value of x. To evaluate a piecewise function at a given x value, you determine which piece or formula applies based on x and then evaluate that formula. Step functions are a type of piecewise function where the value of the function remains constant between breakpoints and then changes discontinuously at each breakpoint.