Skip to main content

Is y[n] = ax[n] + b linear

Short answer

The system is linear only if b = 0; otherwise it fails superposition and the zero-input test. For b ≠ 0 it is incrementally linear, consisting of a linear part plus a constant offset.

Determine if the following system is linear y[n] = ax[n] + b

A system is linear if it obeys superposition: a1x1[n]+a2x2[n]→a1y1[n]+a2y2[n]a_1x_1[n] + a_2x_2[n] \rightarrow a_1y_1[n] + a_2y_2[n].

Given: y[n]=a x[n]+by[n] = a\,x[n] + b

Individual outputs: y1[n]=a x1[n]+by_1[n] = a\,x_1[n] + b and y2[n]=a x2[n]+by_2[n] = a\,x_2[n] + b.

Weighted sum of outputs:

a1y1[n]+a2y2[n]=a(a1x1[n]+a2x2[n])+(a1+a2) ba_1y_1[n] + a_2y_2[n] = a\left(a_1x_1[n] + a_2x_2[n]\right) + (a_1 + a_2)\,b

Output for the combined input x3[n]=a1x1[n]+a2x2[n]x_3[n] = a_1x_1[n] + a_2x_2[n]:

y3[n]=a(a1x1[n]+a2x2[n])+by_3[n] = a\left(a_1x_1[n] + a_2x_2[n]\right) + b

These are equal only if (a1+a2)b=b(a_1 + a_2)b = b for all a1,a2a_1, a_2, i.e. only if b=0b = 0.

Zero-input check: x[n]=0x[n] = 0 gives y[n]=by[n] = b. A linear system must give zero output for zero input.

Conclusion:

  • For b≠0b \ne 0 the system is non-linear. It is incrementally linear: the difference between two outputs, y1−y2=a(x1−x2)y_1 - y_2 = a(x_1 - x_2), is linear in the difference of inputs. It can be seen as a linear system a x[n]a\,x[n] plus a fixed zero-input response bb.
  • For b=0b = 0, y[n]=a x[n]y[n] = a\,x[n] is linear.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →