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

In summary: Newton's method.In summary, the conversation discusses using Newton's method to find the coordinates of the inflection point of the curve y = e^cosx, 0 <= x <= pi. The formula for Newton's method is used, but difficulty arises when choosing an initial approximation. Suggestions are made to use knowledge of the function and its derivatives to make an educated guess, such as avoiding points
  • #1
TsAmE
132
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
  • #2
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.
 
  • #3
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?
 
  • #4
Start at a different number. You don't have to start at 0.
 
  • #5
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: 468
  • #6
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.
 
  • #7
Then how do you 'guess' without missing the root?
 
  • #8
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.
 
  • #9
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
 

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

1. What is Newton's method?

Newton's method, also known as the Newton-Raphson method, is an iterative algorithm for finding the roots of a function. It is a powerful tool for solving both linear and nonlinear equations, and is widely used in fields such as physics, engineering, and mathematics.

2. How does Newton's method work?

The method begins with an initial guess for the root of the function. It then uses the derivative of the function at that point to calculate the slope of the function. This slope is used to find a new point on the function, and the process is repeated until the root is found to a desired level of accuracy.

3. What are the advantages of using Newton's method?

One of the main advantages of Newton's method is its speed of convergence. In most cases, it converges much faster than other root-finding algorithms, making it an efficient and effective tool for solving equations. Additionally, it can be used to find multiple roots of a function with different initial guesses.

4. What are the limitations of Newton's method?

One limitation of Newton's method is that it may not always converge to the correct root, particularly if the initial guess is far from the actual root. This can be addressed by using different initial guesses or by using a hybrid method that combines Newton's method with other algorithms. Additionally, it may not work well for functions with discontinuities or multiple roots in close proximity.

5. Are there any real-world applications of Newton's method?

Yes, there are many real-world applications of Newton's method. It is commonly used in physics and engineering to solve problems involving motion, such as calculating the trajectory of a projectile. It is also used in optimization problems, such as finding the maximum or minimum value of a function. Newton's method is also used in economics, finance, and other fields for numerical analysis and solving complex equations.

Back
Top