The figure below shows a rod of resistive material. Its resistance per unit length increases in the positive direction of the x axis. At any position along the rod, the resistance of a narrow section of width is given by , where is in ohms and is in meters. I want to slice off a length of the rod between and some position and then connect that length to a battery with a potential difference . I want the current in the lenght to transfer energy to thermal energy at the rate of . I am going to show how to find the position such that these conditions are met.

Since I am dealing with a resistor, I can relate the given rate of energy transfer to thermal energy, , to the Resistance, , using the equation , which is the resistive dissipation of the resistive battery. Essentially electric potential energy is converted to internal thermal energy via collisions between charge carriers and atoms. After plugging in the given voltage for the battery and the rate of thermal energy transfer, and then solving for , I obtain , which is the resistance of the battery. Next, I can integrate the given differential, , which will equal and set it equal to . I am doing this because the rate of thermal energy transfer depends upon the Resistance, which in turn depends on the length of the rod. After applying the Fundamental Theorem of Calculus to the integral and solving for , I obtain