# Gauss's law and nonuniform electric field

#### boredbluejay

1. Homework Statement
A Gaussian surface is in the shape of a cube with edge length 1.40m. The electric field is E=[-4i+(6+3y)j]N/C.

I got an answer, but the solution manual stated that we treat the electric field as E=3yj+E0, where E0=-4i+6j, which does not contribute to the flux. Why is this? Please help!

Related Introductory Physics Homework Help News on Phys.org

#### ehild

Homework Helper
The flux of a constant vector is zero as the contribution from one side of the cube is positive and negative from the opposite side.

ehild

#### boredbluejay

Ah, okay. I didn't know that. But when calculating the flux of individual faces, does the constant vector contribute?

#### ehild

Homework Helper
You know how to get a flux of a vector field B(r) at an surface area A? you integrate the normal component of the vector B : Φ=∫BndA.
The normal component refers to the outward normal. Although there is nonzero flux from the constant vector on on side, there is the same with opposite sign on the opposite side.

ehild

### Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving