Determine the position using an iteration method

In summary, the conversation discusses finding the position $\overline{x}$ where the function $f(x)$ has the same value as at the position $x=1$ using an iteration method with an accuracy of two decimal digits. The conversation covers determining the initial value $x_0$ and the use of different methods such as Newton's method, bisection, and regula falsi. The final calculation using $x_0=1.5$ yields a position of $1.41$ as the desired accuracy.
  • #1
mathmari
Gold Member
MHB
5,049
7
Hey! :eek:

The function \begin{equation*}f(x)=\frac{x}{e^{x/9}}\cdot \frac{\sin \left (\pi (x-1)\right )}{x-1}\end{equation*} has at exactly one position $\overline{x}>1$ the same value as at the position $x=1$. Determine the position $\overline{x}$ using an iteration method with accuracy of two decimal digits. I have done the following:

We have that \begin{equation*}f(\overline{x})=f(1)\Rightarrow f(\overline{x})-f(1)=0 \Rightarrow g(x):=f(x)-f(1)\end{equation*}

First we have to calculate $f(1)$:
\begin{align*}f(1)&=\lim_{x\rightarrow 1}f(x)=\lim_{x\rightarrow 1}\frac{x}{e^{x/9}}\cdot \frac{\sin \left (\pi (x-1)\right )}{x-1}=\frac{1}{e^{1/9}}\cdot \lim_{x\rightarrow 1}\frac{\sin \left (\pi (x-1)\right )}{x-1}\ \overset{DLH}{ = } \ \frac{1}{e^{1/9}}\cdot \lim_{x\rightarrow 1}\frac{\pi \cos \left (\pi (x-1)\right )}{1}\\ & =\frac{1}{e^{1/9}}\cdot \pi \cos \left (\pi \cdot 0\right )=\frac{1}{e^{1/9}}\cdot \pi =\frac{\pi}{e^{1/9}}\end{align*}

Therefore we get the function \begin{equation*}g(x)=\frac{x}{e^{x/9}}\cdot \frac{\sin \left (\pi (x-1)\right )}{x-1}-\frac{\pi}{e^{1/9}}\end{equation*}

Now we have to apply an iteration method to approximate the root of that function, right? Do we use the Newton's method? (Wondering)

We don't have an interval to which the root will belong, we only know that it is greater than $1$. So do we have to guess such an interval to calculate the first input $x_0$? (Wondering)
 
Mathematics news on Phys.org
  • #2
mathmari said:
Hey! :eek:

The function \begin{equation*}f(x)=\frac{x}{e^{x/9}}\cdot \frac{\sin \left (\pi (x-1)\right )}{x-1}\end{equation*} has at exactly one position $\overline{x}>1$ the same value as at the position $x=1$. Determine the position $\overline{x}$ using an iteration method with accuracy of two decimal digits. I have done the following:

We have that \begin{equation*}f(\overline{x})=f(1)\Rightarrow f(\overline{x})-f(1)=0 \Rightarrow g(x):=f(x)-f(1)\end{equation*}

First we have to calculate $f(1)$:
\begin{align*}f(1)&=\lim_{x\rightarrow 1}f(x)=\lim_{x\rightarrow 1}\frac{x}{e^{x/9}}\cdot \frac{\sin \left (\pi (x-1)\right )}{x-1}=\frac{1}{e^{1/9}}\cdot \lim_{x\rightarrow 1}\frac{\sin \left (\pi (x-1)\right )}{x-1}\ \overset{DLH}{ = } \ \frac{1}{e^{1/9}}\cdot \lim_{x\rightarrow 1}\frac{\pi \cos \left (\pi (x-1)\right )}{1}\\ & =\frac{1}{e^{1/9}}\cdot \pi \cos \left (\pi \cdot 0\right )=\frac{1}{e^{1/9}}\cdot \pi =\frac{\pi}{e^{1/9}}\end{align*}

Therefore we get the function \begin{equation*}g(x)=\frac{x}{e^{x/9}}\cdot \frac{\sin \left (\pi (x-1)\right )}{x-1}-\frac{\pi}{e^{1/9}}\end{equation*}

Now we have to apply an iteration method to approximate the root of that function, right? Do we use the Newton's method? (Wondering)

We don't have an interval to which the root will belong, we only know that it is greater than $1$. So do we have to guess such an interval to calculate the first input $x_0$? (Wondering)

[DESMOS=-1,4,-1,4]\frac{\left(x\sin\left(\pi\left(x-1\right)\right)\right)}{e^{x/9}(x-1)}[/DESMOS]
The above graph shows that the function repeats its value at $x=1$ when $x$ is somewhere near $1.4$ or $1.5$. So I would take $x_0=1.5$.
 
Last edited:
  • #3
mathmari said:
Now we have to apply an iteration method to approximate the root of that function, right? Do we use the Newton's method?

We don't have an interval to which the root will belong, we only know that it is greater than $1$. So do we have to guess such an interval to calculate the first input $x_0$?

Hey mathmari!

This is an example where Newton-Raphson can have problems if we are not careful.
If we pick a starting value that is too far from the zero, it will likely not converge.
However, a starting value that starts slightly to the right of the zero, such as the 1.5 that Opalg pointed out, should do the job. And it will converge quadratically.
Starting below 1.4 or above 2.1 will likely diverge though. (Wondering)

Alternatively algorithms are bisection and regula falsi.
First we might search for values that are on opposite sides of the x-axis.
That is, we can start with some initial interval, and then either double or half its size until we find both a positive and a negative function value.
The root must then in between those, after which both bisection and regula falsi will find it. (Thinking)
 
  • #4
We have \begin{align*}&g(x)=\frac{x\sin \left (\pi(x-1)\right )}{e^{x/9}(x-1)}-\frac{\pi}{e^{1/9}}\\ &g'(x)=\frac{\left [\sin \left (\pi (x-1)\right )+x\pi \cos \left (\pi (x-1)\right )\right ]\left (x-1\right )-x\sin \left (\pi (x-1)\right ) \frac{8+x}{9}}{e^{x/9}(x-1)^2}\end{align*}

Choosing as initial value $x_0=1.5$ we get the following:
\begin{align*}x_1=x_0-\frac{g(x_0)}{g'(x_0)}\approx 1.4259 \\ x_2=x_1-\frac{g(x_1)}{g'(x_1)}\approx 1.4149 \\ x_3=x_2-\frac{g(x_2)}{g'(x_2)}\approx 1.4147\end{align*}
The first two decimal digits are the same as in the previous step and so position that we are looking for is $1.41$. Is everything correct? (Wondering)
 
  • #5
Yep. (Nod)
 

FAQ: Determine the position using an iteration method

What is an iteration method?

An iteration method is a mathematical technique used to find a solution to a problem by repeatedly applying a specific process or formula. In the context of determining position, it involves using a series of calculations to refine an estimate of an object's position until it reaches a desired level of accuracy.

How does an iteration method determine position?

An iteration method for determining position involves using a starting estimate of an object's position, and then using a formula or algorithm to refine that estimate based on new information or measurements. This process is repeated until the estimate reaches a desired level of accuracy, at which point it is considered the determined position.

What types of problems can be solved using an iteration method?

Iteration methods can be used to solve a variety of problems in mathematics, science, and engineering. In the context of determining position, it can be used to solve problems involving motion, such as finding the position of a moving object at a specific time or predicting future positions based on past data.

What are the advantages of using an iteration method to determine position?

One advantage of using an iteration method is that it can provide a more accurate estimate of an object's position compared to other methods. Additionally, it can be applied to a wide range of problems and can be easily adjusted to account for changing variables or conditions.

Are there any limitations to using an iteration method for determining position?

While iteration methods can be effective in many cases, they may not be suitable for all problems. For example, if the initial estimate of an object's position is too far from the actual position, the method may not converge to the correct solution. Additionally, the process can be time-consuming and may require a significant amount of computational power.

Similar threads

Replies
11
Views
885
Replies
4
Views
937
Replies
2
Views
989
Replies
2
Views
816
Replies
7
Views
2K
Replies
12
Views
2K
Replies
1
Views
1K
Replies
7
Views
2K
Back
Top