Showing posts with label Newton's Method. Show all posts
Showing posts with label Newton's Method. Show all posts

Monday, April 21, 2014

Calculate x from x^3+3=x^2

We'll use numerical methods to find the solution. Graphing x%5E3%2B3 and x%5E2 together shows that there is only one point of intersection - slightly less than -1. So we know that there is only 1 real solution. 
We use Newton's method: 
f%28x%29=x%5E3-x%5E2%2B3 
df%2Fdx=3x%5E2-2x 

then 
x%5Bn%2B1%5D=x%5Bn%5D-%28x%5Bn%5D%5E3-x%5Bn%5D%5E2%2B3%29%2F%283x%5Bn%5D%5E2-2x%5Bn%5D%29 
We wont bother simplifying because we'll do the calculations by calculator: 
guess x=-1 
x%5B2%5D=-6%2F5
x%5B3%5D=-47%2F40
x%5B4%5D=-1.1745595

Friday, April 4, 2014

Find a real solution for: x^3+10x=80

We can use Newton's method. Writing f(x)=x^3+10x-80, and f'(x)=3x^2+10 and writing as a sequence we can see:
x%5Bn%2B1%5D=x%5Bn%5D-%28x%5Bn%5D%5E3%2B10x%5Bn%5D-80%29%2F%283x%5Bn%5D%5E2%2B10%29
For a reasonable first guess we can use the fact that when x=3, the LHS of the original equation is 57 and when x=4, LHS=104. So let's split the difference and choose x=3.5
This gives us...

x%5B2%5D=3.545454
x%5B3%5D=3.54499
x%5B4%5D=3.54499
so probably close enough... 

Thursday, April 3, 2014

how to solve 10th root of 1.6

From numerical methods we can write
f%28x%29=x%5E10-1.6
and use Newton's method to get:

x%5Bn%2B1%5D=%289x%5Bn%5D%5E10%2B1.6%29%2F%2810x%5Bn%5D%5E9%29
which converges very fast:
x%5B1%5D=1.00%29%29%29%0D%0A%7B%7B%7Bx%5B2%5D=1.06
x%5B3%5D=1.0487037
x%5B4%5D=1.0481238
x%5B5%5D=1.0481223

Monday, April 8, 2013

Approximate sqrt(5) using Newton's Method



Newton's Method is an efficient way to approximate square roots. We choose our initial point as 2 because we know that root 5 is closer to 2 than to 3. The number crunching is done by calculator (HP50g) and the table summarizes the results.




If you need help with math, I can help you. Visit my mobile website: www.mathhelp.mobi
or email me at services@mathhelp.mobi