Question #50336

a)Use Newton's method to approximate the root of the equation xsinx =1 in [0,pi/2].Taking x=1 as the initial guess calculate x1,x2,x3(Work to at least 6 decimal places)
b)Show that the equation x^3-3x^2+2x=1 has no root in the interval [-1,1]
1

Expert's answer

2015-01-13T09:01:06-0500

Answer on Question #50336 – Math – Algorithms | Quantitative Methods

a) Use Newton's method to approximate the root of the equation


xsinx=1 in [0,π/2].x \sin x = 1 \text{ in } [0, \pi/2].xsinx=1,x[0,π2].x \sin x = 1, \quad x \in \left[0, \frac{\pi}{2}\right].


Taking x=1x=1 as the initial guess calculate x1,x2,x3x_1, x_2, x_3 (Work to at least 6 decimal places).

b) Show that the equation


x33x2+2x=1x^3 - 3x^2 + 2x = 1


has no root in the interval [-1,1]

Solution:

a)

According to Newton's method, we have


xn+1=xnf(xn)f(xn),n=0,1,2x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}, \quad n = 0, 1, 2 \dots


where


f(x)=xsin(x)1.f(x) = x \sin(x) - 1.


First of all, we have to find f(x)f'(x). So


f(x)=(xsin(x)1)=sin(x)+xcos(x).f'(x) = (x \sin(x) - 1)' = \sin(x) + x \cos(x).


1 step.


x1=x0f(x0)f(x0)=11sin(1)1sin(1)+1cos(1)1.1147286724,f(x0)0x_1 = x_0 - \frac{f(x_0)}{f'(x_0)} = 1 - \frac{1 \cdot \sin(1) - 1}{\sin(1) + 1 \cdot \cos(1)} \approx 1.1147286724, \quad f'(x_0) \neq 0


2 step.


x2=x1f(x1)f(x1)=1.11472867241.1147286724sin(1.1147286724)1sin(1.1147286724)+1.1147286724cos(1.1147286724)1.1141571268x_2 = x_1 - \frac{f(x_1)}{f'(x_1)} = 1.1147286724 - \frac{1.1147286724 \cdot \sin(1.1147286724) - 1}{\sin(1.1147286724) + 1.1147286724 \cdot \cos(1.1147286724)} \approx 1.1141571268


3 step.


x3=x2f(x2)f(x2)=1.11415712681.1141571268sin(1.1141571268)1sin(1.1141571268)+1.1141571268cos(1.1141571268)1.1141571409x_3 = x_2 - \frac{f(x_2)}{f'(x_2)} = 1.1141571268 - \frac{1.1141571268 \cdot \sin(1.1141571268) - 1}{\sin(1.1141571268) + 1.1141571268 \cdot \cos(1.1141571268)} \approx 1.1141571409


b)

Denote


f(x)=x33x2+2x1.f(x) = x^3 - 3x^2 + 2x - 1.


This function is continuous on [1;1][-1; 1].

Any function f(x)f(x) that is continuous at each point of a segment [a;b][a; b] attains its largest and its smallest values, MM and mm, on that segment.

Note that the given function is differentiable on [1;1][-1; 1].

Let f(x)f(x) be continuous on the segment [a;b][a; b] and differentiable at all points of this segment (except, possibly, finitely many points in general case). Then the largest and the smallest values of f(x)f(x) on [a;b][a; b] belong to the set consisting of f(a),f(b)f(a), f(b), and the values f(xi)f(x_i), where

xi(a,b)x_i \in (a, b) are the points at which f(x)f'(x) is either equal to zero or does not exist (is infinite).

A function f(x)f(x) that is continuous on a segment [a;b][a; b] takes any value c[m;M]c \in [m; M] on that segment, where mm and MM are, respectively, its smallest and its largest values on [a;b][a; b].

Thus we have


f(1)=(1)33(1)2+2(1)1=1321=7<0;f(-1) = (-1)^3 - 3 \cdot (-1)^2 + 2 \cdot (-1) - 1 = -1 - 3 - 2 - 1 = -7 < 0;f(1)=13312+211=13+21=1<0.f(1) = 1^3 - 3 \cdot 1^2 + 2 \cdot 1 - 1 = 1 - 3 + 2 - 1 = -1 < 0.


Further more


f(x)=3x26x+2.f'(x) = 3x^2 - 6x + 2.


We have to solve next equation


f(x)=0,f'(x) = 0,3x26x+2=0,3x^2 - 6x + 2 = 0,D=36432=3624=12>0,D = 36 - 4 \cdot 3 \cdot 2 = 36 - 24 = 12 > 0,x1,2=6±126=1±32.x_{1,2} = \frac{6 \pm \sqrt{12}}{6} = 1 \pm \frac{\sqrt{3}}{2}.


Point x1=(1+32)x_1 = \left(1 + \frac{\sqrt{3}}{2}\right) does not belong to [1;1][-1; 1].

So


x2=(132)0.1339745962[1;1]x_2 = \left(1 - \frac{\sqrt{3}}{2}\right) \approx 0.1339745962 \in [-1; 1]


and


f(x2)=(0.1339745962)33(0.1339745962)2+20.133974596210.7834936491<0.f(x_2) = (0.1339745962)^3 - 3 \cdot (0.1339745962)^2 + 2 \cdot 0.1339745962 - 1 \approx -0.7834936491 < 0.


Because


f(1)<0,f(-1) < 0,f(132)<0,f \left(1 - \frac {\sqrt {3}}{2}\right) < 0,f(1)<0f (1) < 0


then graph of the function does not cross the OXOX axis when x[1,1]x \in [-1,1] . Thus, the equation


x33x2+2x=1x ^ {3} - 3 x ^ {2} + 2 x = 1


has no roots in the interval [-1,1].

Answer:

a)


x1=1.1147286724x _ {1} = 1. 1 1 4 7 2 8 6 7 2 4x2=1.1141571268x _ {2} = 1. 1 1 4 1 5 7 1 2 6 8x3=1.1141571409x _ {3} = 1. 1 1 4 1 5 7 1 4 0 9


www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS