quietrain
- 648
- 2
Homework Statement
tan x = x
Homework Equations
The Attempt at a Solution
how do i solve this equation without using graphs?
is there a numerical method ?
thanks a lot!
try it and find out...quietrain said:er so how do i go about doing that?
draw a graph of y=tanx & y=x and pick an x value close to where they intersect, preferably on the left side of the intersection. Also notice there will actually be infinite solutions... so the value you start with will determine where you end upquietrain said:how do i know what to guess?
Close - more accuratly, we use a first order Taylor Series to construct the N-R method. For example, let the first order Taylor Series approximation for F(x), expanded about x_0, beso the gradient of the line in the form Y = MX + C ==> f(x0) - f(x1) = (x0 - x1) f '(x0)
so if i set f(x1) = 0, i will end up with the Newton-raphsod equation, which is the 1st order taylor series polynomial.
Yes! You got it. And yes, your function is F(x) = tan(x) - x[/itex]<br /> <br /> <blockquote data-attributes="" data-quote="" data-source="" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> so does it mean if my equation is tanx - x = 5, i must set my f(x1) term as 5? which means i am looking at the roots where tan x = 5+x? </div> </div> </blockquote><br /> That's one way of looking at it, with F(x) = tan(x)-x. However, its better to consider the search for the zero of a function F(x) so as not to "confuse the masses". See the example above F(x) = tan(x) - x - A. This does not necessarily mean that your initial quess to x, ie x_0 is equal to A. But you ARE looking for the x such that \tan(x) = 5+x. So you may want to graph those two curves (f_1(x) = \tan(x) and f_2(x) = 5+x) and find their approximate point of intersection (there will be and infinite number, but maybe your just interested in the first one(?)). The value of "x" at this intersection can be used for an initial estimate (ie, x_0).<br /> <br /> <blockquote data-attributes="" data-quote="" data-source="" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> so what the taylor series expansion does is actually like the Newton-raphsod method where you throw in your guess (x0) and it points you closer and closer to the actual value of f(x1)? from the equation f(x) ~ f(x0) + f'(x0)(x-x0)) + O(x^2) </div> </div> </blockquote><br /> Again, N-R is the iteration method. The first order Taylor Series is the construction tool to the iteration method. Do not use the Taylor Series approximation to solve for the root - use the N-R method to iterate to the root.so is the term f(x1) equals 0 because i define my function tanx -x = 0? which means i am looking at the roots where tan x = x ?
If rather than until it converges. There is no guarantee that Newton-Raphson will converge. Consider the case g(x)=x1/3. Then g/g'=3x, making the Newton-Raphson iterator for finding a solution for g(x)=0 is xn+1=-2xb.TheoMcCloskey said:<br /> x = x_0 -\frac{F(x_0)}{F'(x_0)} <br />
We use this value of "x" and repeat the process (iterate) until convergence.