You usually use Gauss's Law and Gaussian surfaces to derive these fields: For a constant field E = ε0Q/A for any surface that is perpendicular to the field lines.
For an infinite plate, the E field goes directly away from the plate with area of σ C/m2 , If you draw a cylinder of radius, r and height h through the plate, the field lines go through the end caps. So, E = ε0σπr2/(2πr2)
or E = ε0σ/2 or E is constant.
For an infinite wire with charge λ C/m, you draw a cylinder along the wire. Now the E field is radially outwards through the sides of the cylinder. E = ε0hλ/(2πrh) or E = ε0λ/(2r) or E is proportional to 1/r
Jessie T.
Thank you!05/15/22