Hi, here is a small equation, Please solve for 2 values of x

Equation is: Tan(x) = x

Let's see who will solve for 2 correct values of x

Printable View

- March 6th 2006, 10:31 PMrabindraadhiA Very simple equation
Hi, here is a small equation, Please solve for 2 values of x

Equation is: Tan(x) = x

Let's see who will solve for 2 correct values of x - March 7th 2006, 03:56 AMCaptainBlackQuote:

Originally Posted by**rabindraadhi**

digits then these can be provided. Otherwise you are probably out of luck.

RonL - March 7th 2006, 02:15 PMThePerfectHackerQuote:

Originally Posted by**rabindraadhi**

I can prove a solution exists :D

This reminds me of a joke:

"A mathematician, physicist and engineer buy a room for a hotel for the night. During the night a fire breaks out, the engineer wakes up, takes a bucket of water and kills the fire then goes back to sleep. A few hours later another fire breaks out during the night. The physicist being smarter than the engineer calculates exaclty how much water is required, throws the water and kills the fire, then goes back to sleep. A few more hours another fire breaks out the mathematician wakes up sees the fire, sees a firehose; says to himself "A solution exists" and then goes back to sleep :D " - March 8th 2006, 08:12 AMc_323_hQuote:

Originally Posted by**ThePerfectHacker**

- March 8th 2006, 02:25 PMThePerfectHackerQuote:

Originally Posted by**c_323_h**

"If is countinuous on and then there exists at least one real number such as ".

Maybe later on I will post the proof. But maybe you can see it from here. - March 9th 2006, 04:56 AMtopsquark
I can prove it, but it's complicated.

Using the quadratic formula:

So one possible solution is for +1:

Expanding the square root and cosine in a Taylor series about x=0:

So or

So x = 0 is one solution. Note that this is an exact solution despite using the Taylor series because I did not need to truncate the series and the solution is indeed around the x=0 point, so I didn't need to worry about convergence issues.

-Dan (:p) - March 9th 2006, 05:14 AMtopsquarkQuote:

Originally Posted by**rabindraadhi**

-Dan - March 9th 2006, 05:46 AMCaptainBlackQuote:

Originally Posted by**topsquark**

RonL - March 9th 2006, 06:18 AMc_323_h

so can you take the square root of both sides to get

?

or is this illegal? - March 9th 2006, 12:01 PMtopsquarkQuote:

Originally Posted by**c_323_h**

So be careful when you take the square root.

Second, in case it escaped anyone's notice, I made my solution to tanx=x FAR more creative and complicated than it had to be. Just having a bit of fun, that's all. I didn't think anyone would take it seriously!

A REAL solution to tanx=x based on my format would be much quicker: To see if there is a solution near x=0, I would again use a Taylor expansion about x=0, but this time on tanx directly:

So:

All of the terms in the power series contain some odd power of x (since tanx is an odd function), so we can factor an x^2 from the left hand side:

So either or .

So x=0 is a solution.

Obviously, the fastest way to test if x=0 is a solution is to plug it in.

Note: This kind of technique is fairly general, one sees it in Physics alot, but usually doesn't give you anything you don't already know: we can only use it to verify a solution near one we already suspect (else the Taylor series may not converge; convergence should always be checked!) I recommend it only as a last ditch effort to solve an equation! (It can be useful, however, in approximating solutions if you know about where one should be. But if you are going to go through the trouble to do all this, you might as well use a numerical solution on the original equation.)

-Dan