# 3.8E Exercises

- Page ID
- 10937

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

## Exercise \(\PageIndex{1}\)

For the following exercises, write Newton’s formula as \(x_{n+1}=F(x_n)\) for solving \(f(x)=0\).

1) \(f(x)=x^2+1\)

2) \(f(x)=x^3+2x+1\)

**Answer**-
\(F(x_n)=x_n−\frac{x_n^3+2x_n+1}{3x_n^2+2}\)

3) \(f(x)=sinx\)

4) \(f(x)=e^x\)

**Answer**-
\(F(x_n)=x_n−\frac{e^{x_n}}{e^{x_n}}\)

5) \(f(x)=x^3+3xe^x\)

## Exercise \(\PageIndex{2}\)

For the following exercises, solve \(f(x)=0\) using the iteration \(x_{n+1}=x_{n−c}f(x_n)\), which differs slightly from Newton’s method. Find a c that works and a \(c\) that fails to converge, with the exception of \(c=0.\)

1) \(f(x)=x^2−4,\) with \(x_0=0\)

**Answer**-
\(|c|>0.5\) fails, \(|c|≤0.5\) works

2) \(f(x)=x^2−4x+3,\) with \(x_0=2\)

3) What is the value of \(“c”\) for Newton’s method?

**Answer**-
\(c=\frac{1}{f′(x_n)}\)

## Exercise \(\PageIndex{3}\)

For the following exercises, start at

a. \(x_0=0.6\) and

b. \(x_0=2.\)

Compute \(x_1\) and \(x_2\) using the specified iterative method.

1) \(x_{n+1}=x_n^2−\frac{1}{2}\)

2) \(x_{n+1}=2x_n(1−x_n)\)

**Answer**-
a. \(x_1=\frac{12}{25},x_2=\frac{312}{625}\)

b. \(x_1=−4, x_2=−40\)

3) \(x_{n+1}=\sqrt{x_n}\)

4) \(x_{n+1}=\frac{1}{\sqrt{x_n}}\)

**Answer**-
a. \(x_1=1.291, x_2=0.8801\)

b. \(x_1=0.7071, x_2=1.189\)

5) \(x_{n+1}=3x_n(1−x_n)\)

6) \(x_{n+1}=x_n^2+x_{n−2}\)

**Answer**-
a. \(x_1=−\frac{26}{25}, x_2=−\frac{1224}{625}\)

b. \(x_1=4,x_2=18\)

7) \(x_{n+1}=\frac{1}{2}x_n−1\)

8) \(x_{n+1}=|x_n|\)

**Answer**-
a. \(x_1=\frac{6}{10},x_2=\frac{6}{10}\)

b. \(x_1=2,x_2=2\)

## Exercise \(\PageIndex{4}\)

For the following exercises, solve to four decimal places using Newton’s method and a computer or calculator. Choose any initial guess \(x_0\) that is not the exact root.

1) \(x^2−10=0\)

2) \(x^4−100=0\)

**Answer**-
\(3.1623or−3.1623\)

3) \(x^2−x=0\)

4) \(x^3−x=0\)

**Answer**-
\(0,−1 or 1\)

5) \(x+5cos(x)=0\)

6) \(x+tan(x)=0,\) choose \(x_0∈(−\frac{π}{2},\frac{π}{2})\)

**Answer**-
\(0\)

7) \(\frac{1}{1−x}=2\)

8) \(1+x+x^2+x^3+x^4=2\)

**Answer**-
\(0.5188\) or \(−1.2906\)

9) \(x^3+(x+1)^3=10^3\)

10) \(x=sin2^(x)\)

**Answer**-
\(0\)

## Exercise \(\PageIndex{5}\)

For the following exercises, use Newton’s method to find the fixed points of the function where \(f(x)=x\); round to three decimals.

1) \(sinx\)

2) \(tan(x)\) on \(x=(\frac{π}{2},\frac{3π}{2})\)

**Answer**-
\(4.493\)

3) \(e^x−2\)

4) \(ln(x)+2\)

**Answer**-
\(0.159,3.146\)

## Exercise \(\PageIndex{6}\)

Newton’s method can be used to find maxima and minima of functions in addition to the roots. In this case apply Newton’s method to the derivative function \(f′(x)\) to find its roots, instead of the original function. For the following exercises, consider the formulation of the method.

To find candidates for maxima and minima, we need to find the critical points \(f′(x)=0.\) Show that to solve for the critical points of a function \(f(x)\), Newton’s method is given by \(x_{n+1}=x_n−\frac{f′(x_n)}{f''(x_n)}\).

What additional restrictions are necessary on the function \(f\)?

**Answer**-
We need \(f\) to be twice continuously differentiable.

## Exercise \(\PageIndex{7}\)

For the following exercises, use Newton’s method to find the location of the local minima and/or maxima of the following functions; round to three decimals.

1) Minimum of \(f(x)=x^2+2x+4\)

2) Minimum of \(f(x)=3x^3+2x^2−16\)

**Answer**-
\(x=0\)

3) Minimum of \(f(x)=x^2e^x\)

4) Maximum of \(f(x)=x+\frac{1}{x}\)

**Answer**-
\(x=−1\)

5) Maximum of \(f(x)=x^3+10x^2+15x−2\)

6) Maximum of \(f(x)=\frac{\sqrt{x}−\sqrt[3]{x}}{x}\)

**Answer**-
\(x=5.619\)

7) Minimum of \(f(x)=x^2sinx,\) closest non-zero minimum to \(x=0\)

8) Minimum of \(f(x)=x^4+x^3+3x^2+12x+6\)

**Answer**-
\(x=−1.326\)

## Exercise \(\PageIndex{8}\)

For the following exercises, use the specified method to solve the equation. If it does not work, explain why it does not work.

1) Newton’s method, \(x^2+2=0\)

2) Newton’s method, \(0=e^x\)

**Answer**-
There is no solution to the equation.

3) Newton’s method, \(0=1+x^2\) starting at \(x_0=0\)

4) Solving \(x_{n+1}=−x_n^3\) starting at \(x_0=−1\)

**Answer**-
It enters a cycle.

## Exercise \(\PageIndex{9}\)

For the following exercises, use the **secant method, **an alternative iterative method to Newton’s method. The formula is given by

\(x_n=x_{n−1}−f(x_{n−1})\frac{x_{n−1}−x_{n−2}}{f(x_{n−1})−f(x_{n−2})}.\)

1) a root to \(0=x^2−x−3\) accurate to three decimal places.

2) Find a root to \(0=sinx+3x\) accurate to four decimal places.

**Answer**-
\(0\)

3) Find a root to \(0=e^x−2\) accurate to four decimal places.

4) Find a root to \(ln(x+2)=\frac{1}{2}\) accurate to four decimal places.

**Answer**-
\(−0.3513\)

5) Why would you use the secant method over Newton’s method? What are the necessary restrictions on \(f\)?

## Exercise \(\PageIndex{10}\)

For the following exercises, use both Newton’s method and the secant method to calculate a root for the following equations. Use a calculator or computer to calculate how many iterations of each are needed to reach within three decimal places of the exact answer. For the secant method, use the first guess from Newton’s method.

1) \(f(x)=x^2+2x+1,x_0=1\)

**Answer**-
Newton: \(11\) iterations, secant: \(16\) iterations

2) \(f(x)=x^2,x_0=1\)

3) \(f(x)=sinx,x_0=1\)

**Answer**-
Newton: three iterations, secant: six iterations

4) \(f(x)=e^x−1,x_0=2\)

5) \(f(x)=x^3+2x+4,x_0=0\)

**Answer**-
Newton: five iterations, secant: eight iterations

## Exercise \(\PageIndex{11}\)

In the following exercises, consider Kepler’s equation regarding planetary orbits, \(M=E−εsin(E)\), where \(M\) is the mean anomaly, \(E\) is eccentric anomaly, and ε measures eccentricity.

1) Use Newton’s method to solve for the eccentric anomaly \(E\) when the mean anomaly \(M=\frac{π}{3}\) and the eccentricity of the orbit \(ε=0.25;\) round to three decimals.

2) Use Newton’s method to solve for the eccentric anomaly \(E\) when the mean anomaly \(M=\frac{3π}{2}\) and the eccentricity of the orbit \(ε=0.8;\) round to three decimals.

**Answer**-
\(E=4.071\)

## Exercise \(\PageIndex{12}\)

The following exercises consider a bank investment. The initial investment is \($10,000\). After \(25\) years, the investment has tripled to \($30,000.\)

1) Use Newton’s method to determine the interest rate if the interest was compounded annually.

2) Use Newton’s method to determine the interest rate if the interest was compounded continuously.

**Answer**-
\(4.394%\)

## Exercise \(\PageIndex{13}\)

The cost for printing a book can be given by the equation \(C(x)=1000+12x+(\frac{1}{2})x^{2/3}\). Use Newton’s method to find the break-even point if the printer sells each book for \($20.\)

**Answer**-
Under Construction