# Nakafa Framework: LLM
URL: /en/subject/high-school/11/mathematics/polynomial/addition-subtraction-polynomial
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/11/mathematics/polynomial/addition-subtraction-polynomial/en.mdx
Output docs content for large language models.
---
import { LineEquation } from "@repo/design-system/components/contents/line-equation";
import { getColor } from "@repo/design-system/lib/color";
export const metadata = {
  title: "Addition and Subtraction of Polynomials",
  description: "Master polynomial addition and subtraction with step-by-step examples. Learn like terms, horizontal & vertical methods, plus graphical visualization.",
  authors: [{ name: "Nabil Akbarazzima Fatih" }],
  date: "05/04/2025",
  subject: "Polynomial",
};
## Basic Concepts
The operations of addition and subtraction on polynomials are essentially the same as for other algebraic forms: we can only add or subtract **like terms**.
### What Are Like Terms?
**Like terms** are terms that have the **exact same variables and variable powers**. The coefficients of these terms can be different.
**Examples of Like Terms:**
-  (all have the variable  to
  the power of 1)
-  (all have the variable  to
  the power of 3)
-  (all
  have the variable  to the power of 2,  to
  the power of 1, and  to the power of 3)
**Examples of Unlike Terms:**
-  and  (different powers of 
  )
-  and  (different powers of 
  )
-  and  (different powers of 
  )
-  and  (missing
  the variable )
-  and  (different
  powers of  and )
## Polynomial Addition
To add two polynomials, we simply **add the coefficients of like terms**.
**Horizontal Method:**
1.  Write both polynomials in parentheses connected by a plus sign.
2.  Remove the parentheses.
3.  Group the like terms.
4.  Add the coefficients of each group of like terms (use the distributive property).
**Example:**
Find the result of .
  
  
  
  
  
## Polynomial Subtraction
To subtract two polynomials, we **change the sign of each term in the polynomial being subtracted**, then add them as usual.
**Horizontal Method:**
1.  Write both polynomials in parentheses connected by a minus sign.
2.  Remove the parentheses. **Remember:** change the sign of each term in the second parenthesis (distribute the negative sign).
3.  Group the like terms.
4.  Add the coefficients of each group of like terms.
**Example:**
Find the result of .
  
  
  
  
  
  
Note: When subtracting, the negative sign in front of the parenthesis changes the sign of _every_ term inside that parenthesis.
## Vertical Method
Besides the horizontal method, polynomial addition and subtraction can also be done using the vertical method, similar to adding and subtracting regular numbers.
**Steps:**
1.  Arrange both polynomials vertically.
2.  Ensure like terms are aligned in the same column.
3.  If a term is missing in one of the polynomials, leave a blank space or write a coefficient of 0.
4.  Add or subtract the coefficients in each column.
**Example of Vertical Addition:**
**Example of Vertical Subtraction:**
Both methods (horizontal and vertical) will yield the same answer. Choose the method that you find most comfortable and easiest to understand.
## Graphical Addition and Subtraction of Polynomial Functions
Besides performing operations algebraically, we can also understand polynomial addition and subtraction visually through their graphs.
Suppose we have three graphs of polynomial functions:
  
        Graph of 
      >
    }
    description="Linear Function (Degree 1)"
    showZAxis={false}
    cameraPosition={[0, 0, 15]}
    data={[
      {
        points: Array.from({ length: 51 }, (_, i) => {
          const x = -2.5 + i * 0.1;
          return { x, y: x + 1, z: 0 };
        }),
        color: getColor("SKY"),
        showPoints: false,
      },
    ]}
  />
  
        Graph of 
      >
    }
    description="Degree 4 Function"
    showZAxis={false}
    cameraPosition={[0, 0, 15]}
    data={[
      {
        points: Array.from({ length: 51 }, (_, i) => {
          const x = -2.5 + i * 0.1;
          return { x, y: 0.5 * x ** 4 - 2 * x ** 2 + 1, z: 0 };
        }),
        color: getColor("LIME"),
        showPoints: false,
      },
    ]}
  />
  
        Graph of 
      >
    }
    description="Degree 3 Function"
    showZAxis={false}
    cameraPosition={[0, 0, 15]}
    data={[
      {
        points: Array.from({ length: 51 }, (_, i) => {
          const x = -2.5 + i * 0.1;
          return { x, y: -0.5 * x ** 3 + 1.5 * x, z: 0 };
        }),
        color: getColor("AMBER"),
        showPoints: false,
      },
    ]}
  />
### Sketching the Graph of the Sum/Difference
Without needing the exact equations of functions , , or , we can sketch the graph of their sum (e.g., ) or difference (e.g., ) as follows:
1.  Choose several identical  values on both graphs.
2.  For each  value, read the  value from each graph. Let  and .
3.  **For addition ():** Calculate the value .
4.  **For subtraction ():** Calculate the value .
5.  Plot the point .
6.  Repeat for several other  values.
7.  Connect the new points with a smooth curve.
**Why does this work?**
Because the definition of function addition or subtraction is to add or subtract their output values () for each corresponding input value ().
### Example Sketches
Here are example sketches of the graphs resulting from the sum  and difference , obtained by vertically adding/subtracting the y-values for each x.
  
        Graph of ,{" "}
        , and{" "}
        
      >
    }
    description={
      <>
        The result of  is{" "}
        
      >
    }
    showZAxis={false}
    cameraPosition={[0, 0, 15]}
    data={[
      {
        points: Array.from({ length: 51 }, (_, i) => {
          const x = -2.5 + i * 0.1;
          return { x, y: x + 1 + (0.5 * x ** 4 - 2 * x ** 2 + 1), z: 0 };
        }),
        color: getColor("VIOLET"),
        showPoints: false,
      },
    ]}
  />
  
        Graph of ,{" "}
        , and{" "}
        
      >
    }
    description={
      <>
        The result of  is{" "}
        
      >
    }
    showZAxis={false}
    cameraPosition={[0, 0, 15]}
    data={[
      {
        points: Array.from({ length: 51 }, (_, i) => {
          const x = -2.5 + i * 0.1;
          return { x, y: x + 1 - (0.5 * x ** 4 - 2 * x ** 2 + 1), z: 0 };
        }),
        color: getColor("PINK"),
        showPoints: false,
      },
    ]}
  />
In the same way, you can sketch the graphs of . The key is to add or subtract the heights (y-values) of the original graphs at each corresponding x-value.