We are given a linear equation in one variable: \( ax + b = 0 \)
Step 1: Subtract \( b \) from both sides of the equation \( ax = -b \)
Step 2: Divide both sides by \( a \) to isolate \( x \) \[ x = \frac{-b}{a} \]
The correct option is (D): \(-\frac{b}{a}\)