total extension= sum of all little extensions
a little extension to which an element at x from the bottom is subjected to is
∂(change in length)= L(x)∂x / E* A(x) by hooks law
so
all we need to do is sum up all the ∂(change in length)
find L(x) = load at x distance from the lower part, by considering a free body diagram
= ∫ A(x) *(density)*dx from 0 to x
find A(x) which is Area as a function of x
= r(x) ^2 * pi, find r(x) using the linear variation relation
and integrate L(x)∂x / E* A(x)
tell me if you still have problems.