Elasticity/Torsion of rectangular sections

Sample homework problem edit

Torsion of a bar with a rectangular cross section edit

Given:

A cylinder with a rectangular cross sections   under torison.

 
A bar with a rectangular cross section

Show:

Why a function of the form

 

cannot be used as a Prandtl stress function for this cross section.

Solution edit

For compatibility, we need

 

However, for the given  ,

 

which is not constant. Hence, the given function cannot be used as a Prandtl stress function.