Find Inflection Point: On 'Ro' 'Inflection Point of F' 'Inflection Point' Off

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Find Inflection Point

To find the inflection point of f, set the second derivative equal to 0 and solve.
f2 = diff(f1);
inflec_pt = solve(f2,'MaxDegree',3);
double(inflec_pt)
This returns
ans =
-5.2635 + 0.0000i
-1.3682 - 0.8511i
-1.3682 + 0.8511i
In this example, only the first entry is a real number, so this is the only inflection point. (Note that in other
examples, the real solutions might not be the first entries of the answer.) Since you are only interested in
the real solutions, you can discard the last two entries, which are complex numbers.
inflec_pt = inflec_pt(1);
To see the symbolic expression for the inflection point, enter
pretty(simplify(inflec_pt))
2/3 1/3
1/3 2/3 1/3
1/3
2 13 (13 - 3 sqrt(13))
2 13 (3 sqrt(13) + 13)
- ------------------------------- - ------------------------------- - 6
6
3

Plot the inflection point. The extra argument, [-9 6], in ezplot extends the range of x values in the plot so
that you see the inflection point more clearly, as shown in the following figure.
ezplot(f, [-9 6])
hold on
plot(double(inflec_pt), double(subs(f,inflec_pt)),'ro')
title('Inflection Point of f')
text(-7,2,'Inflection point')
hold off

You might also like