Use MatLab.
Using f(x) = x^5 - 9x^4 - x^3 + 17x^2 - 8x -8 and x0 = 0, study and explain the behavior of Newton's method.
Hint: The iterates are initially cyclic
steps to find root using newrons method:-
1)check if the function is differentiable or not.if and only if function is differentiable then only it can be applied.
2)find first derivative f’(x) of given function
3)put initial guess of root of eqn.
4)use newtons iteration formula as:x2 = x1 – f(x1)/f’(x1)
repea the process for
x3,x4..till tha actual root is found out.
inp=input("enter the function in variable x:","s");
x(1)=input("enter initial guess");
error=input("enter allowed error");
fun=inline(inp)
dif=diff(sym(inp));
val=inline(dif);
for i=i:100
x(i+1)=x(i)-((f(x(i))/d(x(i))));
err(i)=abs((x(i+1)_x(i))/x(i));
if err(i) < error
break
end
end
root=x(i)
To translate the steepest ascent into matlab code: f(x,y)=-8*x + 12*y + x^2 - 2*x^4 - 2*x*y + 4*y^2 dx=-8+2x-8x^3-2y dy=12-2x+8y subs in x0=0, y0=0 into dx and dy dx=-8 dy=12 subs dx and dy into x1=x0 + dx*0.001 and y1=y0 + dy*0.001 then subs x1 and y1 back to x0 and x0; repeat the step until the answer has reach optimisation.
integral of ((9x^3+8x^2+27x+8))/((x^2+1)(x^2+3))
1a): Find the roots of the following polynomial equations using matlab: f(x) = x^5 − 9x^4 + 31x^3 − 51x^2 + 40x − 12 f(x) = x^5 − 11x^4 + 47x^3 − 97x^2 + 96x − 36 b): Find the coefficients of two polynomial equations in matlab given the following sets of roots: r1 = [ 100 25 50 5 10 ] r2 = [ 11 22 33 0 55 ] c): Create a figure with four subplots, each showing...
7. Show that the equation f(x) = x^3 + 3x^2 - 9x + 7 = 0 has a solution for some x is E(-6; -5). Apply Newton’s method with an initial guess x0 = -5 to find x2. 8. Find the intervals of increase and decrease of the function x2e^-2x. 9. Sketch the graph of the curve y = x3 + 3x2 - 9x + 7. Be sure to find the intervals of increase, decrease and constant concavity and all...
b) Show that (1+i) is a zero of F(x) = 2x^5 - 9x^4 +12x^3 -4x^2 - 8x +4 c) Find all of the ZEROES of F(x)
Integrate ex- - 8x + 18 dx by using the partial fractions method. Which of the following is correct? x2-9x + 20 4 AS**** *28 dx = S** 5 Ox x2 - 8x + 18 J XP-9x + 20 +- - 4 X - X - 5 oc s***8* * 28 dx=51-x katika O B. None of the other choices given is correct. px? - 8x + 18 2 72-9x + 20 ( - 4 x -504 -5 x2 -...
using matlab
3. [1:2] Find a root (value of x for which f(x)-0) of f(x) = a x^3 + bx^2 + c x + d using Newton's interation: xnew = x -f(x)/(x). Note that f'(x) is the first derivative off with respect to x. Then x=xnew. Start with x=0 and iterate until f(xnew) < 1.0-4. Use values (a,b,c,d]=[-0.02, 0.09, -1.1, 3.2). Plot the polynomial vs x in the range (-10 10). Mark the zero point.
in
matlab
-Consider the equation f(x) = x-2-sin x = 0 on the interval x E [0.1,4 π] Use a plot to approximately locate the roots of f. To which roots do the fol- owing initial guesses converge when using Function 4.3.1? Is the root obtained the one that is closest to that guess? )xo = 1.5, (b) x0 = 2, (c) x.-3.2, (d) xo = 4, (e) xo = 5, (f) xo = 27. Function 4.3.1 (newton) Newton's method...
1. Determine the root of function f(x)= x+2x-2r-1 by using Newton's method with x=0.8 and error, e=0.005. 2. Use Newton's method to approximate the root for f(x) = -x-1. Do calculation in 4 decimal points. Letx=1 and error, E=0.005. 3. Given 7x)=x-2x2+x-3 Use Newton's method to estimate the root at 4 decimal points. Take initial value, Xo4. 4. Find the root of f(x)=x2-9x+1 accurate to 3 decimal points. Use Newton's method with initial value, X=2
Let ?(?)=?2−8?+4f(x)=x2−8x+4.
(1 point) Let f(x) = x2 – 8x + 4. Find the critical point c of f(x) and compute f(c). The critical point c is = The value of f(c) = Compute the value of f(x) at the endpoints of the interval [0, 8]. f(0) = f(8) = Determine the min and max Minimum value = Maximum value = Find the extreme values of f(x) on [0, 1]. Minimum value = Maximum value =