Y = (1 + x) / (1 + x^2)Â
y'Â
= [(1 + x^2)(1) - (1 + x)(2x)] / (1 + x^2)^2Â
= [1 + x^2 - 2x - 2x^2] / (1 + x^2)^2Â
= [-x^2 - 2x + 1] / (1 + x^2)^2Â
y''Â
= [(1 + x^2)^2 * (-2x - 2) - (-x^2 - 2x + 1)(2)(1 + x^2)(2x)] / (1 + x^2)^4Â
= [(1 + x^2)(-2x - 2) - (4x)(-x^2 - 2x + 1)] / (1 + x^2)^3Â
= [(-2x - 2x^3 - 2 - 2x^2) - (-4x^3 - 8x^2 + 4x)] / (1 + x^2)^3Â
= [-2x - 2x^3 - 2 - 2x^2 + 4x^3 + 8x^2 - 4x] / (1 + x^2)^3Â
= [2x^3 + 6x^2 - 6x - 2] / (1 + x^2)^3Â
Setting y'' to zero, we have:Â
y'' = 0Â
[2x^3 + 6x^2 - 6x - 2] / (1 + x^2)^3 = 0Â
(2x^3 + 6x^2 - 6x - 2) = 0Â
Using trial and error, you will realise that x = 1 is a root.Â
This means (x - 1) is a factor.Â
Dividing 2x^3 + 6x^2 - 6x - 2 by x - 1 using long division, you will have 2x^2 + 8x + 2.Â
2x^2 + 8x + 2Â
= 2(x^2 + 4x) + 2Â
= 2(x + 2)^2 - 2(2^2) + 2Â
= 2(x + 2)^2 - 8 + 2Â
= 2(x + 2)^2 - 6Â
Setting 2x^2 + 8x + 2 to zero, we have:Â
2(x + 2)^2 - 6 = 0Â
2(x + 2)^2 = 6Â
(x + 2)^2 = 3Â
x + 2 = sqrt(3) or = -sqrt(3)Â
x = -2 + sqrt(3) or x = -2 - sqrt(3)Â
Note that -2 - sqrt(3) < -2 + sqrt(3) < 1Â
We will choose random values belonging to each interval and test them out.Â
-5 < -2 - sqrt(3) < -2 < -2 + sqrt(3)Â
f''(-5) = [2(-5)^3 + 6(-5)^2 - 6(-5) - 2] / (1 + (-5)^2)^3 = -9/2197 < 0Â
f''(-2) = [2(-2)^3 + 6(-2)^2 - 6(-2) - 2] / (1 + (-2)^2)^3 = 18/125 > 0Â
Note that one value is positive and the other is negative.Â
Thus, x = -2 - sqrt(3) is an inflection point.Â
-2 - sqrt(3) < -2 < -2 + sqrt(3) < 0 < 1Â
f''(-2) = [2(-2)^3 + 6(-2)^2 - 6(-2) - 2] / (1 + (-2)^2)^3 = 18/125 > 0Â
f''(0) = [2(0)^3 + 6(0)^2 - 6(0) - 2] / (1 + (0)^2)^3 = -2 < 0Â
Note that one value is positive and the other is negative.Â
Thus, x = -2 + sqrt(3) is also an inflection point.Â
-2 + sqrt(3) < 0 < 1 < 2Â
f''(0) = [2(0)^3 + 6(0)^2 - 6(0) - 2] / (1 + (0)^2)^3 = -2 < 0Â
f''(2) = [2(2)^3 + 6(2)^2 - 6(2) - 2] / (1 + (2)^2)^3 = 26/125 > 0Â
Note that one value is positive and the other is negative.Â
Thus, x = 1 is an inflection point.Â
Hence, we have three inflection points in total.Â
When x = -2 - sqrt(3), we have:Â
yÂ
= (1 - 2 - sqrt(3)) / (1 + (-2 - sqrt(3))^2)Â
= (-1 - sqrt(3)) / (1 + 4 + 4sqrt(3) + 3)Â
= (-1 - sqrt(3)) / (8 + 4sqrt(3))Â
When x = -2 + sqrt(3), we have:Â
yÂ
= (1 - 2 + sqrt(3)) / (1 + (-2 + sqrt(3))^2)Â
= (-1 + sqrt(3)) / (1 + 4 - 4sqrt(3) + 3)Â
= (-1 + sqrt(3)) / (8 - 4sqrt(3))Â
When x = 1, we have:Â
yÂ
= (1 + 1) / (1 + 1^2)Â
= 2 / 2Â
= 1Â
Using the slope formula, we have:Â
(y - 1) / (x - 1) = [[(-1 + sqrt(3)) / (8 - 4sqrt(3))] - 1] / ( -2 + sqrt(3) - 1)Â
(y - 1) / (x - 1) = 1/4, which is the equation of the line which the inflection points at x = 1 and x = -2 + sqrt(3) lies on.Â
Note that I am skipping the intermediate steps for simplifying here, but the trick is to rationalise the denominator by multiplying a conjugate on both numerator and denominator.Â
Now, we just need to check that the inflection point at x = -2 - sqrt(3) lies on the same line as well.Â
L.H.S.Â
= [[(-1 - sqrt(3)) / (8 + 4sqrt(3))] - 1] / (-2 - sqrt(3) - 1)Â
= 1/4Â
= R.H.S.Â
Once again, I am skipping simplifying steps here.Â
Anyway, this proves all three points of inflection lies on the same straight line.