STEP-BY-STEP ANSWER:
Step 1: Parametrize the line segment by choosing r(t) = t i + t j + t k, where t runs from 0 to 1.
Step 2: Substitute the parametrization into the function, so that f(r(t)) becomes f(t, t, t) = t - 3t^2 + t.
Step 3: Compute the derivative of r(t) to determine ds. Here, r'(t) = i + j + k, and thus |r'(t)| = sqrt(1^2+1^2+1^2) = √3.
Step 4: Write the line integral as ∫[0 to 1] f(r(t)) |r'(t)| dt = √3 ∫[0 to 1] (2t - 3t^2) dt.
Step 5: Evaluate the integral ∫[0 to 1](2t - 3t^2) dt = [t^2 - t^3] evaluated from 0 to 1 = (1 - 1) - (0 - 0) = 0.
Final Answer: The line integral is 0.