Solving Equations Using Bisection, Newton, and Secant Methods

Click For Summary
SUMMARY

The forum discussion focuses on solving the equation sin(x) = 0.98 cos(2x²) using the Bisection, Newton, and Secant methods over the interval [0, 2.5]. Participants confirmed that there are three solutions located approximately at 0.7, 1.8, and 2.4. The discussion emphasizes the necessity of using computational tools, such as Excel and Wolfram|Alpha, to apply these methods effectively and achieve a solution with at least 8 significant figures. Participants also highlighted the importance of understanding the behavior of the equation through graphical representation to identify the roots accurately.

PREREQUISITES
  • Understanding of Bisection Method for root finding
  • Familiarity with Newton's Method for solving equations
  • Knowledge of Secant Method for numerical analysis
  • Basic graphing skills using tools like Wolfram|Alpha or Excel
NEXT STEPS
  • Learn how to implement the Bisection Method in Excel for root finding
  • Study Newton's Method and its convergence properties in detail
  • Explore the Secant Method and its advantages over other methods
  • Practice plotting equations using Wolfram|Alpha to visualize roots
USEFUL FOR

Students, mathematicians, and engineers interested in numerical methods for solving equations, particularly those looking to enhance their skills in applying Bisection, Newton, and Secant methods effectively.

lunia
Messages
5
Reaction score
0
Task
Use the Bisection, Newton, and Secant methods to solve (to at least 8
signicant figures) the equation
sin(x) = 0.98 cos(2x2)
over the interval [0, 2.5], in radiant units. For the Newton method, try with
several different initial guesses including x0 = 1. With the Secant method,
use the same initial values as for the Bisection, as well as other appropriate
values. Comment on the results by comparing the effectiveness of
each method for this problem. In particular, compare the number of iterations
required by each method to find the solution to a specied accuracy
(at least|f(xroot)| ≤ 10−6
), and see if the behavior you observe tallies with
theoretical predictions where they have been given, in particular the order of
convergence. Provide a careful explanation on your observations.
Hint
Draw a graph of the equation to understand the behaviors of the equation,
such as the number of solutions and the locations of the roots.

p/s: basically i don't even know what this question want exactly, i do try my best to understand it but i cant. I am sorry
 
Physics news on Phys.org
Well, the hint says to start with a plot, which is also what I would do. What do you get for that?
 
i don't know how to start plot the graph actually.
 
lunia said:
i don't know how to start plot the graph actually.

Hey lunia, welcome to MHB! ;)

For quick reference, you can copy and paste your formula into Wolfram|Alpha.
The graph looks like this:
View attachment 8600

Can you tell what the number of solutions is now?
And what the locations of the roots are approximately?
 

Attachments

  • sin_vs_cosine_plot.png
    sin_vs_cosine_plot.png
    5.6 KB · Views: 139
tbe number of solutions is 3.
locations of the roots are approximately: 0.7, 1.8 and 2.4.
 
did you just copy the exactly same like the formula or how did your write it? i didn't get it yet
 
lunia said:
tbe number of solutions is 3.
locations of the roots are approximately: 0.7, 1.8 and 2.4.

Looks about right.
Couldn't there be 2 roots around 1.8 though?
lunia said:
did you just copy the exactly same like the formula or how did your write it? i didn't get it yet

I copied and pasted [M]sin(x) = 0.98 cos(2x2)[/M] into https://www.wolframalpha.com, which shows most of what you might want to know about that equation.

After that I refined it into [M]plot[sin(x) = 0.98 cos(2x2), {x, 0, 2.5}][/M] to get just the graph on the interval [0, 2.5].Anyway, to apply Bisection or any of the other methods up to 8 significant digits, you will need to use a computer or some other type of calculator.
Can you clarify how are you supposed to apply these methods?
 
i use excel to apply the method. but how to figure out the the root before as a and root after as b?
 
lunia said:
i use excel to apply the method. but how to figure out the the root before as a and root after as b?

It's not entirely trivial to do this with Excel.
Did you perhaps get something that was prepared for you?
You can google for the algorithm, but that really should have been provided to you.

Anyway, for bisection we start with the interval [0,2.5], and then make it smaller in each iteration (we 'bisect' it).
In the first iteration we consider [0,1.25] and [1.25,2.5].
If the function has opposite signs at each end of the sub interval, there must be a root in it.
We keep going with the interval that has a root until we reach the desired precision.

For Newton and the Secant method, your problem statement provides guidance how to start those methods.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
2K
  • · Replies 15 ·
Replies
15
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K