How Can Newton's Method Determine the Inflection Point of y = e^cos(x)?

Click For Summary

Homework Help Overview

The discussion revolves around using Newton's method to find the coordinates of the inflection point of the curve y = e^cos(x) within the interval [0, π]. The original poster has calculated the second and third derivatives but encounters issues with undefined values when using certain initial approximations.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the use of Newton's method to find where y'' = 0, with the original poster questioning the choice of initial approximations due to undefined derivatives at specific points. Others suggest starting with different initial values and explore the implications of choosing points too far from the root.

Discussion Status

The conversation is ongoing, with participants providing guidance on selecting initial approximations and discussing the behavior of Newton's method. There is no explicit consensus yet, as various strategies and concerns about initial guesses are still being explored.

Contextual Notes

Participants note constraints such as the prohibition of calculators during exams and the challenge of finding suitable initial approximations without graphical aids. The original poster also mentions that certain points lead to undefined derivatives, complicating the application of Newton's method.

TsAmE
Messages
129
Reaction score
0

Homework Statement



Use Newton's method to find the coordinates of the inflection point of the curve y = e^cosx, 0 <= x <= pi, correct to six decimal places.

Homework Equations



None.

The Attempt at a Solution



I calculated y'' (as f(x) in Newton formula) and y''' (as f'(x) in Newton formula), as they wanted to find the coordinates of the inflection point (when y'' = 0).

y' = -e^(cosx) * sinx

y'' = e^(cosx) * ( sinx^(2) - cosx )

y''' = e^(cosx) * sinx( cosx^2 + 3cosx )

I then subbed in y'' and y''' into the Newton equation and this is where I am having trouble, since when ever I try to use an initial approximation e.g. x1 = 0 or x1 = pi, f'(x1) = 0 which is undefined (from x1 = x2 + f(x1) / f'(x1)
 
Physics news on Phys.org
Newton's method can be used to find a zero (x-intercept) for a function f(x). For the inflection point, you want to find out where y'' = 0. You have formulas for y'' and y'''. Use them in Newton's method.
 
Mark44 said:
Newton's method can be used to find a zero (x-intercept) for a function f(x). For the inflection point, you want to find out where y'' = 0. You have formulas for y'' and y'''. Use them in Newton's method.

Yeah I tried that, but when I sub in the beginning (0) and end point of the interval (pi), I get an f'(1) (in the denominator of Newtons method) to be 0 which is undefined. Unless I am choosing a wrong initial approximation? Or can you choose any initial approximation?
 
Start at a different number. You don't have to start at 0.
 
What if when guessing an initial approximation, you guess one which is to the left of the root, and then you keep on taking further approximations from the initial one, wouldn't the tangent lines move to the left, completely missing the root? (refer to diagram)
 

Attachments

  • Newtons method.jpg
    Newtons method.jpg
    3.9 KB · Views: 512
Not if you don't make a guess that's too far away. In your picture, for instance, you'd have f(x0)<0 and f'(x0)>0, so x1=x0-f(x0)/f'(x0) will be greater than x0, i.e. you move to the right.

If you go too far away so that you pass that minimum, then yes, Newton's method will shoot you off in the wrong direction.
 
Then how do you 'guess' without missing the root?
 
You can use your knowledge of the function to make an educated guess; maybe plot it to see what the roots approximately are; if you get a root, make sure it's the one you were looking for; etc.
 
I can't check it by plotting it, as we not allowed calculators in our exam. I read somewhere that choosing the mid-point of the interval (0 <= x <= pi) is a good initial approximation, but for this example, obviously pi/2 doesn't work as f'(x) = 0 which is undefined in the formula (as is 0 and pi)
 
  • #10
You don't need an exact plot. You're just trying to make a decent guess. There's a reason why you learned how to analyze functions and sketch their graphs.

For your particular function, you don't even need to plot it. If you look at your expression for y'''(x), you can easily see it's zero when sin x=0 or cos x=0, so avoid those points. If you write y''(x) in terms of only cos x, you see it vanishes when cos2 x+cos x-1=0. You can use the quadratic equation to solve for cos x. Estimate what cos x equals (about 0.6) and then what x equals (around pi/3) and use that as your initial guess.
 
  • #11
I see. Someone also told me that you could find an initial approximation, by finding where the tangent line crosses the y-axis
 

Similar threads

Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
11
Views
2K
Replies
16
Views
7K
  • · Replies 9 ·
Replies
9
Views
4K