MHB しおり's question at Yahoo Answers regarding Newton's method

AI Thread Summary
To find the roots of the equation sin(x) = x^2 - 3x + 1 using Newton's Method, the function is defined as f(x) = x^2 - 3x + 1 - sin(x). The derivative is f'(x) = 2x - 3 - cos(x). Initial estimates for the roots are approximately 0.25 for the smaller root and 2.75 for the larger root. Applying Newton's Method iteratively yields the roots as approximately 0.268881 and 2.770058, both rounded to six decimal places. This method effectively converges to the solutions through the recursive formula derived from f(x) and its derivative.
MarkFL
Gold Member
MHB
Messages
13,284
Reaction score
12
Here is the question:

Use Newton's Method to find all roots of the equation sinx= x^2-3x+1 correct to six decimal places.?


I think first thing that I need to do is
let x^2-3x+1-sinx=0
then f(x)=x^2-3x+1-sinx

But I am stuck here...
I don't know how to get the interval and how to get x1

Please please explain how to solve this question for me.

Thank you!

I have posted a link there to this thread so the OP can see my work.
 
Mathematics news on Phys.org
Hello しおり,

The first thing I would do is plot:

$$\sin(x)=x^2-3x+1$$

in order to get an idea where the roots are:

View attachment 1670

So, we see the smaller root is about $0.25$ and the larger root is about $2.75$.

Now, as you did, I would define:

$$f(x)=x^2-3x+1-\sin(x)$$

Hence:

$$f'(x)=2x-3-\cos(x)$$

Newton's method gives us the recursive algorithm:

$$x_{n+1}=x_n-\frac{f\left(x_n \right)}{f'\left(x_n \right)}$$

Using our function $f(x)$, we have:

$$x_{n+1}=x_n-\frac{x_n^2-3x_n+1-\sin\left(x_n \right)}{2x_n-3-\cos\left(x_n \right)}=\frac{2x_n^2-3x_n-x_n\cos\left(x_n \right)-\left(x_n^2-3x_n+1-\sin\left(x_n \right) \right)}{2x_n-3-\cos\left(x_n \right)}$$

$$x_{n+1}=\frac{x_n^2-x_n\cos\left(x_n \right)+\sin\left(x_n \right)-1}{2x_n-3-\cos\left(x_n \right)}$$

i) The smaller root: $$x_0=0.25$$

$$x_1\approx0.253025027391$$

$$x_2\approx0.268799448273$$

$$x_3\approx0.268881342724$$

$$x_4\approx0.268881344942$$

$$x_5\approx0.268881344942$$

ii) The larger root: $$x_0=2.75$$

$$x_1\approx2.77019710423$$

$$x_2\approx2.77005756932$$

$$x_3\approx2.77005756269$$

$$x_4\approx2.77005756269$$

Hence, the two roots of the given equation, rounded to 6 decimal places, are:

$$x\approx 0.268881,\,2.770058$$
 

Attachments

  • newtmethroots.jpg
    newtmethroots.jpg
    6.7 KB · Views: 105
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top