Say, you need to find the area moment of inertia of the following irregular section (ABCDEF) with respect to axis X-X. In the following five steps you will see how to proceed with such problems:

click to enlarge
Step-1
Take a small area (pqrs) of depth dy at a distance y from the XX axis. Shown in pink color hatched area in the figure above.
Step-2
The small area pqrs can be expressed as:
Area = Width x Depth
dA = [y*{(b-a)/ (d/2)} + a]*dy……….eqn1.1
Step-3
The general equation for calculating area moment of inertia about XX axis is:
Ixx =2*[0d/2 ∫ y²dA]……………...……eqn1.2
Step-4
Using eqn1.1 & eqn1.2 we can write:
Ixx =2*[0d/2 ∫ y² [y*{(b-a)/ (d/2)} + a] dy]
= (d^3/48)*(3b-7a)
Step-5
You just derived the formula for calculating area moment of inertia for the section ABCDEF. You can obtain the area moment of inertia value by putting the value of a, b and d.