Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Secant Method for Finding Roots of Equations

ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

Secant Method Formula Derivation Steps and Solved Examples

The concept of Secant Method is essential in mathematics and helps in solving real-world and exam-level problems efficiently. This numerical method is widely taught for competitive exams and university courses as a powerful tool for root finding in equations, offering an efficient way to approximate solutions without direct use of derivatives.


Understanding Secant Method

A Secant Method refers to an iterative technique used in numerical analysis to find approximations to the roots of a real-valued function. The secant method requires two initial guesses for the root and generates a sequence closer to the actual solution by drawing a secant line between two points on the function. This concept is widely used in numerical analysis, polynomial root-finding, and solving nonlinear equations, especially when the derivative of a function is difficult to determine.


Formula Used in Secant Method

The standard formula is: \( x_{n+1} = x_n - f(x_n) \times \frac{x_n - x_{n-1}}{f(x_n) - f(x_{n-1})} \)


Here, \( x_{n} \) and \( x_{n-1} \) are two previous approximations, and \( f(x) \) is the given function whose root is being found. This iterative formula does not require the explicit calculation of derivatives, unlike the Newton-Raphson method.


Step-by-Step Procedure for Secant Method

Follow these steps to apply the secant method for root finding:

1. Start with two initial guesses \( x_0 \) and \( x_1 \) such that the function changes sign between them.

2. Compute the next approximation using the formula:
\( x_2 = x_1 - f(x_1) \times \frac{x_1 - x_0}{f(x_1) - f(x_0)} \)

3. Set \( x_0 = x_1 \) and \( x_1 = x_2 \); repeat the calculation to find \( x_3 \), and so on.

4. Continue iterating until the difference between two consecutive approximations is less than a chosen tolerance (desired accuracy).

Repeat these steps for every new approximation until the root is found as precisely as required.


Worked Example – Solving a Problem

Let's solve the equation \( f(x) = x^3 - 5x + 1 = 0 \), where the root lies between \( x = 0 \) and \( x = 1 \), using the secant method for two iterations:

1. **Step 1: Initial Guesses**
Set \( x_0 = 0 \), \( f(x_0) = 1 \)
Set \( x_1 = 1 \), \( f(x_1) = -3 \)

2. **Step 2: First Iteration**
Apply formula:
\( x_2 = x_1 - \frac{f(x_1) \times (x_1 - x_0)}{f(x_1) - f(x_0)} \)
Plug values:
\( x_2 = 1 - \frac{-3 \times (1 - 0)}{-3 - 1} \)
\( x_2 = 1 - \frac{-3}{-4} \)
\( x_2 = 1 - 0.75 = 0.25 \)

Calculate \( f(x_2) \):
\( f(0.25) = (0.25)^3 - 5 \times 0.25 + 1 = 0.015625 - 1.25 + 1 = -0.234375 \)

3. **Step 3: Second Iteration**
Now, use \( x_1 = 1 \), \( f(x_1) = -3 \), \( x_2 = 0.25 \), \( f(x_2) = -0.234375 \)
\( x_3 = x_2 - \frac{f(x_2) \times (x_2 - x_1)}{f(x_2) - f(x_1)} \)
\( x_3 = 0.25 - \frac{-0.234375 \times (0.25 - 1)}{-0.234375 - (-3)} \)
\( x_3 = 0.25 - \frac{-0.234375 \times -0.75}{2.765625} \)
\( x_3 = 0.25 - \frac{0.17578125}{2.765625} \)
\( x_3 \approx 0.25 - 0.0636 = 0.1864 \) (rounded to 4 decimal places)

\( f(0.1864) = (0.1864)^3 - 5 \times 0.1864 + 1 \approx 0.0065 - 0.932 + 1 = 0.0745 \) (rounded)

Thus, after two iterations, the approximate root is about 0.1864.


Visual Representation – Secant Method Diagram

Below is a simple description of how the secant method works graphically. A secant line is drawn between two points \((x_0, f(x_0))\) and \((x_1, f(x_1))\) on the function curve. The intersection of this line with the axis gives a better root estimate, iteratively improving the solution. You can also learn about the geometric aspect of secant lines on our equation of a line page.


Secant Method vs. Newton–Raphson and Bisection Methods

Secant method, Newton–Raphson, and Bisection are all numerical root-finding methods but have different features:

Secant Method: Does not require the derivative; faster than bisection, but initial guesses must be close to the root.

Newton–Raphson: Requires the derivative of the function; usually converges fast but may fail if the derivative is zero.

Bisection Method: Very robust, slowest among the three, always converges as long as the sign change condition is met.

For more, see Bisection Method and Newton-Raphson / Newton's Theorem.


Common Mistakes to Avoid

  • Choosing initial guesses that are not close enough to the real root – may result in no convergence.
  • Dividing by zero if \( f(x_n) = f(x_{n-1}) \) during iteration.
  • Stopping iterations too soon, before reaching desired tolerance.

Real-World Applications

The secant method is applied to solve equations in physics, engineering, finance, computer science programming, especially when the derivative of a function is unknown or costly to compute. It is also used to find roots of polynomials and solve differential equations numerically. Vedantu helps students grasp these applications with practical, stepwise examples.


Practice Problems

  • Use the Secant Method to find the root of \( f(x) = x^2 - 2 \) near \( x=1 \) and \( x=2 \) (2 iterations).
  • Compare the number of steps needed for the Secant vs. Bisection Method for \( f(x) = \cos(x) - x \) on [0, 1].
  • Explain why the Secant Method might fail for \( f(x) = (x-2)^2 \).
  • Implement the Secant Method in Python to solve \( f(x) = e^x - 4 \).

Further Reading – Related Maths Topics


We explored the idea of Secant Method, how to apply it, solve related problems, and understand its real-life relevance. Practice more with Vedantu to build your confidence and master root-finding techniques for exams and practical uses.


FAQs on Secant Method for Finding Roots of Equations

1. What is the Secant Method in numerical analysis?

The Secant Method is an iterative numerical technique used to find an approximate root of a nonlinear equation f(x) = 0 without using derivatives. It replaces the derivative in Newton’s method with a secant line through two initial guesses.

  • Start with two initial approximations x₀ and x₁.
  • Draw a secant line through the points (x₀, f(x₀)) and (x₁, f(x₁)).
  • The x-intercept of this line gives the next approximation.
It is widely used in numerical methods because it is simpler than Newton-Raphson and does not require differentiation.

2. What is the formula for the Secant Method?

The iteration formula for the Secant Method is xₙ₊₁ = xₙ − f(xₙ)(xₙ − xₙ₋₁) / (f(xₙ) − f(xₙ₋₁)). This formula is derived from the equation of the secant line between two points.

  • Uses two previous approximations: xₙ and xₙ₋₁.
  • Approximates the derivative using finite differences.
  • Generates successive values until convergence.
This formula is central in solving nonlinear equations numerically.

3. How does the Secant Method work step by step?

The Secant Method works by repeatedly updating root estimates using the secant formula until the values stabilize.

  • Step 1: Choose two initial guesses x₀ and x₁.
  • Step 2: Compute x₂ using the secant formula.
  • Step 3: Replace x₀ with x₁ and x₁ with x₂.
  • Step 4: Repeat until |xₙ₊₁ − xₙ| is sufficiently small.
The process continues until the desired accuracy or tolerance level is achieved.

4. Can you give an example of the Secant Method?

Yes, the Secant Method can approximate the root of f(x) = x² − 4 using x₀ = 1 and x₁ = 3.

  • f(1) = −3, f(3) = 5
  • x₂ = 3 − [5(3 − 1)/(5 − (−3))] = 3 − (10/8) = 1.75
The next approximation is x₂ = 1.75, which moves closer to the exact root x = 2. Further iterations improve accuracy.

5. What is the difference between the Secant Method and Newton-Raphson Method?

The key difference is that the Secant Method does not require derivatives, while the Newton-Raphson Method uses the derivative f′(x).

  • Secant: Uses two initial guesses and finite difference approximation.
  • Newton-Raphson: Uses one initial guess and exact derivative.
  • Newton usually converges faster (quadratic convergence).
  • Secant has superlinear convergence but is easier when derivatives are hard to compute.
Both are root-finding algorithms in numerical analysis.

6. What are the advantages of the Secant Method?

The main advantage of the Secant Method is that it finds roots without calculating derivatives. Key benefits include:

  • No need to compute f′(x).
  • Faster convergence than the bisection method.
  • Simple implementation in computational mathematics.
It is especially useful when derivatives are difficult or expensive to evaluate.

7. What are the disadvantages of the Secant Method?

The Secant Method may fail to converge if the initial guesses are poor or if the function behaves irregularly. Limitations include:

  • No guaranteed convergence like the bisection method.
  • Division by zero risk if f(xₙ) − f(xₙ₋₁) = 0.
  • Slightly slower convergence than Newton-Raphson.
Careful choice of starting values improves stability.

8. What is the order of convergence of the Secant Method?

The order of convergence of the Secant Method is approximately 1.618 (the golden ratio), which is superlinear. This means:

  • It converges faster than linear methods like bisection.
  • It converges slower than quadratic methods like Newton-Raphson.
This superlinear convergence makes it efficient for many practical root-finding problems.

9. When should you use the Secant Method?

You should use the Secant Method when solving nonlinear equations where derivatives are difficult or unavailable. It is suitable when:

  • The function is continuous near the root.
  • Two reasonable initial guesses are known.
  • Derivative computation is costly.
It is commonly used in applied mathematics, engineering, and scientific computing.

10. What are common mistakes in the Secant Method?

A common mistake in the Secant Method is choosing poor initial guesses that lead to divergence or slow convergence. Other errors include:

  • Stopping iterations too early without checking tolerance.
  • Ignoring the case when f(xₙ) − f(xₙ₋₁) ≈ 0.
  • Arithmetic mistakes in applying the formula.
Always verify convergence using a small tolerance such as |xₙ₊₁ − xₙ| < 10⁻⁶.