Two rods of different materials having different lengths and same cross sectional areas are joined end to end in a straight line. The free ends of this compound rod are maintained at different temperatures. The temperature gradient in each rod will be :