Parametrization of the first segment:
x=t+1, y=4t, z=1 wherein t is on the segment [0,1].
Second segment:
x=2, y=2t+4, z=2t+1 and again t is in [0,1].
Compute the derivatives like this:
First segment: dx=1dt, dy=4dt, dz=0
Second segment:dx=0, dy=2dt, dz=2dt.
Using the above variables, the given integral becomes like this:
![\int_0^1(((t+1)+4t)dt+2(t+1)4dt)+(4\times2dt+2(2t+4)(2t+1)2dt)](https://tex.z-dn.net/?f=%5Cint_0%5E1%28%28%28t%2B1%29%2B4t%29dt%2B2%28t%2B1%294dt%29%2B%284%5Ctimes2dt%2B2%282t%2B4%29%282t%2B1%292dt%29)
The above integral is classical, and simple computation we obtain: