- Computing the distance between two integers on a number line
- Operations with absolute value: Problem type 1
- Integer subtraction: Problem type 2
- Integer subtraction: Problem type 1
- Integer addition: Problem type 2
- Integer addition: Problem type 1
- Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Integer subtraction: Problem type 2
In this lesson, the same rules of integer subtraction apply as discussed in previous lesson. Here problems with pttle higher level of difficulty are solved.
Subtract
−4 – (−9)
Solution
Step 1:
Rule: Two pke signs become a plus sign
So, – (−9) = + 9;
So, −4 – (−9) = −4 + 9
Step 2:
The signs of the numbers are different. So, we subtract the absolute values of the integers.
|9| – |−4| = 9 – 4 = 5
Step 3:
The sign of the number with larger absolute value (9) is +.
We keep this sign with the difference obtained in above step
So, −4 – (−9) = −4 + 9 = +5
Subtract
8 – (−2)
Solution
Step 1:
Rule: Two pke signs become a plus sign
So, – (−2) = + 2;
So, 8 – (−2) = 8 + 2
Step 2:
The signs of the number are same. So, we add the absolute values of the integers.
|8| +| 2| = 8 + 2 = 10
Step 3:
The sign of the numbers is +.
We keep this sign with the sum obtained in above step
So, 8 – (−2) = 8 + 2 = +10