When deriving the formulation, IVW = EVW, simply we assumed that there is only nodal forces and that’s why EVW = . Now suppose that there are body forces and surface traction.
Let : body force per unit mass : prescribed boundary force or surface traction per unit area. (here I have used a bar over the traction vector to indicate that it is a prescribed one)
Then which can be written as However, or Therefore, \begin{aligned} EVW&= \int_\Omega \rho\, \delta \mathbf{q}^{\mathsf T} \mathbf{N}^{\mathsf T} \mathbf{b}\, dV+\int_\Gamma \delta\mathbf{q}^{\mathsf T}\mathbf{N}^{\mathsf T}\bar{\mathbf{t}}\, dS+\delta\mathbf{q}^{\mathsf T}\mathbf{P}\\ &=\delta \mathbf{q}^{\mathsf T} \left(\int_\Omega \rho\, \mathbf{N}^{\mathsf T} \mathbf{b}\, dV+\int_\Gamma \mathbf{N}^{\mathsf T}\bar{\mathbf{t}}\, dS+\mathbf{P}\right) \end{aligned}
Equating EVW = IVW gives us where and
Example: If the beam is loaded as in the following figure,

then and the equivalent generalized nodal forces are: where \begin{aligned} N_1(x) &= 1 - \frac{3x^2}{L^2} + \frac{2x^3}{L^3} \\ N_2(x) &= x - \frac{2x^2}{L} + \frac{x^3}{L^2} \\ N_3(x) &= \frac{3x^2}{L^2} - \frac{2x^3}{L^3} \\ N_4(x) &= -\frac{x^2}{L} + \frac{x^3}{L^2} \end{aligned}
