First, we will find out the largest 4-digit number using digits 6, 1, 7, and 4.
We will start with the greatest digit 7 among given digits at the leftmost place digit. So, we will write digits in descending order for the largest number.
7641
Next, the smallest 4-digit number using digits 6, 1, 7, and 4.
We will start with the smallest digit 1 among given digits at the leftmost place digit. So, we will write digits in asxending order.
1467
Difference of these two numbers
7641−1467=6174