Please explain the direction of tension in a string .
please repply me as soon as possible
What is your coordinate system? Where is your origin, which direction is positive and which direction is negative?
Recall that at any point on a string under tension, there will be a force acting up and another force acting down the string. Furthermore, recall that these forces must be equal.
I suspect that you understand perfectly well that the string tension pulls up on both masses. What you are trying to understand is how the signs are chosen in the equations.
What you need to understand is the how the acceleration of m_1 relates to the acceleration of m_2. Since they are connected by a cord, they are constrained to move together. If you arbitrarily call the acceleration of m_1 to be "a" upward, what must be the acceleration of m_2?
Once you understand the above "acceleration constraint", you can pick a coordinate system and write your equations. For example, choose up to be + and down to be -. Use that convention and try writing the equations for each mass.
Right. And if all else fails, split your system into parts and draw your FDB with your axes included.
I am not understand please just tell me about the sign that are used in both equations.
Separate names with a comma.