The Castigliano theorem of solid mechanics is normally used to obtain displacements at specific points on the surface of an elastic body. In this work it will be shown that by using fictitious forces placed in general positions the general solution for the displacement may be found without the need to solve a differential equation. The work also uses the technique to obtain an unusual derivation of the Euler-Bernoulli equation.