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
You mean besides forOriginally Posted by rabindraadhi
.
I can prove a solution exists![]()
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"
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:
Soor
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 ()
For starters,Originally Posted by c_323_h
in general. You can easily see this if you do it backward:
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 eitheror
.
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