Root Locus Calculator

Analyze the stability and performance of control systems by exploring the root locus of your open-loop transfer function. Input your system's poles and zeros to visualize the root locus properties and understand system response.

Calculate Root Locus Properties

Enter the real and imaginary parts of your open-loop poles. For real poles, enter 0 for the imaginary part. Example: -2, 0; -1, 3 (for -1+j3).

Enter the real and imaginary parts of your open-loop zeros. Example: -1, 0; -0.5, 0.

Select the unit for displaying asymptote and departure/arrival angles.

Root Locus Analysis Results

Number of Root Locus Branches: 0

Number of Asymptotes: 0

Asymptote Centroid: N/A

Asymptote Angles: N/A

Jω-axis Crossings: Calculating jω-axis crossings and breakaway/break-in points for generic systems is complex and beyond the scope of this simplified calculator. These often require advanced numerical methods or symbolic solvers.

Breakaway/Break-in Points: Calculating jω-axis crossings and breakaway/break-in points for generic systems is complex and beyond the scope of this simplified calculator. These often require advanced numerical methods or symbolic solvers.

Pole-Zero Map

Visual representation of the open-loop poles (X) and zeros (O) in the s-plane. Poles are red 'X', Zeros are blue 'O'.

Summary of Open-Loop Poles and Zeros

Open-Loop System Characteristics
Type Real Part Imaginary Part Complex Form

What is a Root Locus Calculator?

A root locus calculator is an indispensable tool for control systems engineers and students, designed to analyze the stability and performance of a control system. It graphically depicts the paths of the closed-loop poles in the complex s-plane as a system parameter, typically the open-loop gain (K), is varied from zero to infinity. This visual representation, known as the root locus, provides crucial insights into how a system's behavior changes with varying gain.

Engineers use the root locus to:

  • Determine the stability of a closed-loop system.
  • Predict the transient response (e.g., damping ratio, natural frequency, settling time, overshoot).
  • Design controllers by selecting an appropriate gain K to achieve desired performance specifications.
  • Understand the impact of adding poles or zeros to a system.

Common misunderstandings often arise regarding the root locus calculator. It is not a frequency domain analysis tool like a Bode plot or Nyquist plot, but rather a time-domain analysis tool, though it uses the complex frequency 's' (s-plane). Users sometimes confuse open-loop poles/zeros with closed-loop poles. This calculator focuses on the open-loop poles and zeros, which are the *starting points* for the root locus branches, and then calculates the properties that define the paths of the *closed-loop poles*.

Root Locus Formula and Explanation

The root locus is derived from the characteristic equation of a closed-loop system, which is typically given by:

1 + K G(s)H(s) = 0

Where:

  • K is the open-loop gain.
  • G(s) is the forward path transfer function.
  • H(s) is the feedback path transfer function.
  • G(s)H(s) represents the open-loop transfer function, often expressed as a ratio of polynomials: N(s) / D(s).

The roots of this characteristic equation are the closed-loop poles. The root locus plots these roots as K varies from 0 to . The open-loop poles are the roots of D(s) = 0, and the open-loop zeros are the roots of N(s) = 0.

Key Rules for Constructing a Root Locus:

  1. Number of Branches: The number of root locus branches is equal to the number of finite open-loop poles (n). Each branch starts at an open-loop pole (K=0) and ends at an open-loop zero (finite or at infinity, K=∞).
  2. Symmetry: The root locus is symmetric with respect to the real axis.
  3. Real Axis Segments: A point on the real axis is part of the root locus if the total number of open-loop poles and zeros to its right is odd.
  4. Asymptotes: If there are more poles than zeros (n > m), then n-m branches go to infinity along asymptotes.
    • Number of Asymptotes: N_a = n - m
    • Centroid of Asymptotes (σ_a): The point on the real axis from which the asymptotes originate.
      σ_a = (Σ poles - Σ zeros) / (n - m)
    • Angles of Asymptotes (φ_a):
      φ_a = (2k + 1) * 180° / (n - m)    for k = 0, 1, ..., n - m - 1
      (or (2k + 1)π / (n - m) in radians)
  5. Breakaway/Break-in Points: These are points on the real axis where multiple branches of the root locus depart from or arrive at the real axis. They occur where dK/ds = 0.
  6. Angle of Departure/Arrival: For complex poles/zeros, the angle at which the root locus leaves a pole or enters a zero can be calculated using the angle condition.
  7. Intersection with Imaginary (jω) Axis: The points where the root locus crosses the jω-axis indicate the onset of instability. These can be found using the Routh-Hurwitz criterion or by setting s = jω in the characteristic equation.

Variables Used in Root Locus Analysis

Key Variables and Their Meanings
Variable Meaning Unit (Commonly) Typical Range
`s` Complex frequency variable in the s-plane Unitless (or `1/s`) Any complex number
`K` Open-loop gain Unitless `0` to `∞`
`G(s)H(s)` Open-loop transfer function Unitless Function of `s`
Poles Roots of `D(s)=0` (open-loop poles) Unitless (s-plane coordinates) Any complex number
Zeros Roots of `N(s)=0` (open-loop zeros) Unitless (s-plane coordinates) Any complex number
`n` Number of finite open-loop poles Unitless Positive integer
`m` Number of finite open-loop zeros Unitless Non-negative integer
`σ_a` Centroid of asymptotes Unitless (real part of s-plane) Any real number
`φ_a` Angles of asymptotes Degrees or Radians `0` to `360` degrees (or `0` to `2π` radians)

Practical Examples of Root Locus Analysis

Understanding the root locus calculator through examples helps solidify its application in control system stability and design.

Example 1: Simple Second-Order System

Consider an open-loop transfer function:

G(s)H(s) = K / (s * (s + 2))

Inputs:

  • Poles: `0`, `-2`
  • Zeros: None
  • Angle Unit: Degrees

Calculations by the root locus calculator:

  • Number of Poles (n): 2
  • Number of Zeros (m): 0
  • Number of Branches: 2
  • Number of Asymptotes (n-m): 2
  • Centroid (σ_a): `(0 + (-2)) / (2 - 0) = -1`
  • Asymptote Angles (φ_a):
    • For k=0: `(2*0 + 1) * 180 / 2 = 90°`
    • For k=1: `(2*1 + 1) * 180 / 2 = 270°`

Interpretation: The root locus starts at 0 and -2. They break away from the real axis between 0 and -2 (at the centroid -1) and follow asymptotes at 90° and 270° (vertically upwards and downwards) towards infinity. This system remains stable for all positive K, but its damping decreases as K increases, eventually becoming purely oscillatory at K=infinity.

Example 2: System with a Zero

Consider an open-loop transfer function:

G(s)H(s) = K * (s + 1) / (s * (s + 2) * (s + 3))

Inputs:

  • Poles: `0`, `-2`, `-3`
  • Zeros: `-1`
  • Angle Unit: Degrees

Calculations by the root locus calculator:

  • Number of Poles (n): 3
  • Number of Zeros (m): 1
  • Number of Branches: 3
  • Number of Asymptotes (n-m): 2
  • Centroid (σ_a): `(0 + (-2) + (-3) - (-1)) / (3 - 1) = (-5 + 1) / 2 = -4 / 2 = -2`
  • Asymptote Angles (φ_a):
    • For k=0: `(2*0 + 1) * 180 / 2 = 90°`
    • For k=1: `(2*1 + 1) * 180 / 2 = 270°`

Interpretation: Here, one branch starts at 0 and ends at the zero at -1. The other two branches start at -2 and -3, break away from the real axis, and follow asymptotes at 90° and 270° from the centroid -2. The presence of the zero at -1 pulls one branch to the left, which can improve stability or transient response compared to a system without that zero. This example demonstrates how zeros can shape the root locus and influence system response analysis.

How to Use This Root Locus Calculator

Our root locus calculator is designed for ease of use, providing quick insights into your control system's behavior. Follow these steps:

  1. Input Open-Loop Poles: In the "Open-Loop Poles" section, use the "Add Pole" button to add rows. For each pole, enter its real and imaginary parts. For example, a pole at `s = -2` would be entered as Real: `-2`, Imaginary: `0`. A complex conjugate pair like `s = -1 ± j3` would require two entries: `Real: -1, Imaginary: 3` and `Real: -1, Imaginary: -3`.
  2. Input Open-Loop Zeros: Similarly, in the "Open-Loop Zeros" section, add rows and enter the real and imaginary parts of your system's zeros.
  3. Select Angle Unit: Choose whether you want asymptote angles to be displayed in "Degrees" or "Radians" using the dropdown menu. Degrees are generally more intuitive for root locus plots.
  4. Calculate Properties: Click the "Calculate Root Locus Properties" button. The calculator will process your inputs and display the key characteristics of the root locus.
  5. Interpret Results:
    • The Primary Result highlights the "Number of Root Locus Branches," which is always equal to the number of open-loop poles.
    • The Intermediate Results provide the number of asymptotes, their centroid (the point on the real axis from which they originate), and their angles. These values are crucial for sketching the root locus.
    • The calculator also notes the complexity of calculating jω-axis crossings and breakaway/break-in points for generic systems, as these often require advanced numerical methods.
  6. View Pole-Zero Map: The interactive chart displays the open-loop poles (X marks in red) and zeros (O marks in blue) on the complex s-plane. This map is the foundation for the root locus and updates dynamically with your inputs.
  7. Review Table Summary: A table provides a clear list of all entered poles and zeros, including their complex form, for easy verification.
  8. Copy Results: Use the "Copy Results" button to quickly copy all calculated properties to your clipboard for documentation or further analysis.
  9. Reset: The "Reset" button clears all inputs and returns the calculator to its default state.

Key Factors That Affect the Root Locus

The shape and characteristics of the root locus are critically influenced by several factors related to the open-loop transfer function. Understanding these helps in control system design and analysis:

  1. Number of Open-Loop Poles (n): This determines the number of branches in the root locus. Each branch starts at an open-loop pole. A higher number of poles generally leads to more complex locus shapes and can push branches into the right-half plane, indicating instability.
  2. Location of Open-Loop Poles: Poles in the right-half plane (RHP) immediately indicate an unstable open-loop system, and the root locus must move away from them. Poles closer to the imaginary axis or the origin make the system slower or less damped. Dominant poles (those closest to the jω-axis) dictate the system's transient response.
  3. Number of Open-Loop Zeros (m): Zeros "attract" root locus branches. Each finite zero terminates one branch as K approaches infinity. More zeros can pull the root locus branches into the left-half plane, often improving stability and transient response.
  4. Location of Open-Loop Zeros: Zeros in the left-half plane (LHP) tend to improve system stability and speed up response. Zeros close to the origin or to dominant poles have a strong influence. Zeros in the RHP (non-minimum phase zeros) can make the system exhibit undesirable inverse response characteristics.
  5. Relative Degree (n-m): This is the difference between the number of poles and zeros. It determines the number of asymptotes and their angles. A larger relative degree means more branches head towards infinity, potentially making it harder to stabilize the system or achieve desired performance at high gains.
  6. Open-Loop Gain (K): While K is the parameter that varies along the root locus, its range (typically 0 to ∞) defines the movement of the closed-loop poles. The choice of K determines the final position of the closed-loop poles, directly impacting the system's damping ratio, natural frequency, and ultimately, its stability and transient response.

Each of these factors contributes to the overall transfer function analysis and the effectiveness of feedback control.

Frequently Asked Questions (FAQ) about Root Locus

Q1: What is the primary purpose of a root locus calculator?

A: The primary purpose of a root locus calculator is to help control engineers and students visualize how the closed-loop poles of a system move in the complex s-plane as the open-loop gain (K) varies. This visualization is critical for analyzing system stability, predicting transient response, and designing controllers.

Q2: What is the difference between open-loop and closed-loop poles?

A: Open-loop poles are the roots of the denominator of the open-loop transfer function G(s)H(s) (when K=0). Closed-loop poles are the roots of the characteristic equation 1 + K G(s)H(s) = 0. The root locus shows the paths of these closed-loop poles as K changes, starting at open-loop poles and ending at open-loop zeros (or infinity).

Q3: Why are asymptotes important in root locus analysis?

A: Asymptotes are important because they indicate the direction in which the root locus branches move towards infinity when the number of poles is greater than the number of zeros (n > m). They provide a guide for sketching the root locus, especially for high values of gain K, and help predict the system's behavior at large gains.

Q4: What are breakaway and break-in points? How are they found?

A: Breakaway points are where root locus branches leave the real axis, and break-in points are where they return to the real axis. They occur when multiple roots of the characteristic equation coincide on the real axis. Mathematically, they are found by solving dK/ds = 0. This calculator provides a note on their complexity, as finding these points for generic polynomial systems can be challenging without symbolic computation.

Q5: How does a zero affect the root locus and system stability?

A: A zero "attracts" a root locus branch, meaning one branch will terminate at each finite open-loop zero as K approaches infinity. Zeros generally pull the root locus towards the left-half plane, which can improve system stability, increase damping, and speed up the transient response. They can also significantly alter the shape of the locus.

Q6: What does it mean if the root locus crosses the jω-axis?

A: If the root locus crosses the jω-axis (imaginary axis), it indicates that the closed-loop system becomes marginally stable or unstable at that specific gain K. Poles on the jω-axis lead to sustained oscillations, while poles in the right-half plane lead to unbounded, unstable responses. Determining these crossing points is vital for stability analysis.

Q7: Why are there no specific units for poles and zeros in the s-plane?

A: While 's' technically represents complex frequency (often `radians/second` or `1/second`), the s-plane coordinates (poles and zeros) are typically treated as unitless points for root locus analysis. The focus is on their relative positions and their real/imaginary values, which directly influence stability and response characteristics, rather than their absolute units.

Q8: What are the limitations of this root locus calculator?

A: This root locus calculator provides essential properties and a Pole-Zero Map. However, due to the complexity of symbolic and numerical root-finding in client-side JavaScript without external libraries, it does not dynamically plot the full root locus paths, nor does it calculate exact breakaway/break-in points or jω-axis crossings for generic high-order systems. It focuses on the fundamental, algebraically derivable characteristics.

Related Tools and Internal Resources

To further enhance your understanding and capabilities in control systems engineering, explore these related tools and resources:

🔗 Related Calculators