The prismatic bar has a cross-sectional area
a. If it is subjected to a distributed axial loading that increases linearly from w = 0 at x = 0 to w = w0 at x = a, and then decreases linearly to w = 0 at x = 2a, determine the average normal stress in the bar as a function of x for a < x ≤ 2a.