First vs Second Law of Thermodynamics: Difference

The first law is conservation of energy: a system's change in internal energy equals the energy added by heating plus the work done on it. The second law fixes the direction: the total entropy of an isolated system never decreases. A process can satisfy the first law and still be impossible.

AP Physics: Unit 9 (topics 9.3 Thermal Energy Transfer and Equilibrium, 9.4 The First Law of Thermodynamics, 9.6 Entropy and the Second Law of Thermodynamics). Both laws sit in AP Physics 2 Unit 9, Thermodynamics, which carries 15 to 18 percent of the multiple-choice section over a suggested 10 to 16 class periods. The first law is Topic 9.4: essential knowledge 9.4.B.1 calls it a restatement of conservation of energy that accounts for energy transferred into or out of a system by work, heating, or cooling; 9.4.B.1.i covers the isolated case and 9.4.B.1.ii gives delta U = Q + W for a closed system; 9.4.B.1.iii defines W = -P delta V as the work done on a system by a constant or average external pressure. The second law is Topic 9.6: 9.6.A.1 states that the total entropy of an isolated system can never decrease and is constant only when all processes the system undergoes are reversible, 9.6.A.2 describes entropy qualitatively as the tendency of energy to spread or the unavailability of some of the system's energy to do work, and 9.6.A.3.ii distinguishes isolated from closed systems. The Topic 9.6 boundary statement limits the course to qualitative treatment of the second law, and no entropy equation appears on the AP Physics 2 equation sheet. The direction of spontaneous thermal transfer is fixed earlier still, at 9.3.A.3 in Topic 9.3.

One law does the accounting, the other picks the direction

The first law is a balance sheet. Essential knowledge 9.4.B.1 calls it a restatement of conservation of energy that accounts for energy transferred into or out of a system by work, heating, or cooling. For a closed system it is written

ΔU=Q+W\Delta U = Q + W

and it tells you how much internal energy changed. It says nothing about whether the process you just balanced can actually happen.

The second law is a direction sign. Essential knowledge 9.6.A.1 states that the total entropy of an isolated system can never decrease, and is constant only when all processes the system undergoes are reversible. That single restriction is what stops a lukewarm cup of coffee from separating into a scalding half and a freezing half while its total energy stays exactly the same.

Every useful thing on this page comes out of that asymmetry. The first law is an equation and both sides of it run happily backwards: play any energy-conserving film in reverse and the joules still add up. The second law is an inequality, and an inequality has a preferred direction. It is the only statement in AP Physics 2 that distinguishes the future from the past.

So the two are not competing accounts of the same thing, and they are not a stronger and a weaker version of one idea. They answer different questions. How much is the first law. Which way is the second.

Side by side

First lawSecond law
What it statesEnergy is conserved. For a closed system, ΔU=Q+W\Delta U = Q + WThe total entropy of an isolated system can never decrease
CED statement9.4.B.1 and 9.4.B.1.ii9.6.A.1
Quantity it tracksInternal energy UU, in joulesEntropy, described in words
On the AP Physics 2 sheetΔU=Q+W\Delta U = Q + W and W=PΔVW = -P\Delta VNothing. No entropy equation is printed
Question it answersHow much energy moved?Which way will it move?
Mathematical formAn equalityAn inequality, with equality only in the reversible case
What it forbidsEnergy appearing from nowhere or vanishingA hotter system spontaneously getting hotter at a cooler one's expense
Run the process backwardsStill satisfiedUsually violated
AP treatmentQuantitative, on the sheet, in calculationsQualitative only, by boundary statement
Isolated systemTotal energy is constant (9.4.B.1.i)Entropy never decreases (9.6.A.3.ii)
Closed systemΔU=Q+W\Delta U = Q + W (9.4.B.1.ii)Entropy may decrease (9.6.A.3.ii)

The last two rows are the pair that gets misquoted. Isolated and closed are not synonyms in this course. An isolated system exchanges nothing, so its total energy is constant and its entropy cannot fall. A closed system exchanges energy but not matter, so it has a first law with real QQ and WW terms in it, and 9.6.A.3.ii says its entropy is free to decrease because energy can be transferred into or out of it. A freezer lowers the entropy of the water in the tray. It is not a counterexample to anything, because the tray is not isolated.

The case that separates them: two blocks and 4500 joules

Put two identical metal blocks in contact inside a perfect insulator, one at 20 C20 \ ^\circ\mathrm{C} and one at 80 C80 \ ^\circ\mathrm{C}. Each has mass 0.50 kg0.50 \ \mathrm{kg} and specific heat 900 J/(kgK)900 \ \mathrm{J/(kg \cdot K)}.

Now propose an outcome: the cold block cools to 10 C10 \ ^\circ\mathrm{C} and the hot block warms to 90 C90 \ ^\circ\mathrm{C}.

Run the first law over it. Using Q=mcΔTQ = mc\Delta T, the cold block gives up (0.50)(900)(10)=4500 J(0.50)(900)(10) = 4500 \ \mathrm{J} and the hot block takes in exactly (0.50)(900)(10)=4500 J(0.50)(900)(10) = 4500 \ \mathrm{J}. The pair is isolated, the totals cancel, and the energy of the whole system is unchanged. The first law is satisfied to the joule. There is no accounting error to find, because there is no accounting error.

The process still never happens, and the reason is not energetic. Essential knowledge 9.3.A.3 states that energy is transferred through thermal processes spontaneously from a higher-temperature system to a lower-temperature system, and 9.3.A.3.i explains the mechanism: in collisions between atoms from different systems, energy is most likely to be transferred from higher-energy atoms to lower-energy atoms. Concentrating energy in the hot block runs the wrong way, and 9.6.A.2.i puts the point as a tendency: localized energy will tend to disperse and spread out.

What does happen is the outcome the second law allows. Energy runs from the hot block into the cold one until both sit at 50 C50 \ ^\circ\mathrm{C}, which is thermal equilibrium by 9.3.A.4. That transfer is (0.50)(900)(30)=13500 J(0.50)(900)(30) = 13500 \ \mathrm{J} in each direction of the ledger, and the first law is satisfied by this outcome exactly as well as it was by the forbidden one. Both outcomes pass the first law. Only one passes the second. That is the whole page in two sentences.

The first law in AP form, and why every sign follows from one decision

The AP Physics 2 equation sheet prints two lines in the Thermal Physics box that have to be read together:

ΔU=Q+WW=PΔV\Delta U = Q + W \qquad W = -P\Delta V

and its own symbol key settles the convention: QQ is energy transferred to a system by heating, and WW is work done on a system. Essential knowledge 9.4.B.1.iii matches it, defining W=PΔVW = -P\Delta V as the work done on a system by a constant or average external pressure that changes the volume of that system.

That minus sign is not decoration. It exists to force the sign of WW to agree with the phrase "on the system":

ProcessΔV\Delta VWWReading
Gas is compressedNegativePositiveEnergy goes into the gas
Gas expandsPositiveNegativeEnergy leaves the gas
Volume held fixedZeroZeroNo work either way
System is heatedQ>0Q > 0Energy goes into the system
System is cooledQ<0Q < 0Energy leaves the system

Plenty of textbooks write the first law as ΔU=QW\Delta U = Q - W with WW meaning work done by the gas. That version is self-consistent and returns identical physics. Mixing the two inside one problem is what produces an internal energy change with the wrong sign and no warning, because the arithmetic never complains. Use the sheet's version, and translate any other source before you substitute.

Reading work off a diagram, handling multi-step paths and closing a cycle belong to the PV diagrams guide. What matters here is that none of that machinery has any opinion about direction. You can compute QQ, WW and ΔU\Delta U for a process that the second law rules out, and every number will be correct.

How far AP Physics 2 takes the second law

Further than most students expect on the concepts, and not one step into the algebra. The boundary statement under Topic 9.6 is one line:

> Only qualitative treatment of the second law of thermodynamics is within the scope of AP Physics 2.

Render the Table of Information appendix and the Thermal Physics box confirms it. The box prints P=F/AP = F_\perp / A, KavgK_{avg}, the conduction rate, the ideal gas law, U=32nRTU = \frac{3}{2}nRT, W=PΔVW = -P\Delta V, ΔU=Q+W\Delta U = Q + W and Q=mcΔTQ = mc\Delta T. There is no SS anywhere on the sheet, no ΔS=Q/T\Delta S = Q/T, and no efficiency formula. A second-law answer is written in sentences, and it earns its points by naming an essential knowledge statement rather than by producing a number.

What you are expected to be able to say:

  • Entropy is qualitative here. 9.6.A.2 describes it as the tendency of energy to spread, or the unavailability of some of the system's energy to do work. The CED never uses the word "disorder" and never mentions microstates, so an answer built on tidiness has nothing to stand on.
  • Entropy is a state function (9.6.A.2.ii), depending only on the current state or configuration of a system and not on how the system reached that state. Internal energy is a state function too. QQ and WW are not, which is why two paths between the same endpoints can carry different amounts of each and still land on the same ΔU\Delta U.
  • Maximum entropy occurs at thermodynamic equilibrium (9.6.A.2.iii), and isolated systems spontaneously move toward it (9.6.A.3.i).
  • The equality case is reversibility. 9.6.A.1 says entropy is constant only when all processes the system undergoes are reversible. Quote the statement without that clause and you have turned a careful law into a false one.

Heat engines appear in this unit only as an essential question in the unit opener, and the course sets no efficiency to calculate. If a problem seems to want a Carnot efficiency, it is not an AP Physics 2 problem.

When it costs a mark

Answering a direction question with an energy argument. Asked why energy will not flow from the cold block to the hot one, a first-law answer says the totals still balance, which is true and worth nothing. The point is in 9.3.A.3 or in the entropy statement, and a response that only conserves energy has answered a question nobody asked.

"Entropy always increases." Two words too strong in two places. The law is about the total entropy of an isolated system, and 9.6.A.3.ii is explicit that a closed system's entropy can decrease. A refrigerator is the standard trap, and the correct move is to widen the system until it is isolated.

Dropping the reversibility clause. "Entropy never decreases" is the half of 9.6.A.1 that people remember. "And is constant only when all processes the system undergoes are reversible" is the half that makes it precise.

Sign slips in the first law. Substituting a positive WW for an expansion is the classic. Expansion means ΔV>0\Delta V > 0, so W=PΔVW = -P\Delta V is negative on the AP convention, and ΔU\Delta U comes out too large by twice the work if you get it backwards.

Treating ΔU=0\Delta U = 0 as Q=0Q = 0. In an isothermal process the internal energy of an ideal gas does not change, so Q=WQ = -W: energy still crosses the boundary in both forms, and they cancel. Zero net change is not zero traffic. The isothermal vs adiabatic comparison separates that pair.

Writing an entropy equation. There is nothing to substitute into. A quantitative entropy calculation on an AP Physics 2 response is not wrong so much as out of scope, and it usually replaces the qualitative justification that was actually being scored.

Where they agree, and why that hides the asymmetry

For a whole unit's worth of problems the two laws never disagree, and that is exactly why the difference goes unnoticed until it is examined.

Every process you are asked to compute already obeys both. Problems hand you a compression, an isobaric expansion, a cycle. All of them are physically possible, so the second law is silently satisfied before you pick up a pencil and the first law does all the visible work. The second law only shows its teeth on a process someone has proposed and you have to reject.

In the reversible limit they meet. 9.6.A.1's equality case is the idealization where total entropy holds still. A reversible process runs equally well in both directions, so the second law stops distinguishing them, and the first law is all that is left. No real process reaches that limit, which is why the equality case is a boundary rather than a description.

Both are silent about the same thing: rate. Neither law tells you how long any of this takes. That belongs to the conduction relation in Topic 9.5, QΔt=kAΔTL\frac{Q}{\Delta t} = \frac{kA\Delta T}{L}, and it is a separate question from whether the transfer happens at all.

One last coincidence worth naming. For an isolated system the first law says the total energy is constant and the second says the total entropy is nondecreasing. Both are statements about an isolated system, both use the word "total", and the sentences look parallel. They are not: one is a conserved quantity and the other is a quantity with a preferred direction. Conservation and direction are different properties, and a system can hold one fixed while the other climbs.

Where this sits on the AP exam

Both laws live in Unit 9, Thermodynamics, which carries 15 to 18 percent of the multiple-choice section over a suggested 10 to 16 class periods. They are separate topics and the split is the one this page describes.

Topic 9.4, The First Law of Thermodynamics, builds internal energy first (9.4.A.1: the sum of the kinetic energy of the objects making up the system and the potential energy of the configuration of those objects), notes that an ideal gas has no internal potential energy because its atoms do not interact via conservative forces (9.4.A.1.i), and then states the law. Its suggested skills are 1.C, 2.A, 2.C and 3.C, so sketching a graph and comparing two scenarios are as likely as a calculation.

Topic 9.6, Entropy and the Second Law of Thermodynamics, carries skills 1.A, 2.C, 3.B and 3.C. Two of those four are argument skills, which is what a qualitative-only topic looks like on a skills list.

Direction also appears one topic earlier than most people look. 9.3.A.3, in Thermal Energy Transfer and Equilibrium, already fixes the spontaneous direction of energy transfer before entropy has been named. A question about why the cold object warms up can be answered from Topic 9.3 alone.

For the mechanics of the first law on a diagram, see the PV diagrams guide. For the two ways energy crosses a boundary, see heat vs work. For the difference between energy in transit and energy already inside a system, compare the glossary entries for heat and internal energy.

An isobaric compression: both laws applied to the same process

A gas in a cylinder is compressed at a constant pressure of 1.5×105 Pa1.5 \times 10^5 \ \mathrm{Pa} from a volume of 0.040 m30.040 \ \mathrm{m^3} to 0.025 m30.025 \ \mathrm{m^3}. During the compression the gas transfers 3000 J3000 \ \mathrm{J} out by cooling. (a) Find the work done on the gas. (b) Find the change in internal energy. (c) Does the temperature rise or fall? (d) What must be true of the surroundings, and which law tells you?

  1. (a) Use the sheet's definition with the AP sign convention. ΔV=0.0250.040=0.015 m3\Delta V = 0.025 - 0.040 = -0.015 \ \mathrm{m^3}.

  2. W=PΔV=(1.5×105)(0.015)=+2250 JW = -P\Delta V = -(1.5 \times 10^5)(-0.015) = +2250 \ \mathrm{J}. Positive, as it must be: compressing a gas puts energy into it.

  3. (b) Cooling means energy leaves, so Q=3000 JQ = -3000 \ \mathrm{J}. Then ΔU=Q+W=3000+2250=750 J\Delta U = Q + W = -3000 + 2250 = -750 \ \mathrm{J}.

  4. (c) The gas is monatomic-ideal on this course's model, and the sheet gives U=32nRTU = \frac{3}{2}nRT, so UU and TT move together. ΔU\Delta U is negative, so the temperature falls. Compressing a gas does not always heat it: here the cooling removed more than the compression supplied.

  5. (d) Energy left the gas by a thermal process, and 9.3.A.3 says thermal transfer happens spontaneously from higher temperature to lower temperature. So the surroundings must be at a lower temperature than the gas throughout. That is the second law's contribution, and note that parts (a) to (c) never needed it.

W=+2250 JW = +2250 \ \mathrm{J}, ΔU=750 J\Delta U = -750 \ \mathrm{J}, and the temperature falls. The surroundings must be cooler than the gas. The first law produced all three numbers; only the last claim required the second law.

The process that balances and still cannot happen

Two identical blocks sit in thermal contact inside a perfect insulator. Each has mass 0.50 kg0.50 \ \mathrm{kg} and specific heat 900 J/(kgK)900 \ \mathrm{J/(kg \cdot K)}. Block A starts at 20 C20 \ ^\circ\mathrm{C} and block B at 80 C80 \ ^\circ\mathrm{C}. A student claims that A will cool to 10 C10 \ ^\circ\mathrm{C} while B warms to 90 C90 \ ^\circ\mathrm{C}. (a) Test the claim against the first law. (b) Test it against the second law. (c) Find the outcome that actually occurs and the energy transferred.

  1. (a) Use Q=mcΔTQ = mc\Delta T for each block. Block A: QA=(0.50)(900)(10)=4500 JQ_A = (0.50)(900)(-10) = -4500 \ \mathrm{J}.

  2. Block B: QB=(0.50)(900)(+10)=+4500 JQ_B = (0.50)(900)(+10) = +4500 \ \mathrm{J}.

  3. Sum: QA+QB=4500+4500=0Q_A + Q_B = -4500 + 4500 = 0. The pair is isolated, so 9.4.B.1.i requires the total energy to be constant, and it is. The first law passes the claim.

  4. (b) Now the direction. 9.3.A.3 states that energy is transferred spontaneously from a higher-temperature system to a lower-temperature system, and the claim has energy moving from the 20 C20 \ ^\circ\mathrm{C} block into the 80 C80 \ ^\circ\mathrm{C} one. It also concentrates energy rather than spreading it, against 9.6.A.2.i. The second law rejects the claim.

  5. (c) The blocks have equal mass and equal specific heat, so the common final temperature is the average: Tf=(20+80)/2=50 CT_f = (20 + 80)/2 = 50 \ ^\circ\mathrm{C}.

  6. Check by energy balance rather than by symmetry. B cools by 30 K30 \ \mathrm{K}: QB=(0.50)(900)(30)=13500 JQ_B = (0.50)(900)(-30) = -13500 \ \mathrm{J}. A warms by 30 K30 \ \mathrm{K}: QA=(0.50)(900)(+30)=+13500 JQ_A = (0.50)(900)(+30) = +13500 \ \mathrm{J}. The sum is zero, so this outcome also satisfies the first law.

  7. Both outcomes conserve energy. Only the second reaches thermal equilibrium, which 9.6.A.3.i names as the state an isolated system spontaneously moves toward.

The claim conserves energy exactly, 4500 J4500 \ \mathrm{J} out of A and 4500 J4500 \ \mathrm{J} into B, and is still impossible. The real outcome is both blocks at 50 C50 \ ^\circ\mathrm{C} after 13500 J13500 \ \mathrm{J} moves from B to A.

A full cycle, and an engine the books would allow

A gas is taken around a closed cycle and returns to its starting state. Over the cycle it absorbs 900 J900 \ \mathrm{J} by heating during one part and releases 640 J640 \ \mathrm{J} by cooling during another. (a) What is ΔU\Delta U for the complete cycle, and why? (b) Find the net work done on the gas. (c) How much work did the gas do on its surroundings? (d) A student proposes redesigning the cycle so the gas absorbs the same 900 J900 \ \mathrm{J}, releases nothing, returns to the same state, and delivers all 900 J900 \ \mathrm{J} as work. Does the first law object? Does anything?

  1. (a) ΔU=0\Delta U = 0. Internal energy depends only on the state, and the gas has returned to the state it started in. On the sheet's monatomic model U=32nRTU = \frac{3}{2}nRT, and the same state means the same TT.

  2. (b) Net heating over the cycle: Q=+900640=+260 JQ = +900 - 640 = +260 \ \mathrm{J}.

  3. Apply the first law to the whole cycle: 0=Q+W0 = Q + W, so W=260 JW = -260 \ \mathrm{J}. The work done on the gas is negative.

  4. (c) Work done on the gas being 260 J-260 \ \mathrm{J} means the gas did 260 J260 \ \mathrm{J} of work on its surroundings. This is the useful output of one cycle.

  5. (d) First law on the proposal: ΔU=0\Delta U = 0 still, so 0=900+W0 = 900 + W and W=900 JW = -900 \ \mathrm{J}, meaning 900 J900 \ \mathrm{J} of work delivered. The books balance perfectly and the first law raises no objection at all.

  6. The second law does. 9.6.A.2 describes entropy as, among other things, the unavailability of some of the system's energy to do work. A cycle that converts an entire thermal input into work with nothing released is precisely the case that phrase excludes. AP Physics 2 keeps this qualitative, so the answer cites the statement rather than computing an efficiency.

ΔU=0\Delta U = 0, W=260 JW = -260 \ \mathrm{J} on the gas, so the gas does 260 J260 \ \mathrm{J} of work on the surroundings each cycle. The all-work redesign satisfies the first law exactly and is ruled out by the second.

Frequently asked questions

What is the difference between the first and second law of thermodynamics?

The first law is conservation of energy applied to a system that can be heated, cooled or worked on: for a closed system the change in internal energy equals the energy added by heating plus the work done on the system, written as delta U = Q + W. It tells you how much energy moved. The second law states that the total entropy of an isolated system can never decrease, and is constant only when every process the system undergoes is reversible. It tells you which way energy will move. A process that satisfies the first law can still be forbidden by the second, which is why the two are separate laws rather than one.

Can a process obey the first law and still be impossible?

Yes, and that is the clearest way to see why the second law exists. Put a cold block and a hot block together in an insulator and imagine the cold one giving 4500 J to the hot one. Energy is conserved to the joule, so the first law is satisfied. It never happens, because AP Physics 2 essential knowledge 9.3.A.3 states that energy transfers spontaneously from a higher-temperature system to a lower-temperature system, and because concentrating energy runs against entropy increasing. Conservation of energy is a necessary condition for a process, not a sufficient one.

Does AP Physics 2 ask you to calculate entropy?

No. The boundary statement under Topic 9.6 says only qualitative treatment of the second law of thermodynamics is within the scope of AP Physics 2, and the equation sheet carries no entropy equation: the Thermal Physics box prints the ideal gas law, the internal energy of a monatomic ideal gas, W = -P delta V, delta U = Q + W, Q = mc delta T, the conduction rate, average kinetic energy and pressure, and nothing with an S in it. Second-law answers are written as justifications, usually by citing the direction of spontaneous energy transfer or the tendency of energy to spread.

Why does the AP equation sheet write the first law as delta U = Q + W?

Because the sheet defines W as the work done on the system, stated in its own symbol key, and pairs it with W = -P delta V. With that pairing a compression gives a negative delta V and therefore a positive W, correctly saying energy went into the gas. Many textbooks instead write delta U = Q - W with W meaning work done by the gas, which is equally consistent and gives identical answers. The error to avoid is mixing them inside one problem, because the arithmetic will not warn you.

Does the second law say entropy always increases?

Not quite, and both missing qualifiers cost marks. The AP statement is that the total entropy of an isolated system can never decrease, and is constant only when all processes the system undergoes are reversible. It is about an isolated system, and essential knowledge 9.6.A.3.ii adds that the entropy of a closed system can decrease, because energy can be transferred into or out of it. A freezer lowering the entropy of the water inside it breaks nothing: the water is not isolated.

Which law explains why heat flows from hot to cold?

The second law, and in AP Physics 2 the statement arrives before entropy is even introduced. Essential knowledge 9.3.A.3 says energy is transferred through thermal processes spontaneously from a higher-temperature system to a lower-temperature system, with 9.3.A.3.i giving the microscopic reason: in collisions between atoms of the two systems, energy is most likely to pass from higher-energy atoms to lower-energy ones. The first law is neutral on the question, since transfer in either direction conserves energy equally well.