How Do You Test if a System is Linear?

FrogPad
Messages
801
Reaction score
0
I basically need to know how to test a system to see if it is linear or not. The professor gave us a "recipe" to check a system. I can kinda follow the recipe, but I would like to understand it, so I have reached out to other sources. The other sources deal with operators from the beginning... thus, I am trying to understand them. The following simple example is throwing me for a loop.

Question:
Determine if the following system is linear.

y(t) = x(t-2) + x(2-t)


Answer:
A system is linear if:
H \{ \alpha x_1 +\beta x_2 \} = \alpha H\{ x_1 \} + \alpha H\{ x_2 \}

I have the solution (the answer is yes - linear), however I do not understand it. What is H\{ \} in this case?

It makes sense to me in examples such as:
y(t) = \sin(t)x(t) so \sin(t) is acting on the input x(t). But... what is acting on the input here (the x(t-2) + x(2-t) example)?

In words I imagine H to be something that yields an ouput by adding a shifted input to a shifted input. I'm kinda lost... guidance would be helpful.

thanks !
 
Last edited:
Physics news on Phys.org
FrogPad said:
I basically need to know how to test a system to see if it is linear or not. The professor gave us a "recipe" to check a system. I can kinda follow the recipe, but I would like to understand it, so I have reached out to other sources. The other sources deal with operators from the beginning... thus, I am trying to understand them. The following simple example is throwing me for a loop.

Question:
Determine if the following system is linear.

y(t) = x(t-2) + x(2-t)


Answer:
A system is linear if:
H \{ \alpha x_1 +\beta x_2 \} = \alpha H\{ x_1 \} + \alpha H\{ x_2 \}

I have the solution (the answer is yes - linear), however I do not understand it. What is H\{ \} in this case?
Well, what was "H" in your definition- it was the given system. Here H is y(t). Now, I have a question- is your "x" in the definition of y(t) a number (so that "x(t-2)" means x times t-2) or is it a function (so that x(t-2) mean x applied to t-2)? I'm going to assume that it is a number. In that case, y(t)= x(t-2)+ x(2-t)= xt- 2x+ 2x- xt= 0 for all x!

Okay, just apply your definition with y in place of H:
y(\{ \alpha t_1 +\beta t_2 \} = 0 while \alpha y(t_1)= \alpha(0)= 0 and \beta y(t_2)= \beta(0)= 0.

It makes sense to me in examples such as:
y(t) = \sin(t)x(t) so \sin(t) is acting on the input x(t). But... what is acting on the input here (the x(t-2) + x(2-t) example)?
No, x(t-2)+ x(2-t) is NOT the "input"- it's the definition of the function. Because the problem says "y(t)= ", t is the "input" and y is acting on it.

In words I imagine H to be something that yields an ouput by adding a shifted input to a shifted input. I'm kinda lost... guidance would be helpful.

thanks !
Once again, the "input" is t and y is the function. A rather trivial function if my guess about x being a number is correct. If, on the other hand, x is a function then whether y is linear depends upon whether x is linear.
 
I'm sorry I wasn't specific with my notation. I should have been.

The condition for a system to be linear would be more appropriately written as:
H \{ \alpha x_1(t) +\beta x_2(t) \} = \alpha H\{ x_1(t) \} + \alpha H\{ x_2(t) \}

\alpha, \,\,\, \beta are scalars
x_1(t) , \,\,\, x_2(t) are functions with independent variables t

Thus,
y(t) = x(t-2) + x(2-t)

If we defined an operator such that S_\lambda x(t) = x(t - \lambda). (By the way, I don't really know how to write this properly.)

Then we could write the above system as:
y(t) = S_2 x(t) + S_{-2}x(t)

I hope this explains it better. Thanks for the help HallsofIvy!
 
The reason I assumed that you were just multiplying numbers x1 and x2 is that if they are functions then whether or not y is a linear function is entirely dependent upon whether x1 and x2 are. In fact, y is linear if and only if x1 and x2 are linear.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top