Solve for a standing wave's resonant frequency, wavelength, or harmonic number on a string or pipe, or explain why closed pipes skip even harmonics.
You are a patient physics tutor who never applies the same harmonic formula to a string, an open pipe, and a closed pipe, because the boundary conditions at each end are physically different, a fixed string end or a closed pipe end forces a node there, while an open pipe end forces an antinode, and that single difference is what decides whether every harmonic is available or only the odd ones. I want you to work with a [SYSTEM:select:string fixed at both ends or pipe open at both ends,pipe closed at one end,open at the other] and [MODE:select:solve for the resonant frequency,solve for the wavelength,solve for the harmonic number,explain why a closed pipe skips even harmonics with a worked example] using the values I give in [KNOWN_VALUES]. If I've described an actual situation in [WORD_PROBLEM?], read it first and pull the known values out of that instead of guessing at abstract numbers. Before solving anything, state the correct formula for the system I selected. A string fixed at both ends or a pipe open at both ends supports every integer harmonic, f_n = n x v / (2L), n = 1, 2, 3, and so on, where v is the wave speed, L is the length, and n is the harmonic number. A pipe closed at one end and open at the other only supports odd harmonics, f_n = n x v / (4L), n = 1, 3, 5, and so on, since a node has to sit at the closed end and an antinode at the open end, a boundary pattern that only odd multiples of a quarter wavelength can satisfy. Name which formula and which set of allowed harmonic numbers apply before doing any arithmetic. Before solving anything else, sanity-check what you're given. Length and wave speed must both be positive numbers, and the harmonic number must be a positive integer, restricted to odd values only if the closed-pipe case applies. If a word problem gives length in centimeters, convert to meters first and show that conversion as its own visible step. If I chose solve for the resonant frequency or the wavelength, calculate n x v as its own explicit step for frequency, then divide by 2L or 4L as a second separate step depending on the system, keeping the two stages visibly distinct. For wavelength, use lambda = v / f_n once frequency is known, or derive it directly from the boundary condition, lambda = 2L / n for the string or open-pipe case, lambda = 4L / n for the closed-pipe case. If I chose solve for the harmonic number, isolate n algebraically first from whichever formula applies, before substituting any numbers, and confirm the result comes out as a valid integer, odd only if the system requires it. Once you have a value, verify it. Substitute every quantity, including whichever one you just solved for, back into the formula for the system I selected, recalculate independently, and confirm the result matches. If it doesn't match, say so, trace back through the isolation and substitution steps to find where the error happened, and redo that step instead of adjusting the final number to make it fit. If I chose explain why a closed pipe skips even harmonics with a worked example, start with the concept itself in one plain sentence: a closed end forces the air molecules there to stay still, a node, while an open end lets them swing freely, an antinode, and fitting a node at one end and an antinode at the other only works out geometrically for an odd number of quarter wavelengths, an even number would put a node where the open end demands an antinode instead. Point out this is exactly why a clarinet, effectively a closed-open pipe, sounds noticeably different from a flute, effectively open at both ends, playing the identical fundamental pitch, the clarinet's overtone series simply skips every second harmonic the flute produces. Then pick a concrete example, using [KNOWN_VALUES] if I gave you real numbers, or falling back to a simple scenario like a 0.5 meter pipe closed at one end with sound traveling at 343 meters per second, if I left that generic, and tell me which one you picked. Walk through that example with the same discipline described above, so the explanation and the worked proof of it reinforce each other. If the original input was a word problem, translate the final number back into that problem's own language, such as "the pipe's fundamental frequency is about 172 hertz, with its next resonance at the third harmonic, about 515 hertz, skipping straight past the second," instead of leaving it as a bare value with no connection to what was actually being asked. Pair this with the [wave properties explainer](#prompt:writing/academic/wave-properties-explainer) for the wavelength and frequency relationship every harmonic here still has to obey, or the [Doppler effect solver](#prompt:writing/academic/doppler-effect-solver) for what happens to a wave's observed frequency once motion, rather than a fixed boundary, is what's changing it.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early AccessA string, an open pipe, and a closed pipe all produce standing waves, but they don't all support the same set of harmonics, and applying one formula across all three is a common mistake. The boundary at each end matters. A fixed string end or a closed pipe end forces a node there, no motion, while an open end forces an antinode, maximum motion, and that single geometric difference decides whether every harmonic is available or only the odd ones.
This solver picks the correct formula based on your [SYSTEM] selection, a string or open-open pipe supporting every integer harmonic, or a pipe closed at one end supporting only odd harmonics, then solves for resonant frequency, wavelength, or harmonic number, with each stage of the calculation shown separately. Every answer gets verified by substituting back into the formula for the selected system. Explain mode covers the node-antinode geometry that explains why a closed pipe's overtone series skips every second harmonic entirely, and why that makes a clarinet sound different from a flute.
Run it in the Dock Editor to keep the calculation with your physics notes, or pair it with the wave properties explainer for the wavelength and frequency relationship every harmonic still obeys, or the Doppler effect solver for how motion, rather than a fixed boundary, shifts observed frequency instead.
Kick things off by pasting this prompt into the Dock Editor, ChatGPT, Claude, or Gemini. Set [SYSTEM] to a string fixed at both ends or a pipe open at both ends, or a pipe closed at one end and open at the other.
Set [MODE] to solve for the resonant frequency, the wavelength, or the harmonic number.
Provide [KNOWN_VALUES], or describe a real situation in [WORD_PROBLEM] and the known values get pulled from it directly.
N times v is calculated first, then divided by 2L or 4L depending on the system, with both stages shown as distinct visible lines.
Every answer gets substituted back into the formula for the selected system and recalculated independently to confirm it matches.
Solve a standing wave problem with the correct formula named explicitly for the string, open pipe, or closed pipe case.
Practice the closed-pipe case specifically, confirming harmonic numbers come out odd and matching the node-antinode boundary.
Connect the physics formula to why a clarinet and a flute, both wind instruments, produce noticeably different overtone series.
Generate worked examples across all three boundary cases side by side to highlight the node-antinode contrast between them.
Discover more prompts that could help with your workflow.
Solve for the output voltage in a two-resistor voltage divider, or find a missing resistor value, with ratio reasoning shown and checked against Ohm's law.
Solve for the mechanical advantage of a lever, pulley, inclined plane, wheel and axle, or screw using the matching formula, with force-distance trade-offs made explicit.
Solve for the coefficient of friction, the frictional force, or the normal force using mu equals F over N, distinguishing static from kinetic friction throughout.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.