当P在AB上,即0≤x≤2时,y=1/2 AP×AD=1/2 ×x×2=x;
当P在BC上,即2≤x≤4时,y=S正方形ABCD-S△ADE-S△CEP-S△ABP,
=2×2-1/2×2×1-1/2×1×(4-x)-1/2×2×(x-2),
=-1/2x+3;
当P在CE上,即4≤x≤5时,y=1/2 EP×AD=1/2×(6-1-x)=-x+5;
∴ x (0≤x≤2)
y= -1/2x+3 (2≤x≤4)
-x+5 (4≤x≤5)
当y=1/3 时,1/3 =x或1/3 =-1/2x+3或1/3=-x+5,
解得:x=1/3 或4(2/3) .