# Determining if a System is Linear

After getting a few projects done today I had a bit a free time and for some reason remembered a story my Linear Systems professor told my class about a year ago. Here’s the gist: he was listening to a Master’s thesis defense that involved some sort of system. The master’s candidate had, for the entirety of the thesis research, assumed that his/her system was linear. They based this assumption on the fact that it could be modeled close to something like . My professor quickly pointed out that it is not, in fact, a linear system but the candidate vehmently argued that the equation was linear therefore the system was linear. It ended in the person not actually getting a Master’s degree but the point of the story is:

**just because a system can be represented by a linear equation does NOT make it linear!**

Why is this important? Many equations and theories rely on the assumption that a system is linear. If the system you’re working on *isn’t* linear, your life just became a bit more complicated and the techniques you used to use in school may not actually apply. Being able to recognize if a system is linear or not is a fairly useful tool to have so I’ll go over the above example where you have a system whose output is defined as where is the input to the system. As a note, I take all derivation here from the textbook **Signals and Systems** by Alan V. Oppenheim and Alan S. Willsky. It is the second edition book and the section that deals with this begins on page 53.

In order for a system to be linear, it must obey the property of superposition. That is, if I have the input to a system as the sum of two signal, , the output will be . Easy, right? Personally, I learn best by examples so I will offer the first one where I have a system whose input and output is related by . First, let’s say we have two inputs and so that we have and . Now, let’s define a third signal that is a linear combination of our two inputs and : . (b and c are arbitrary scaling constants). Finally we simply need to check if the system is linear.

If we have an input we know that the system’s output and input will be related like so: . Let’s plug in for to see if the system is linear:

Excellent! Superposition holds true so we know that the system must be linear! Now, let’s try that for a linear equation . Let’s define the output for two different signals: and . And let’s also define a third signal as the sum of the first two inputs: . (Like before, m and n are arbitrary constants). So for an input of we should expect . Plugging in for X_3 yields:

Now here I’m going to do something a bit different than the first example. I’m going to solve for and and plug them into the previous equation.

As can be seen: So this system is not linear despite the fact that the system is a linear equation! A pretty important concept (and sure to be a test question on an “Intro to Signals”-type test)!