Lets say I have a beam with a cross section made of half aluminium and half steel glued together. I would like to know how to calculate the deflection of this beam due to bending moment but I am unsure of how to use the virtual work equation to accomplish this. Should I use a different equation instead? The problem is that EI is constant along the length of the beam but not along the cross section of the beam so I dont know how to integrate. How would I go about integrating?