Unit 01 · Lesson 08 of 08

First law of thermodynamics

Every joule needs an account

Choose the boundary, name the transfers, and identify the energy stores. The first law makes the story quantitative; efficiency asks how much of the input serves your intended purpose.

Bring the ideas together

What you’ll be able to do
  • Apply ΔE=Q−W\Delta E=Q-W with a stated sign convention.
  • Include kinetic and potential energy changes when needed.
  • Distinguish conservation from useful-output efficiency.
Before you touch the controls

If a system loses heat while being compressed, must its internal energy fall?

Explore the modelChange a control and follow the response
Symbolic relationship and unit checkΔU=Q−W−ΔKE−ΔPE\Delta U=Q-W-\Delta KE-\Delta PE[Q]=[W]=[ΔU]=J[Q]=[W]=[\Delta U]=\mathrm J
Piston cylinder, volume 1.6 liters; -30 joules of heat in and -80 joules of work by gasFixed mass; boundary may move
ΔU=Q−W−ΔKE\Delta U=Q-W-\Delta KE50 J

Closed system; ΔPE=0.\Delta PE = 0. A negative W is work input. The piston and arrows indicate transfer direction; geometry is schematic.

01

Write the balance before inserting numbers.

For a closed system, the first law is ΔU+ΔKE+ΔPE=Q−W\Delta U+\Delta KE+\Delta PE=Q-W. Here Q is heat into the system and W is work done by it. Work input is therefore negative W. A control volume needs additional energy terms associated with flowing mass; do not silently apply this fixed-mass equation to a pump.

ΔU=Q−W−ΔKE−ΔPE\Delta U=Q-W-\Delta KE-\Delta PE
02

Signs carry physical meaning.

Compression can increase internal energy even while heat leaves. The net outcome depends on the magnitudes. If Q=−30JQ = -30 \mathrm{J} and W=−80J\mathrm{W} = -80 \mathrm{J}, the total stored energy rises by 50 J. A negative transfer is not an error; it indicates a direction opposite your chosen positive convention.

03

Useful is a design decision.

For an ordinary work-output device such as a motor or pump, energy efficiency is useful output divided by input. The remainder is not destroyed; it appears in other energy transfers or stores. A heat pump uses a different metric, coefficient of performance, because its purpose is to move heat rather than convert input work entirely into heat.

η=Euseful,outEin\eta=\frac{E_{useful,out}}{E_{in}}
04

A cycle returns to its initial state.

When a system completes a cycle, all its state properties return to their initial values, so the net change in stored energy is zero. For a closed-system cycle, net heat transfer equals net work. The first law enforces accounting but does not by itself guarantee that a proposed process is physically achievable.

A worked example

Cooling and compression at the same time.

Symbolic relationship and unit checkΔU=Q−W−ΔKE−ΔPE\Delta U=Q-W-\Delta KE-\Delta PE[Q]=[W]=[ΔU]=J[Q]=[W]=[\Delta U]=\mathrm J
  1. A closed gas loses 30 J of heat, so Q=−30JQ = -30 \mathrm{J}. External compression does 80 J of work on it, so W=−80J\mathrm{W} = -80 \mathrm{J}.
  2. ΔE=Q−W\Delta E=Q-W = −30 − (−80) = +50 J.
  3. If KE and PE are unchanged, ΔU = +50 J. Work input more than compensates for heat loss.
Make the idea your own

Predict, calculate, and question the model

Try each problem before opening its solution. Then change a value to test whether the reasoning still holds.

01 · Calculate

Watch the signs during compression.

A closed gas loses 30 J of heat and receives 80 J of compression work. Neglect kinetic and potential energy changes. Find ΔU.

A small hint

Work input is negative when W is defined as work done by the system.

Explore the visual solution
Piston cylinder, volume 2 liters; -30 joules of heat in and -80 joules of work by gasFixed mass; boundary may move
ΔU=Q−W\Delta U=Q-W50 J

Q = −30 J and W = −80 J. The minus sign before W turns work input into an energy gain.

What if you change it?

The visual responds to your control. The worked steps below use the original question.

Symbolic relationship and unit checkΔU=Q−W−ΔKE−ΔPE\Delta U=Q-W-\Delta KE-\Delta PE[Q]=[W]=[ΔU]=J[Q]=[W]=[\Delta U]=\mathrm J
Original question · Step 1 of 3

Q=−30JQ = -30 \mathrm{J}; W=−80J\mathrm{W} = -80 \mathrm{J}.

Carry this forward. State the convention, then translate each physical direction into a signed quantity.

02 · Calculate

Where does a motor’s input go?

A motor receives 500 J and delivers 350 J of shaft work. It returns to the same stored-energy state. Find its energy efficiency and the energy transferred elsewhere.

A small hint

Use useful shaft output in the numerator.

Explore the visual solution
Energy efficiency70%

Input stays at 500 J. Useful output+otheroutput + other transfers=inputtransfers = input when stored energy is unchanged.

What if you change it?

The visual responds to your control. The worked steps below use the original question.

Symbolic relationship and unit checkη=Euseful,out/Ein\eta=E_{useful,out}/E_{in}[η]=J/J=1[\eta]=\mathrm{J/J}=1
Original question · Step 1 of 3

Efficiency=350/500=0.70=70Efficiency = 350/500 = 0.70 = 70%.

Carry this forward. Efficiency measures the desired outcome; conservation accounts for every outcome.

03 · Challenge

Complete a cycle with a missing transfer.

A closed system completes a cycle. It receives 900 J of heat in one stage, rejects 500 J in another, and has no other heat transfer. Find net work by the system. If one stage requires 100 J of work input, how much work must the other stages deliver in total?

A small hint

For a cycle, ΔE=0.\Delta E = 0. Net work includes both work input and output.

Explore the visual solution
Closed-system cycle returning to its original stateComplete cycleΔE = 0

Net work=900−500=400Jwork = 900 - 500 = 400 \mathrm{J}. Gross output=netoutput = net work+100Jwork + 100 \mathrm{J}.

What if you change it?

The visual responds to your control. The worked steps below use the original question.

Symbolic relationship and unit checkΔEcycle=0,Wnet=Qnet\Delta E_{cycle}=0,\quad W_{net}=Q_{net}[Wnet]=[Qnet]=J[W_{net}]=[Q_{net}]=\mathrm J
Original question · Step 1 of 3

Net heat=900−500=400Jheat = 900 - 500 = 400 \mathrm{J}. Over the cycle, ΔE=0.\Delta E = 0.

Carry this forward. Net and gross transfers answer different questions. Keep both directions visible.

Synthesis challenge

Compare two scenarios and defend the difference

First calculate scenario A. Then change only heat into gas from 50 kJ to 80 kJ. Predict the direction, calculate scenario B, and find the signed difference B − A in the model’s reported quantity (K). Explain whether a proportionate change in the input produces a proportionate change in the output.

Other inputs: Shaft work input: 20 kJ. The difference concerns the model’s displayed answer, not necessarily the graph’s vertical coordinate.

Explore the comparison and worked solution
Piston cylinder, volume 2 liters; 50 joules of heat in and 0 joules of work by gasFixed mass; boundary may moveA sealed gas receives heat and shaft work. Heat input (kJ) versus Temperature change (K). Selected result 48.7465 K. Work input is negative work by the gas. Heat can leave while shaft work still raises internal energy.-13.928-4034.8193083.565100Temperature change (K)Heat input (kJ)
Set up before calculating

Symbolic relationship

ΔU=Q−Wb−Ws,ΔT=Q+Ws,inmcv\Delta U=Q-W_b-W_s,\qquad \Delta T=\frac{Q+W_{s,\mathrm{in}}}{mc_v}

Dimensions and units

[ΔT]=kJkg kJ/(kg K)=K[\Delta T]=\frac{\mathrm{kJ}}{\mathrm{kg}\,\mathrm{kJ/(kg\,K)}}=\mathrm K
Heat into gasQ=(50 kJ)Q=\left(50\,\mathrm{kJ}\right)
Shaft work inputWs,in=(20 kJ)W_{s,in}=\left(20\,\mathrm{kJ}\right)

The result is reported in K. Convert inputs to the model’s unit system before evaluating.

ΔT=(50 kJ)+(20 kJ)(2 kg)(0.718 kJ/(kg K))ΔT=50+202(0.718)=48.747 K\begin{gathered}\Delta T=\frac{(50\,\mathrm{kJ})+(20\,\mathrm{kJ})}{(2\,\mathrm{kg})(0.718\,\mathrm{kJ/(kg\,K)})}\\\Delta T=\frac{50+20}{2(0.718)}=48.747\,\mathrm K\end{gathered}

Work input is negative work by the gas. Heat can leave while shaft work still raises internal energy.

Model assumptions and units

Rigid sealed tank with 2 kg ideal gas, cv = 0.718 kJ/(kg K); unchanged bulk kinetic and potential energy. Rigid means Wb = 0, not zero shaft work.

ΔU=Q−Wb−Ws,ΔT=Q+Ws,inmcv\Delta U=Q-W_b-W_s,\qquad \Delta T=\frac{Q+W_{s,\mathrm{in}}}{mc_v}
Set up before calculating

Symbolic relationship

ΔU=Q−Wb−Ws,ΔT=Q+Ws,inmcv\Delta U=Q-W_b-W_s,\qquad \Delta T=\frac{Q+W_{s,\mathrm{in}}}{mc_v}

Dimensions and units

[ΔT]=kJkg kJ/(kg K)=K[\Delta T]=\frac{\mathrm{kJ}}{\mathrm{kg}\,\mathrm{kJ/(kg\,K)}}=\mathrm K
Heat into gasQ=(50 kJ)Q=\left(50\,\mathrm{kJ}\right)
Shaft work inputWs,in=(20 kJ)W_{s,in}=\left(20\,\mathrm{kJ}\right)

The result is reported in K. Convert inputs to the model’s unit system before evaluating.

  1. Evaluate the symbolic relationship using scenario A, keeping the displayed units on its inputs.ΔT=(50 kJ)+(20 kJ)(2 kg)(0.718 kJ/(kg K))ΔT=50+202(0.718)=48.747 K\begin{gathered}\Delta T=\frac{(50\,\mathrm{kJ})+(20\,\mathrm{kJ})}{(2\,\mathrm{kg})(0.718\,\mathrm{kJ/(kg\,K)})}\\\Delta T=\frac{50+20}{2(0.718)}=48.747\,\mathrm K\end{gathered}
  2. Change only the selected input and recompute scenario B.ΔT=(80 kJ)+(20 kJ)(2 kg)(0.718 kJ/(kg K))ΔT=80+202(0.718)=69.638 K\begin{gathered}\Delta T=\frac{(80\,\mathrm{kJ})+(20\,\mathrm{kJ})}{(2\,\mathrm{kg})(0.718\,\mathrm{kJ/(kg\,K)})}\\\Delta T=\frac{80+20}{2(0.718)}=69.638\,\mathrm K\end{gathered}
  3. Subtract like quantities.ΔR=RB−RA=(69.6379 K)−(48.7465 K)=(20.8914 K)\Delta R=R_B-R_A=\left(69.6379\,\mathrm{K}\right)-\left(48.7465\,\mathrm{K}\right)=\left(20.8914\,\mathrm{K}\right)

Work input is negative work by the gas. Heat can leave while shaft work still raises internal energy.

Walk through the assumptions

What we assumed: Rigid sealed tank with 2 kg ideal gas, cv = 0.718 kJ/(kg K); unchanged bulk kinetic and potential energy. Rigid means Wb = 0, not zero shaft work.

What changes: If the tank can expand, some energy goes into boundary work. The same heat and shaft-work input then need not produce the same temperature rise. If mass can escape, use a control-volume balance that includes the energy carried by the escaping fluid.

Your learning path

You’ve reached the end of Unit 1.

Mark this lesson complete when you can explain the main idea and work through its practice. Completion is your choice.

Completion is saved on this browser.