Skip to main content
Chemistry LibreTexts

4.6: Solution

  • Page ID
    555713
  • ​

    ​

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Solution

    The Solution is for trust and alignment, not grading. It shows students what the system expected and helps instructors confirm that the checker matches the stated method.

    The solution does not affect grading, but students trust it more than the grader. A correct grader with a confusing solution still feels broken, and any mismatch creates disputes.

    How to read this code

    The solution is not a second version of the prompt. It is a short explanation that mirrors the grading logic so students can reconcile their work with what the system checked. Solutions use the same PGML syntax as the statement block. A good solution is compact, accurate, and consistent with the setup section.

    The excerpt below shows the solution block used in the example.

    BEGIN_PGML_SOLUTION
    The correct answer to the first is [$radio1->correct_ans].
    
    The correct answer to the second is [$radio2->correct_ans].
    END_PGML_SOLUTION
    

    Line notes

    How to read this code reference.
    Line or snippet What it does What you would change first
    BEGIN_PGML_SOLUTION Starts the solution block. Required for PGML solutions.
    Explanatory text Describes the correct reasoning. Keep aligned with grading.
    ->correct_ans Retrieves the expected answer. Useful for debugging.
    Inline PGML Formats output cleanly. Match statement style.
    END_PGML_SOLUTION Ends the solution block. Always required.

    If the solution disagrees with grading, students will trust the grader and distrust the explanation. Keep the solution minimal and mechanically consistent with the setup logic.

    The solution must use the same conventions the checker uses. If the checker expects the label "Blue," the solution should show "Blue," not a shorthand label or a different ordering.

    Why this exists: it clarifies the target, the method, and the reporting format that the grader expects.

    How to read this code: common edits and common failures.
    Common edits Common failures
    • State the correct option in plain language.
    • Add a short rationale for the choice.
    • Solution shows a different label than the checker.
    • Solution implies a different set of choices.

    Solution checklist

    Solution checklist: include, why, and one-sentence example.
    Include Why One-sentence example
    Restate the prompt Confirms the student is using the same choices. "The choices are Red, Blue, Green, or None of these."
    State the correct choice Makes the target explicit. "The correct answer is Blue."
    Short rationale Connects the answer to the intent. "Blue matches the prompt's condition."
    Exact label Prevents grading mismatches. "Use the same label shown in the options list."
    Format reminder Keeps expectations clear. "Select a single option."

    Debugging alignment

    Use this table as a quick alignment check: the solution should echo the same conventions the checker uses so students see the expected format.

    Debugging alignment: grading expectation and solution alignment.
    Grading expectation Solution alignment
    Correct answer by value Use the exact label from the choice list.
    Correct answer by index Show the label, not the index.
    Reordered choice list Mirror the displayed order or name the label.

    Helpful feedback hooks (optional)

    Helpful feedback hooks (optional): hook and why it helps.
    Hook Why it helps
    Short rationale line Reinforces why the correct option is correct.
    Distractor reminder Helps students distinguish near-miss options.
    Format reminder Signals that exactly one choice is expected.

    Broken example: solution contradicts grading logic

    This problem grades correctly, but the solution confuses students. The explanation no longer matches what the system actually checked.

    BEGIN_PGML_SOLUTION
    The correct answer is ATP because it has the highest energy.
    END_PGML_SOLUTION
    

    In setup, the answer checker expects ADP.

    What went wrong

    • The solution was written before the setup was finalized.
    • The grading logic changed, but the explanation did not.
    • Students see a contradiction between feedback and results.

    How to recognize it

    • Students say, "The solution says X but I was marked wrong for X."
    • Preview mode shows correct grading with an incorrect explanation.
    • Instructors trust the solution text instead of the grader.

    How to fix it

    Treat the solution as a mirror of the grading logic, not an independent explanation. When debugging, temporarily echo the computed answer in the solution to verify consistency.


    This page titled 4.6: Solution was last modified on Fri, 27 Feb 2026 15:19:56 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Neil R. Voss.