Balance two bending moments with one stress plane
Consider a straight, homogeneous prismatic beam in small-deflection Euler–Bernoulli bending. Coordinates \(x,y\) lie in the section, with their origin at the area centroid. Plane sections remain plane and zero axial resultant eliminates the constant part of the stress. Write \(\sigma=a x+b y\). Fix signs by defining \(M_x=\int y\sigma\,dA\) and \(M_y=-\int x\sigma\,dA\). These signs follow from the cross product of position with axial traction. Then
Rotating coordinates to an orthogonal eigenbasis diagonalises this matrix. Its positive determinant is the Cauchy–Schwarz inequality applied to the coordinates. Under pure \(M_x\), \(a/b=-I_{xy}/I_{yy}\), so the neutral line \(y=-(a/b)x\) generally slopes. A moment aligned with a principal axis recovers ordinary uniaxial bending.
Build the section before inverting the moments
Use an 80 by 10 mm horizontal rectangle and a 10 by 60 mm upright above its left edge. The centroid measured from the lower left corner is (25,20) mm. Translating each rectangle to the centroid gives \(I_{xx}=606667\), \(I_{yy}=851667\), and \(I_{xy}=-420000\) in mm⁴. For instance, the horizontal part contributes \(800(40-25)(5-20)=-180000\) mm⁴ to the product. Adding independent values of \(bh^3/12\) would omit these offsets.
Take \(M_x=1\) kN m and \(M_y=0\). With moments in N mm, the result is \(a=1.2343\) and \(b=2.5029\) MPa/mm. The neutral line has slope −0.4932. At the horizontal flange corner (80,10) the predicted longitudinal tension is 42.86 MPa. The two principal area moments are approximately 291667 and 1166667 mm⁴. These are useful geometry checks because a rigid rotation cannot change them.
If the tip load misses the shear centre
An eccentric transverse force can supply both a bending moment and a torque. The formula above predicts longitudinal bending stress in a section away from load introduction. A separate twist measurement or a loading couple with no net transverse force helps isolate the source of a sideways signal.

Interactive calculation · Turn the bending couple on an asymmetric section
Change Mx and My independently. The stress plane, perimeter stresses and spatially coloured beam faces are recomputed from the coupled area-moment matrix. A pure moment about a geometric axis need not bend about that axis.
Exercises on signed strain readings
A strain gauge is glued at (0,0) mm. What signal should it give for steel with \(E=200\) GPa?
Worked solution
Its stress is \(1.2343(-25)+2.5029(-20)=-80.9\) MPa. Its axial strain is −405 microstrain. A wrong choice of corner origin would falsely predict zero.
Can two axial gauges recover both bending moments?
Worked solution
Write their two rows as \((x_i,y_i)\) relative to the centroid and solve for \(a,b\) from \(E\epsilon_i\). Recovery requires \(x_1 y_2-x_2 y_1\ne0\). Two gauges on the same centroidal line give proportional information even if they lie on opposite sides of the section.
Further reading · Hibbeler, Mechanics of Materials, 11th ed., Section 6.5 on unsymmetric bending.
OneSimulation notebook · solved spatial stresses, code and output
The code solves the illustrated stress model with OneSimulation and checks its equilibrium or eigensystem. The figure is the output of that code.
"""Resolve a biaxial moment with OneSimulation and inspect a 3D prismatic L section."""
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
from onesim.numerics.linear.matrices.dense_linear_algebra import solve_dense, symmetric_eigensystem
# mm, N, MPa. Two nonoverlapping rectangles; moments follow the chapter signs.
rectangles = [(800., 40., 5., 80., 10.), (600., 5., 40., 10., 60.)]
area = sum(row[0] for row in rectangles)
centroid = np.array([sum(A*x for A,x,y,w,h in rectangles),
sum(A*y for A,x,y,w,h in rectangles)])/area
Ixx = sum(A*h*h/12+A*(y-centroid[1])**2 for A,x,y,w,h in rectangles)
Iyy = sum(A*w*w/12+A*(x-centroid[0])**2 for A,x,y,w,h in rectangles)
Ixy = sum(A*(x-centroid[0])*(y-centroid[1]) for A,x,y,w,h in rectangles)
matrix = np.array([[Iyy,Ixy],[Ixy,Ixx]])
Mx, My = 1e6, 0.0 # N mm; change these two inputs as in the live view
coefficients = solve_dense(matrix,np.array([-My,Mx]))
values, axes = symmetric_eigensystem(matrix)
assert np.allclose(matrix@coefficients,[-My,Mx])
assert np.allclose(axes@np.diag(values)@axes.T,matrix)
outline = np.array([[0,0],[80,0],[80,10],[10,10],[10,70],[0,70],[0,0]],dtype=float)
stress = (outline-centroid)@coefficients
print('Centroid [mm]:',centroid)
print('Stress-plane coefficients [MPa/mm]:',np.round(coefficients,6))
print('Principal area moments [mm^4]:',np.round(values,3))
print('Stress at (80,10) mm [MPa]:',round(stress[2],6))
fig = plt.figure(figsize=(9,4.2),layout='constrained')
ax = fig.add_subplot(121,projection='3d')
faces=[];colors=[]
scale=max(abs(stress))
for i in range(len(outline)-1):
p,q=outline[i:i+2]
faces.append([[*p,0],[*q,0],[*q,250],[*p,250]])
colors.append(plt.cm.coolwarm(.5+.5*(stress[i]+stress[i+1])/2/scale))
ax.add_collection3d(Poly3DCollection(faces,facecolors=colors,edgecolors='0.3',linewidths=.5))
ax.set(xlim=(0,80),ylim=(0,70),zlim=(0,250),xlabel='Section x (mm)',ylabel='Section y (mm)',zlabel='Beam axis (mm)',title='Undeformed L section; signed axial stress')
ax.set(xticks=[0,40,80], yticks=[0,35,70], zticks=[0,125,250])
ax.tick_params(axis='x', pad=1)
ax.tick_params(axis='y', pad=8)
ax.tick_params(axis='z', pad=1)
ax.zaxis.labelpad = 16
ax.yaxis.labelpad = 18
ax.set_box_aspect((80,70,250))
ax2=fig.add_subplot(122)
arc=np.r_[0,np.cumsum(np.linalg.norm(np.diff(outline,axis=0),axis=1))]
ax2.plot(arc,stress,'o-')
ax2.axhline(0,color='0.5',lw=.8)
ax2.set(xlabel='Distance around perimeter (mm)',ylabel='Longitudinal stress (MPa)',title='One coupled stress plane')
fig.savefig('complete-engineering-unsymmetric3d.png',dpi=170)
plt.show()

Download the executed editable notebook · Download the Python model