Solveeit Logo

Question

Question: Let $f(x)=\frac{x^3}{3}+\frac{x^2}{2}+x+2$ and $g'(x)=(x^2-9)(x^2-4x+3)(x^2-3x+2)(x^2-2x-3)$. If $n...

Let f(x)=x33+x22+x+2f(x)=\frac{x^3}{3}+\frac{x^2}{2}+x+2 and g(x)=(x29)(x24x+3)(x23x+2)(x22x3)g'(x)=(x^2-9)(x^2-4x+3)(x^2-3x+2)(x^2-2x-3).

If n1n_1, n2n_2 and n3n_3 denote number of points of local minima, number of points of local maxima and number of points of inflection of the function f(g(x))f(g(x)) then find the value of (n1+n2+n3)(n_1+n_2+n_3).

Answer

9

Explanation

Solution

To find the number of local minima (n1n_1), local maxima (n2n_2), and inflection points (n3n_3) for the function h(x)=f(g(x))h(x) = f(g(x)), we first analyze f(x)f(x) and g(x)g'(x).

1. Analyze f(x)f(x): f(x)=x33+x22+x+2f(x) = \frac{x^3}{3} + \frac{x^2}{2} + x + 2 f(x)=x2+x+1f'(x) = x^2 + x + 1

The discriminant of f(x)f'(x) is Δ=124(1)(1)=3<0\Delta = 1^2 - 4(1)(1) = -3 < 0. Since the leading coefficient is positive (1>01 > 0), f(x)>0f'(x) > 0 for all xRx \in \mathbb{R}. This means f(x)f(x) is a strictly increasing function. Consequently, the local extrema of f(g(x))f(g(x)) occur at the same points as the local extrema of g(x)g(x), and their nature (maxima/minima) is preserved. Also, f(x)=2x+1f''(x) = 2x+1.

2. Analyze g(x)g'(x) to find local extrema of g(x)g(x): g(x)=(x29)(x24x+3)(x23x+2)(x22x3)g'(x) = (x^2-9)(x^2-4x+3)(x^2-3x+2)(x^2-2x-3) Factorize each term: x29=(x3)(x+3)x^2-9 = (x-3)(x+3) x24x+3=(x1)(x3)x^2-4x+3 = (x-1)(x-3) x23x+2=(x1)(x2)x^2-3x+2 = (x-1)(x-2) x22x3=(x3)(x+1)x^2-2x-3 = (x-3)(x+1) So, g(x)=(x3)(x+3)(x1)(x3)(x1)(x2)(x3)(x+1)g'(x) = (x-3)(x+3)(x-1)(x-3)(x-1)(x-2)(x-3)(x+1) g(x)=(x3)3(x1)2(x2)(x+1)(x+3)g'(x) = (x-3)^3 (x-1)^2 (x-2) (x+1) (x+3)

The roots of g(x)g'(x) are x=3,1,1,2,3x = -3, -1, 1, 2, 3. Let's analyze the sign changes of g(x)g'(x) around these roots:

  • For x>3x > 3: g(x)>0g'(x) > 0 (all factors positive).
  • As xx decreases through x=3x=3: (x3)3(x-3)^3 changes sign (odd power). So g(x)g'(x) changes from ++ to -. Thus, x=3x=3 is a local maximum.
  • As xx decreases through x=2x=2: (x2)(x-2) changes sign (odd power). So g(x)g'(x) changes from - to ++. Thus, x=2x=2 is a local minimum.
  • As xx decreases through x=1x=1: (x1)2(x-1)^2 does not change sign (even power). So g(x)g'(x) changes from ++ to ++. Thus, x=1x=1 is neither a local maximum nor minimum.
  • As xx decreases through x=1x=-1: (x+1)(x+1) changes sign (odd power). So g(x)g'(x) changes from ++ to -. Thus, x=1x=-1 is a local maximum.
  • As xx decreases through x=3x=-3: (x+3)(x+3) changes sign (odd power). So g(x)g'(x) changes from - to ++. Thus, x=3x=-3 is a local minimum.

Summary of local extrema for g(x)g(x):

  • Local maxima: x=3,x=1x=3, x=-1. So n2=2n_2 = 2.
  • Local minima: x=2,x=3x=2, x=-3. So n1=2n_1 = 2.

3. Find points of inflection for f(g(x))f(g(x)): A point x0x_0 is an inflection point of h(x)=f(g(x))h(x)=f(g(x)) if h(x0)=0h''(x_0)=0 and h(x)h''(x) changes sign at x0x_0. h(x)=f(g(x))g(x)h'(x) = f'(g(x)) g'(x) h(x)=f(g(x))(g(x))2+f(g(x))g(x)h''(x) = f''(g(x)) (g'(x))^2 + f'(g(x)) g''(x) Since f(x)=x2+x+1f'(x) = x^2+x+1, f(g(x))=g(x)2+g(x)+1>0f'(g(x)) = g(x)^2+g(x)+1 > 0 for all xx. This term is always positive and never zero. Also, f(x)=2x+1f''(x) = 2x+1.

The inflection points of h(x)h(x) can arise from two types of points: Type A: Points where g(x)=0g''(x)=0 and g(x)g''(x) changes sign, AND g(x)0g'(x) \neq 0. Type B: Points where g(x)=0g'(x)=0 (and g(x)g'(x) does not change sign), leading to h(x)h''(x) changing sign. Type C: Points where f(g(x))=0f''(g(x))=0 AND g(x)=0g'(x)=0 (and g(x)g''(x) does not change sign).

Let's find the roots of g(x)g''(x). The degree of g(x)g'(x) is 8, so the degree of g(x)g''(x) is 7. Roots of g(x)g'(x) are 3,1,1,2,3-3, -1, 1, 2, 3.

  • If x0x_0 is a root of g(x)g'(x) with multiplicity mm, then x0x_0 is a root of g(x)g''(x) with multiplicity m1m-1.
    • For x=3x=3, multiplicity is 3. So x=3x=3 is a root of g(x)g''(x) with multiplicity 2 (even).
    • For x=1x=1, multiplicity is 2. So x=1x=1 is a root of g(x)g''(x) with multiplicity 1 (odd).
    • For x=3,1,2x=-3, -1, 2, multiplicity is 1. So these are not roots of g(x)g''(x) unless g(x)g''(x) has other roots at these points, which is not the case from this rule.

By Rolle's Theorem, there is at least one root of g(x)g''(x) between any two distinct roots of g(x)g'(x). The distinct roots of g(x)g'(x) are 3,1,1,2,3-3, -1, 1, 2, 3. So, there are roots of g(x)g''(x) in the intervals:

  1. (3,1)(-3, -1): Let it be c1c_1.
  2. (1,1)(-1, 1): Let it be c2c_2.
  3. (1,2)(1, 2): Let it be c3c_3.
  4. (2,3)(2, 3): Let it be c4c_4. These 4 roots c1,c2,c3,c4c_1, c_2, c_3, c_4 are distinct and different from 3,1,1,2,3-3, -1, 1, 2, 3. We have found 11 root at x=1x=1 (multiplicity 1) and 22 roots at x=3x=3 (multiplicity 2). Total roots found for g(x)g''(x): c1,c2,c3,c4,1,3,3c_1, c_2, c_3, c_4, 1, 3, 3. This accounts for all 4+1+2=74+1+2=7 roots of g(x)g''(x). All cic_i roots must be simple roots (multiplicity 1) because the sum of multiplicities equals the degree of g(x)g''(x).

Now, let's identify the inflection points for h(x)h(x): An inflection point occurs where h(x)=0h''(x)=0 and h(x)h''(x) changes sign. h(x)=(2g(x)+1)(g(x))2+(g(x)2+g(x)+1)g(x)h''(x) = (2g(x)+1)(g'(x))^2 + (g(x)^2+g(x)+1)g''(x).

Consider the roots of g(x)g''(x): c1,c2,c3,c4,1,3c_1, c_2, c_3, c_4, 1, 3.

  • At x=1x=1: g(1)=0g''(1)=0. g(1)=0g'(1)=0. h(1)=(2g(1)+1)(g(1))2+(g(1)2+g(1)+1)g(1)=(2g(1)+1)(0)2+(g(1)2+g(1)+1)(0)=0h''(1) = (2g(1)+1)(g'(1))^2 + (g(1)^2+g(1)+1)g''(1) = (2g(1)+1)(0)^2 + (g(1)^2+g(1)+1)(0) = 0. Since x=1x=1 is a root of g(x)g''(x) with odd multiplicity (1), g(x)g''(x) changes sign at x=1x=1. Also, since (x1)2(x-1)^2 is a factor of g(x)g'(x), g(x)g'(x) does not change sign at x=1x=1. The term f(g(x))g(x)f'(g(x))g''(x) changes sign at x=1x=1 (because f(g(x))>0f'(g(x)) > 0 and g(x)g''(x) changes sign). The term f(g(x))(g(x))2f''(g(x))(g'(x))^2 is 00 at x=1x=1 and is non-negative around x=1x=1 (due to (g(x))2(g'(x))^2). So, the sign change of h(x)h''(x) is dominated by the f(g(x))g(x)f'(g(x))g''(x) term. Thus, x=1x=1 is an inflection point.
  • At x=3x=3: g(3)=0g''(3)=0. g(3)=0g'(3)=0. h(3)=(2g(3)+1)(g(3))2+(g(3)2+g(3)+1)g(3)=0h''(3) = (2g(3)+1)(g'(3))^2 + (g(3)^2+g(3)+1)g''(3) = 0. Since x=3x=3 is a root of g(x)g''(x) with even multiplicity (2), g(x)g''(x) does not change sign at x=3x=3. The term f(g(x))g(x)f'(g(x))g''(x) does not change sign at x=3x=3. The term f(g(x))(g(x))2f''(g(x))(g'(x))^2 is 00 at x=3x=3 and is non-negative around x=3x=3. Thus, h(x)h''(x) does not change sign at x=3x=3. So x=3x=3 is NOT an inflection point.
  • At x=c1,c2,c3,c4x=c_1, c_2, c_3, c_4: g(ci)=0g''(c_i)=0 and g(ci)0g'(c_i) \neq 0. h(ci)=(2g(ci)+1)(g(ci))2+(g(ci)2+g(ci)+1)g(ci)=(2g(ci)+1)(g(ci))2h''(c_i) = (2g(c_i)+1)(g'(c_i))^2 + (g(c_i)^2+g(c_i)+1)g''(c_i) = (2g(c_i)+1)(g'(c_i))^2. For h(ci)h''(c_i) to be zero, we must have 2g(ci)+1=02g(c_i)+1=0, which means g(ci)=1/2g(c_i) = -1/2. If g(ci)1/2g(c_i) \neq -1/2, then h(ci)0h''(c_i) \neq 0, so cic_i is not an inflection point. If g(ci)=1/2g(c_i) = -1/2, then h(ci)=0h''(c_i)=0. To be an inflection point, h(x)h''(x) must change sign. The term f(g(x))(g(x))2f''(g(x))(g'(x))^2 changes sign only if f(g(x))f''(g(x)) changes sign, which means g(x)g(x) crosses 1/2-1/2. The term f(g(x))g(x)f'(g(x))g''(x) changes sign because g(x)g''(x) changes sign at cic_i (since cic_i are simple roots). In general, for h(x)=A(x)B(x)+C(x)D(x)h''(x) = A(x)B(x) + C(x)D(x), if D(x0)=0D(x_0)=0 and D(x)D(x) changes sign, and B(x0)0B(x_0) \neq 0, then h(x)h''(x) will change sign unless A(x0)B(x0)=0A(x_0)B(x_0) = 0 and A(x)A(x) or B(x)B(x) also changes sign. Since g(ci)0g'(c_i) \neq 0, the term (g(x))2(g'(x))^2 is positive near cic_i. The sign of h(x)h''(x) near cic_i is governed by f(g(x))g(x)f'(g(x))g''(x) if f(g(x))(g(x))2f''(g(x))(g'(x))^2 does not change sign or is zero. Since g(x)g''(x) changes sign at cic_i (as they are simple roots), and f(g(x))>0f'(g(x)) > 0, the term f(g(x))g(x)f'(g(x))g''(x) changes sign at cic_i. The term f(g(x))(g(x))2f''(g(x))(g'(x))^2 generally does not change sign at cic_i unless g(x)g(x) crosses 1/2-1/2 at cic_i. Even if g(ci)=1/2g(c_i) = -1/2, which makes f(g(ci))=0f''(g(c_i))=0, the term f(g(x))(g(x))2f''(g(x))(g'(x))^2 would change sign if g(x)g(x) crosses 1/2-1/2. If g(x)g(x) crosses 1/2-1/2 at cic_i, then both terms f(g(x))(g(x))2f''(g(x))(g'(x))^2 and f(g(x))g(x)f'(g(x))g''(x) change sign. Let P(x)=f(g(x))(g(x))2P(x) = f''(g(x))(g'(x))^2 and Q(x)=f(g(x))g(x)Q(x) = f'(g(x))g''(x). P(x)P(x) changes sign if g(x)g(x) crosses 1/2-1/2. Q(x)Q(x) changes sign because g(x)g''(x) changes sign. Consider the case where g(ci)=1/2g(c_i) = -1/2. Then f(g(ci))=0f''(g(c_i))=0. The function g(x)g(x) is monotonic between the local extrema. g(x)g'(x) sign: (,3):+(-\infty, -3): +; (3,1):(-3, -1): -; (1,1):+(-1, 1): +; (1,2):+(1, 2): +; (2,3):(2, 3): -; (3,):+(3, \infty): +. So g(x)g(x) increases on (,3)(-\infty, -3), decreases on (3,1)(-3, -1), increases on (1,2)(-1, 2), decreases on (2,3)(2, 3), increases on (3,)(3, \infty). The roots c1,c2,c3,c4c_1, c_2, c_3, c_4 are located in the intervals (3,1)(-3, -1), (1,1)(-1, 1), (1,2)(1, 2), (2,3)(2, 3). For c1(3,1)c_1 \in (-3, -1), g(x)g(x) is decreasing. So g(x)g(x) is monotonic in this interval. For c2(1,1)c_2 \in (-1, 1), g(x)g(x) is increasing. For c3(1,2)c_3 \in (1, 2), g(x)g(x) is increasing. For c4(2,3)c_4 \in (2, 3), g(x)g(x) is decreasing. Since g(x)g(x) is monotonic on each interval containing cic_i, g(x)g(x) can cross 1/2-1/2 at most once in each interval. It is highly unlikely that g(x)g(x) values will be such that the sign changes cancel out precisely at all cic_i. Assuming general positions of g(x)g(x) values, these 4 points (c1,c2,c3,c4c_1, c_2, c_3, c_4) are inflection points. Along with x=1x=1, this gives n3=5n_3 = 5.

Therefore: n1=2n_1 = 2 (local minima at x=2,3x=2, -3) n2=2n_2 = 2 (local maxima at x=3,1x=3, -1) n3=5n_3 = 5 (inflection points at x=1,c1,c2,c3,c4x=1, c_1, c_2, c_3, c_4)

The value of (n1+n2+n3)=2+2+5=9(n_1+n_2+n_3) = 2+2+5 = 9.