SOLVER7 Study. Nothing Else.
Chapter 7 Examples Q28

Evaluate \(\int^2_{-1}\left|x^3-x\right|dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine a road that sometimes goes uphill and sometimes goes downhill. The absolute value sign is like saying we only care about the distance travelled, not the direction. So downhill distance counts just as much as uphill. To find the total, we split the journey at the flat points where the road is level. On each piece, we handle the math correctly based on whether we are going up or down. Adding all the pieces together gives the total distance, which works out to \( \frac{11}{4} \).

Answer: \[ \int_{-1}^{2} |x^3 - x|\,dx = \frac{11}{4} \]

📖 Definite Integral of an Absolute Value Function

Detailed Explanation

When we integrate an absolute value function like \( |x^3 - x| \), we cannot just integrate directly, because \( |f(x)| \) changes its formula depending on whether \( f(x) \) is positive or negative. The key idea is to first find where the inside expression \( x^3 - x \) is zero, then determine its sign on each sub-interval. On intervals where \( x^3 - x \ge 0 \), we have \( |x^3 - x| = x^3 - x \). On intervals where \( x^3 - x < 0 \), we have \( |x^3 - x| = -(x^3 - x) \). We then split the definite integral at these zeros and integrate each piece with the correct sign, using the additivity property of definite integrals.

Formula Used

\[ \int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx \] and \[ \int x^n \, dx = \frac{x^{n+1}}{n+1} + C \]

Solution

  1. Step 1: Factor the inside expression to find where it changes sign. \[ x^3 - x = x(x^2 - 1) = x(x-1)(x+1) \] So the zeros are \( x = -1, \, 0, \, 1 \). These points lie within our interval \( [-1, 2] \).
  2. Step 2: Determine the sign of \( x^3 - x \) on each sub-interval. On \( (-1, 0) \), test \( x = -0.5 \): \[ (-0.5)^3 - (-0.5) = -0.125 + 0.5 = 0.375 > 0 \] On \( (0, 1) \), test \( x = 0.5 \): \[ (0.5)^3 - 0.5 = 0.125 - 0.5 = -0.375 < 0 \] On \( (1, 2) \), test \( x = 1.5 \): \[ (1.5)^3 - 1.5 = 3.375 - 1.5 = 1.875 > 0 \]
  3. Step 3: Rewrite the integral by removing the absolute value on each piece using the signs found. \[ \int_{-1}^{2} |x^3 - x|\,dx = \int_{-1}^{0}(x^3 - x)\,dx - \int_{0}^{1}(x^3 - x)\,dx + \int_{1}^{2}(x^3 - x)\,dx \] The middle integral gets a negative sign because \( x^3 - x \) is negative there.
  4. Step 4: Find the antiderivative once. \[ \int (x^3 - x)\,dx = \frac{x^4}{4} - \frac{x^2}{2} \] We will evaluate this expression at the limits for each piece.
  5. Step 5: Evaluate the first piece on \( [-1, 0] \). \[ \left[ \frac{x^4}{4} - \frac{x^2}{2} \right]_{-1}^{0} = \left(0 - 0\right) - \left(\frac{1}{4} - \frac{1}{2}\right) = -\left(-\frac{1}{4}\right) = \frac{1}{4} \]
  6. Step 6: Evaluate the second piece on \( [0, 1] \). \[ \left[ \frac{x^4}{4} - \frac{x^2}{2} \right]_{0}^{1} = \left(\frac{1}{4} - \frac{1}{2}\right) - 0 = -\frac{1}{4} \] Since this piece carries a minus sign in Step 3, its contribution is \[ -\left(-\frac{1}{4}\right) = \frac{1}{4} \]
  7. Step 7: Evaluate the third piece on \( [1, 2] \). \[ \left[ \frac{x^4}{4} - \frac{x^2}{2} \right]_{1}^{2} = \left(\frac{16}{4} - \frac{4}{2}\right) - \left(\frac{1}{4} - \frac{1}{2}\right) = (4 - 2) - \left(-\frac{1}{4}\right) = 2 + \frac{1}{4} = \frac{9}{4} \]
  8. Step 8: Add all three contributions together. \[ \frac{1}{4} + \frac{1}{4} + \frac{9}{4} = \frac{11}{4} \]

Final Answer

\[ \int_{-1}^{2} |x^3 - x|\,dx = \frac{11}{4} \]

Common Mistake

A very common mistake is to integrate \( x^3 - x \) directly over \( [-1, 2] \) without splitting at the zeros \( x = -1, 0, 1 \). Ignoring the absolute value lets the negative part of the function cancel out the positive part, giving a wrong (too small) answer instead of the true total value.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Factor the inner expression to locate sign-change points: Factor \( x^3 - x \) completely: \[ x^3 - x = x(x^2 - 1) = x(x-1)(x+1) \] Setting each factor to zero gives roots at \( x = -1 \), \( x = 0 \), and \( x = 1 \). — Reason: These roots are the only points where the expression can switch between positive and negative values, so they must be used as boundaries for splitting the integral over \( [-1, 2] \).
  2. Step 2: Determine the sign of \( x^3 - x \) on each sub-interval: Test a value in each sub-interval formed by the roots. On \( (-1, 0) \), test \( x = -0.5 \): \[ (-0.5)^3 - (-0.5) = -0.125 + 0.5 = 0.375 > 0 \] On \( (0, 1) \), test \( x = 0.5 \): \[ (0.5)^3 - 0.5 = 0.125 - 0.5 = -0.375 < 0 \] On \( (1, 2) \), test \( x = 1.5 \): \[ (1.5)^3 - 1.5 = 3.375 - 1.5 = 1.875 > 0 \] — Reason: Knowing the sign on each piece tells us whether \( |x^3 - x| \) equals \( x^3 - x \) or \( -(x^3 - x) \) there.
  3. Step 3: Remove the absolute value using the sign information: Replace \( |x^3 - x| \) on each interval: on \( [-1, 0] \) it is positive so \( |x^3 - x| = x^3 - x \); on \( [0, 1] \) it is negative so \( |x^3 - x| = -(x^3 - x) \); on \( [1, 2] \) it is positive so \( |x^3 - x| = x^3 - x \). Therefore: \[ \int_{-1}^{2} |x^3 - x|\,dx = \int_{-1}^{0}(x^3 - x)\,dx + \int_{0}^{1}(-(x^3 - x))\,dx + \int_{1}^{2}(x^3 - x)\,dx \] — Reason: Splitting the integral this way removes the absolute value brackets, making each piece directly integrable using the power rule.
  4. Step 4: Evaluate the first piece over \( [-1, 0] \): Compute the antiderivative and apply the limits: \[ \int_{-1}^{0}(x^3 - x)\,dx = \left[\frac{x^4}{4} - \frac{x^2}{2}\right]_{-1}^{0} \] At \( x = 0 \): the expression equals \( 0 \). At \( x = -1 \): \[ \frac{(-1)^4}{4} - \frac{(-1)^2}{2} = \frac{1}{4} - \frac{1}{2} = -\frac{1}{4} \] So the first piece equals \( 0 - \left(-\frac{1}{4}\right) = \frac{1}{4} \). — Reason: Standard evaluation of a definite integral by substituting the upper and lower limits into the antiderivative.
  5. Step 5: Evaluate the second piece over \( [0, 1] \): Compute: \[ \int_{0}^{1}(-(x^3 - x))\,dx = \left[-\frac{x^4}{4} + \frac{x^2}{2}\right]_{0}^{1} \] At \( x = 1 \): \[ -\frac{1}{4} + \frac{1}{2} = \frac{1}{4} \] At \( x = 0 \): the expression equals \( 0 \). So the second piece equals \( \frac{1}{4} - 0 = \frac{1}{4} \). — Reason: The negative sign in front of the bracket flips the signs of both terms before evaluating the limits.
  6. Step 6: Evaluate the third piece over \( [1, 2] \): Compute: \[ \int_{1}^{2}(x^3 - x)\,dx = \left[\frac{x^4}{4} - \frac{x^2}{2}\right]_{1}^{2} \] At \( x = 2 \): \[ \frac{16}{4} - \frac{4}{2} = 4 - 2 = 2 \] At \( x = 1 \): \[ \frac{1}{4} - \frac{1}{2} = -\frac{1}{4} \] So the third piece equals \( 2 - \left(-\frac{1}{4}\right) = \frac{9}{4} \). — Reason: Substituting both limits and subtracting gives the net signed area for this sub-interval.
  7. Step 7: Add all three pieces to get the final answer: Sum the three results: \[ \frac{1}{4} + \frac{1}{4} + \frac{9}{4} = \frac{11}{4} \] — Reason: The total value of the integral is the sum of the contributions from each sub-interval, since the integrand was non-negative on every piece after removing the absolute value.

Final Answer

\[ \int_{-1}^{2} |x^3 - x|\,dx = \frac{11}{4} \]

Common Mistake

One common mistake: Forgetting to negate \( x^3 - x \) on the interval \( [0, 1] \) where it is negative — students often integrate \( x^3 - x \) directly across the entire interval \( [-1, 2] \) without splitting, which causes cancellation of areas and gives an incorrect result.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Factor: \ \( x^3 - x = x(x-1)(x+1) = 0 \) at \( x = -1,\, 0,\, 1 \). Sign analysis: positive on \( (-1,0) \), negative on \( (0,1) \), positive on \( (1,2) \).
  2. Step 2: Split: \[ \int_{-1}^{2} |x^3 - x|\,dx = \int_{-1}^{0}(x^3 - x)\,dx - \int_{0}^{1}(x^3 - x)\,dx + \int_{1}^{2}(x^3 - x)\,dx \]
  3. Step 3: Evaluate each piece using \( \int x^n\,dx = \frac{x^{n+1}}{n+1} + C \): \[ \left[\frac{x^4}{4} - \frac{x^2}{2}\right]_{-1}^{0} - \left[\frac{x^4}{4} - \frac{x^2}{2}\right]_{0}^{1} + \left[\frac{x^4}{4} - \frac{x^2}{2}\right]_{1}^{2} = \frac{1}{4} + \frac{1}{4} + \frac{9}{4} = \frac{11}{4} \]

Answer: \[ \int_{-1}^{2} |x^3 - x|\,dx = \frac{11}{4} \]

➕ More Examples

More Examples

Example 1

Question: Evaluate \[ \int_{-2}^{3} |x^2 - x - 2| \, dx \]

Solution: Step 1: Factor the expression inside the absolute value. \[ x^2 - x - 2 = (x-2)(x+1) \] So \( x^2 - x - 2 = 0 \) at \( x = -1 \) and \( x = 2 \). Step 2: Determine the sign of \( (x-2)(x+1) \) on each sub-interval within \( [-2, 3] \). On \( (-2, -1) \): both factors negative, so product is positive. On \( (-1, 2) \): \( (x+1) > 0 \) and \( (x-2) < 0 \), so product is negative. On \( (2, 3) \): both factors positive, so product is positive. Step 3: Write the absolute value piecewise. \[ |x^2 - x - 2| = \begin{cases} x^2 - x - 2 & x \in [-2, -1] \\ -(x^2 - x - 2) & x \in [-1, 2] \\ x^2 - x - 2 & x \in [2, 3] \end{cases} \] Step 4: Split the integral. \[ I = \int_{-2}^{-1} (x^2 - x - 2) \, dx + \int_{-1}^{2} -(x^2 - x - 2) \, dx + \int_{2}^{3} (x^2 - x - 2) \, dx \] Step 5: Evaluate the first integral \( I_1 \). \[ I_1 = \left[ \frac{x^3}{3} - \frac{x^2}{2} - 2x \right]_{-2}^{-1} \] At \( x = -1 \): \[ \frac{-1}{3} - \frac{1}{2} + 2 = \frac{-2 - 3 + 12}{6} = \frac{7}{6} \] At \( x = -2 \): \[ \frac{-8}{3} - \frac{4}{2} + 4 = \frac{-8}{3} - 2 + 4 = \frac{-8}{3} + 2 = \frac{-2}{3} \] So \( I_1 = \frac{7}{6} - \left(\frac{-2}{3}\right) = \frac{7}{6} + \frac{4}{6} = \frac{11}{6} \). Step 6: Evaluate the second integral \( I_2 \). \[ I_2 = \int_{-1}^{2} (-x^2 + x + 2) \, dx = \left[ -\frac{x^3}{3} + \frac{x^2}{2} + 2x \right]_{-1}^{2} \] At \( x = 2 \): \[ -\frac{8}{3} + 2 + 4 = -\frac{8}{3} + 6 = \frac{10}{3} \] At \( x = -1 \): \[ \frac{1}{3} + \frac{1}{2} - 2 = \frac{2 + 3 - 12}{6} = \frac{-7}{6} \] So \( I_2 = \frac{10}{3} - \frac{-7}{6} = \frac{20}{6} + \frac{7}{6} = \frac{27}{6} = \frac{9}{2} \). Step 7: Evaluate the third integral \( I_3 \). \[ I_3 = \left[ \frac{x^3}{3} - \frac{x^2}{2} - 2x \right]_{2}^{3} \] At \( x = 3 \): \[ 9 - \frac{9}{2} - 6 = 3 - \frac{9}{2} = \frac{-3}{2} \] At \( x = 2 \): \[ \frac{8}{3} - 2 - 4 = \frac{8}{3} - 6 = \frac{-10}{3} \] So \( I_3 = \frac{-3}{2} - \frac{-10}{3} = \frac{-9}{6} + \frac{20}{6} = \frac{11}{6} \). Step 8: Add all parts. \[ I = \frac{11}{6} + \frac{9}{2} + \frac{11}{6} = \frac{11}{6} + \frac{27}{6} + \frac{11}{6} = \frac{49}{6} \]

Answer: \( \dfrac{49}{6} \)

Example 2

Question: Evaluate \[ \int_{0}^{3} |x^2 - 4x + 3| \, dx \]

Solution: Step 1: Factor the expression inside the absolute value. \[ x^2 - 4x + 3 = (x-1)(x-3) \] So \( x^2 - 4x + 3 = 0 \) at \( x = 1 \) and \( x = 3 \). Step 2: Determine the sign of \( (x-1)(x-3) \) on each sub-interval within \( [0, 3] \). On \( (0, 1) \): \( (x-1) < 0 \) and \( (x-3) < 0 \), product is positive. On \( (1, 3) \): \( (x-1) > 0 \) and \( (x-3) < 0 \), product is negative. Step 3: Write the absolute value piecewise. \[ |x^2 - 4x + 3| = \begin{cases} x^2 - 4x + 3 & x \in [0, 1] \\ -(x^2 - 4x + 3) & x \in [1, 3] \end{cases} \] Step 4: Split the integral. \[ I = \int_{0}^{1} (x^2 - 4x + 3) \, dx + \int_{1}^{3} -(x^2 - 4x + 3) \, dx \] Step 5: Evaluate the first integral \( I_1 \). \[ I_1 = \left[ \frac{x^3}{3} - 2x^2 + 3x \right]_{0}^{1} \] At \( x = 1 \): \[ \frac{1}{3} - 2 + 3 = \frac{1}{3} + 1 = \frac{4}{3} \] At \( x = 0 \): \( 0 \). So \( I_1 = \frac{4}{3} \). Step 6: Evaluate the second integral \( I_2 \). \[ I_2 = \int_{1}^{3} (-x^2 + 4x - 3) \, dx = \left[ -\frac{x^3}{3} + 2x^2 - 3x \right]_{1}^{3} \] At \( x = 3 \): \[ -9 + 18 - 9 = 0 \] At \( x = 1 \): \[ -\frac{1}{3} + 2 - 3 = -\frac{1}{3} - 1 = -\frac{4}{3} \] So \( I_2 = 0 - \left(-\frac{4}{3}\right) = \frac{4}{3} \). Step 7: Add all parts. \[ I = I_1 + I_2 = \frac{4}{3} + \frac{4}{3} = \frac{8}{3} \]

Answer: \( \dfrac{8}{3} \)

🎯 Try a Similar Question

Try a Similar Question

Question: Evaluate \( \int_{-1}^{3} |x^3 - 4x| \, dx \).

Solution

  1. Step 1: Find the zeros of the expression inside the absolute value: We need to find where \( x^3 - 4x = 0 \) on the interval \([-1, 3]\). Factorise: \[ x^3 - 4x = x(x^2 - 4) = x(x-2)(x+2) \] So the zeros are \( x = -2,\; 0,\; 2 \). On \([-1, 3]\), the relevant zeros are \( x = 0 \) and \( x = 2 \).
  2. Step 2: Determine the sign of \( x^3 - 4x \) on each sub-interval: The sub-intervals on \([-1, 3]\) created by the zeros \( x = 0 \) and \( x = 2 \) are: \([-1, 0]\), \([0, 2]\), and \([2, 3]\). Test \( x = -0.5 \): \( (-0.5)((-0.5)-2)((-0.5)+2) = (-0.5)(-2.5)(1.5) = 1.875 > 0 \). So \( x^3 - 4x > 0 \) on \((-1, 0)\). Test \( x = 1 \): \( 1(1-2)(1+2) = 1(-1)(3) = -3 < 0 \). So \( x^3 - 4x < 0 \) on \((0, 2)\). Test \( x = 2.5 \): \( 2.5(2.5-2)(2.5+2) = 2.5(0.5)(4.5) = 5.625 > 0 \). So \( x^3 - 4x > 0 \) on \((2, 3)\).
  3. Step 3: Split the integral using the sign information: \[ \int_{-1}^{3} |x^3 - 4x| \, dx = \int_{-1}^{0} (x^3 - 4x) \, dx + \int_{0}^{2} -(x^3 - 4x) \, dx + \int_{2}^{3} (x^3 - 4x) \, dx \]
  4. Step 4: Compute \( I_1 = \int_{-1}^{0} (x^3 - 4x) \, dx \): \[ I_1 = \left[ \frac{x^4}{4} - 2x^2 \right]_{-1}^{0} \] Evaluating at the bounds: \[ I_1 = \left(0 - 0\right) - \left(\frac{1}{4} - 2\right) = 0 - \left(-\frac{7}{4}\right) = \frac{7}{4} \]
  5. Step 5: Compute \( I_2 = \int_{0}^{2} -(x^3 - 4x) \, dx \): \[ I_2 = \int_{0}^{2} (4x - x^3) \, dx = \left[ 2x^2 - \frac{x^4}{4} \right]_{0}^{2} \] Evaluating: \[ I_2 = \left(2(4) - \frac{16}{4}\right) - (0) = (8 - 4) = 4 \]
  6. Step 6: Compute \( I_3 = \int_{2}^{3} (x^3 - 4x) \, dx \): \[ I_3 = \left[ \frac{x^4}{4} - 2x^2 \right]_{2}^{3} \] Evaluating at the bounds: At \( x = 3 \): \( \frac{81}{4} - 18 = \frac{81}{4} - \frac{72}{4} = \frac{9}{4} \). At \( x = 2 \): \( \frac{16}{4} - 8 = 4 - 8 = -4 \). So \[ I_3 = \frac{9}{4} - (-4) = \frac{9}{4} + 4 = \frac{9}{4} + \frac{16}{4} = \frac{25}{4} \]
  7. Step 7: Add the three parts: \[ \int_{-1}^{3} |x^3 - 4x| \, dx = I_1 + I_2 + I_3 = \frac{7}{4} + 4 + \frac{25}{4} \] Converting 4 to quarters: \[ = \frac{7}{4} + \frac{16}{4} + \frac{25}{4} = \frac{48}{4} = 12 \]

Answer: \[ \int_{-1}^{3} |x^3 - 4x| \, dx = 12 \]

Everything you get with Solver7

More questions in Integrals

Chapter 7 Examples Q1(i) 65/2/2 2023 / Section A Q1 Chapter 7 Examples Q1(ii) 65/2/1 2022 / Section A Q2(a) Chapter 7 Examples Q1(iii) 65/2/1 2022 / Section A Q2(b) Chapter 7 Examples Q2(i) Chapter 7 Examples Q2(ii) 65/1/1 2023 / Section A Q5 Chapter 7 Examples Q2(iii) 65/1/1 2023 / Section A Q6 65/1/1 2024 / Section A Q6 65/2/1 2024 / Section A Q6 65/3/1 2023 / Section A Q6 65/3/1 2024 / Section A Q6 Chapter 7 Examples Q3(i) 65/3/1 2023 / Section A Q7 Chapter 7 Examples Q3(ii) 65(B) 2026 / Section A Q8 65/1/1 2026 / Section A Q8 65/4/1 2022 / Section A Q6 65/4/1 2023 / Section A Q8 65/4/2 2024 / Section A Q8 Chapter 7 Examples Q3(iii) 65(B) 2026 / Section A Q9 65/1/1 2026 / Section A Q9 65/2/1 2022 / Section B Q8(a) 65/2/2 2023 / Section A Q9 65/4/1 2022 / Section B Q7 65/4/1 2023 / Section A Q9 65/4/1 2026 / Section A Q9 Chapter 7 Examples Q4 65/2/1 2022 / Section B Q8(b) 65/3/1 2026 / Section A Q10 65/4/1 2022 / Section B Q8(a) 65/4/1 2026 / Section A Q10 65/5/1 2026 / Section A Q10 Chapter 7 Examples Q5(i) 65/3/1 2026 / Section A Q11 65/4/1 2022 / Section B Q8(b) 65/5/1 2026 / Section A Q11 Chapter 7 Examples Q5(ii) 65/2/3 2026 / Section A Q12 Chapter 7 Examples Q5(iii) Chapter 7 Examples Q5(iv) Chapter 7 Examples Q6(i) 65/2/1 2022 / Section C Q12 Chapter 7 Examples Q6(ii) Chapter 7 Examples Q6(iii) Chapter 7 Examples Q7(i) 65/4/1 2022 / Section C Q13 Chapter 7 Examples Q7(ii) Chapter 7 Examples Q7(iii) Chapter 7 Examples Q8(i) Chapter 7 Examples Q8(ii) Chapter 7 Examples Q9(i) Chapter 7 Examples Q9(ii) 65/1/1 2024 / Section B Q23(a) 65/3/1 2024 / Section B Q23(a) Chapter 7 Examples Q9(iii)