# Where does the negative sign come from in this transfer function?

I have a transfer function that was given to me. It's been a really long time since I've done block diagram math, so sorry if this is a newbie question.

Based on the block diagram below (I forgot to edit the image, but Tin is the output y, that last arrow) I am give the equations

$$T{_i}{_n} = T{_d}{_i}_s{} - T{_m}{_o}{_t}$$

$$G{_r}{_e}{_f}{\rightarrow}{_i}{_n} = \frac{ -C(s)M(s)}{1 - C(s)M(s)}$$

I can't for the life of me figure out where the two negative signs come from in these equations. Can anybody point me in the right direction as to where these come from?

• It comes from the - sign on the summer that produces the output. Nov 5 '18 at 22:20
• I don't understand the minus sign in the output node. It's as if you put it there yourself. Why? Nov 6 '18 at 5:07
• @joeelectro The measurement in this system is steering wheel torque, whereas the output is motor torque. I think that's where the minus sign comes from. It seems to fall out of the first equation. It's extremely counterintuitive to me. But, it works out. And I have to use this equation for my experiments to work on the system this models. Nov 6 '18 at 15:26

The output signal: $$\\quad y = d-C(s)M(s)e\$$
The error signal: $$\\quad e = r-y\$$
$$y = d-C(s)M(s)[r-y]$$ $$(1-C(s)M(s))y = d-C(s)M(s)r$$ From superposition principles, take $$\d\$$ as 0 and you get the transfer function from $$\r\$$ to $$\y\$$: $$y = \frac{-C(s)M(s)}{1-C(s)M(s)}r$$
As can be seen, the minus sign comes from the first equation. If you were to redefine $$\y = d+C(s)M(s)e\$$, then the following equation would hold: $$y = \frac{C(s)M(s)}{1+C(s)M(s)}r$$