Table Question (format)

I would like to make this College Board assignment into Doenet, but I think the table may be too challenging. I was wondering if this is possible. I am working on it right now.

Derivatives and Composite Functions

I was able to come up with something. Does anyone have suggestions on how I could format it better? The table is too small so equations go onto to lines, etc.

Any help would be appreciated

Here are some suggestions that might help:

  1. Use colSpan on each cell to make that column relatively wider. We should add a way to specify the width of a column, but we don’t support that yet. Making the width 3 / 4 / 3 / 4 out of 14 improves the layout a bit.
  2. Use valign="top" so the rows line up better. (The default is “middle”.)
  3. Set header="true" and `halign=“center” on the first row so the heading comes out bold and centered.
  4. Add space after Outer Function, etc.,
  5. Remove the trailing <hr/> so cells don’t end with a line at the bottom.
  <tabular startBorder="minor" endBorder="minor" topBorder="minor"
         bottomBorder="minor" valign="top">
  <row header="true" halign="center">
    <cell colSpan="3">Function <m>h(x)</m></cell>
    <cell colSpan="4">Outer function <m>f(x)</m></cell>
    <cell colSpan="3">Inner function <m>g(x)</m></cell>
    <cell colSpan="4">Applying the chain rule</cell>
  </row>

  <row>
    <cell colSpan="3"><m>h(x)=\left(x^2+3\right)^4</m></cell>
    <cell colSpan="4">
      <p><m>f(x)=x^4</m></p>
      <hr />
      <p><m>f'(x)=4x^3</m></p>
      <hr />
      <p><m>f'\big(g(x)\big)=4\left(x^2+3\right)^3</m></p>
    </cell>
    <cell colSpan="3">
      <p><m>g(x)=x^2+3</m></p>
      <hr />
      <p><m>g'(x)=2x</m></p>
    </cell>
    <cell colSpan="4">
      <md>
        <mrow>h'(x)&amp;=f'\big(g(x)\big)\cdot g'(x)</mrow>
        <mrow>&amp;=4\left(x^2+3\right)^3\cdot 2x</mrow>
        <mrow>&amp;=8x\left(x^2+3\right)^3</mrow>
      </md>
    </cell>
  </row>
  <!-- remaining rows: same colSpan 3/4/3/4 pattern, no trailing <hr /> -->
</tabular>

Thank you for the help. It did clean up the columns more, but most of the functions and answers boxes end up covering multiple lines. Is there a way I can make the font smaller? Maybe that could help get the equations in column 1 in one row.

Hi Nick, what about something like this? Doenet

<!-- 
Course:    Calculus, BC Calculus
Chapter:   Unit 3
Section:  Topic 3.1 The Chain rule
Author:    Nicholas Bennett, Fall 2026
Contact:   nbennett@flinthill.org
Source:    AP Classroom Student Handouts
-->

<cascade revealAll>
  <title>
    Derivatives and Composite Functions
  </title>
    <introduction>
      Each of the functions <m>h(x)</m> given in the first column below is a composite function <m>f\big(g(x)\big)</m>. What is the outer function <m>g(x)</m>? What is the inner function <m>f(x)</m>? Complete the table below, simplifying the expression for <m>h'(x)</m>, the derivative of <m>h(x)</m> in the last column. 
    </introduction>
      <hr></hr>
<tabular startBorder="minor" endBorder="minor" topBorder="minor"
         bottomBorder="minor" valign="top">
  <row header="true" halign="center"  bottomBorder="medium">
    <cell colSpan="4">Outer function <m>f(x)</m></cell>
    <cell colSpan="3">Inner function <m>g(x)</m></cell>
    <cell colSpan="4">Applying the chain rule</cell>
  </row>

  <row>
    <cell colSpan="11"><p>Example: <m>h(x)=\left(x^2+3\right)^4</m></p></cell>
  </row>
  <row bottomBorder="medium">
    <cell colSpan="4">
      <p><m>f(x)=x^4</m></p>
      <hr />
      <p><m>f'(x)=4x^3</m></p>
      <hr />
      <p><m>f'\big(g(x)\big)=4\left(x^2+3\right)^3</m></p>
    </cell>
    <cell colSpan="3">
      <p><m>g(x)=x^2+3</m></p>
      <hr />
      <p><m>g'(x)=2x</m></p>
    </cell>
    <cell colSpan="4">
      <md>
        <mrow>h'(x)&amp;=f'\big(g(x)\big)\cdot g'(x)</mrow>
        <mrow>&amp;=4\left(x^2+3\right)^3\cdot 2x</mrow>
        <mrow>&amp;=8x\left(x^2+3\right)^3</mrow>
      </md>
    </cell>
  </row>

  <row>
    <cell colSpan="11"><p>1. <m>h(x)=\sqrt{3x^5+2x-4}</m></p></cell>
  </row>
          <row bottomBorder="medium">
            <cell colSpan="4">
              <p>
                <answer>
                  <label>
                    <m>f(x)=</m>
                  </label>
                    x^(1/2)
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>f'(x)=</m>
                  </label>
                  (1/2)x^(-1/2)
                </answer>
              </p>
                <hr></hr>
            <p>
              <answer>
                <label>
                  <m>f'\big(g(x)\big)\cdot g'(x)=</m>
                </label>
                  (1/2)(3x^5+2x-4)^(-1/2)
              </answer>
            </p>
            </cell>

            <cell colSpan="3">
              <p>
                <answer>
                  <label>
                    <m>g(x)=</m>
                  </label>
                    3x^5+2x-4
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>g'(x)=</m>
                  </label>
                    15x^4+2
                </answer>
              </p>
            </cell>

            <cell colSpan="4">
              <answer><label><m>h'(x)=f'\big(g(x)\big)\cdot g'(x)</m></label>
(15x^4+2)/(2(3x^5+2x-4)^(1/2))
                </answer>
                    
            </cell>
          </row>


  <row>
    <cell colSpan="11"><p>2. <m>h(x)=\left(3x-1\right)^6</m></p></cell>
  </row> 
          <row bottomBorder="medium">
            <cell colSpan="4">
              <p>
                <answer>
                  <label>
                    <m>f(x)=</m>
                  </label>
                    x^6
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>f'(x)=</m>
                  </label>
                    6x^5
                </answer>
              </p>
                <hr></hr>
            <p>
              <answer>
                <label>
                  <m>f'\big(g(x)\big)\cdot g'(x)=</m>
                </label>
                  6(3x-1)^5
              </answer>
            </p>
            </cell>

            <cell colSpan="3">
              <p>
                <answer>
                  <label>
                    <m>g(x)=</m>
                  </label>
                    3x-1
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>g'(x)=</m>
                  </label>
                  3
                </answer>
              </p>
            </cell>

            <cell colSpan="4">
              <answer><label><m>h'(x)=f'\big(g(x)\big)\cdot g'(x)</m></label>
                     18(3x-1)^5
                </answer>
            </cell>
          </row>


 <row>
    <cell colSpan="11"><p>3. <m>h(x)=\dfrac{1}{2x^3+1}</m></p></cell>
  </row> 
          <row bottomBorder="medium">
            <cell colSpan="4">
              <p>
                <answer>
                  <label>
                    <m>f(x)=</m>
                  </label>
                   x^(-1)
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>f'(x)=</m>
                  </label>
                    -x^(-2)
                </answer>
              </p>
                <hr></hr>
            <p>
              <answer>
                <label>
                  <m>f'\big(g(x)\big)\cdot g'(x)=</m>
                </label>
                  -1/((2x^3+1)^(2))
              </answer>
            </p>
            </cell>

            <cell colSpan="3">
              <p>
                <answer>
                  <label>
                    <m>g(x)=</m>
                  </label>
                    2x^3+1
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>g'(x)=</m>
                  </label>
                    6x^2
                </answer>
              </p>
            </cell>

            <cell colSpan="4">
              <answer><label><m>h'(x)=f'\big(g(x)\big)\cdot g'(x)</m></label>
                -(6x^2)/((2x^3+1)^2)
                </answer>
            </cell>
          </row>



 <row>
    <cell colSpan="11"><p>4. <m>h(x)=\left(3+6\sqrt{x}\right)^{2/3}</m></p></cell>
  </row> 
          <row bottomBorder="medium">
            <cell colSpan="4">
              <p>
                <answer>
                  <label>
                    <m>f(x)=</m>
                  </label>
                    x^(2/3)
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>f'(x)=</m>
                  </label>
                    (2/3)x^(-1/3)
                </answer>
              </p>
                <hr></hr>
            <p>
              <answer>
                <label>
                  <m>f'\big(g(x)\big)\cdot g'(x)=</m>
                </label>
                  (2/3)(3+6x^(1/2))^(-1/3)
              </answer>
            </p>
            </cell>

            <cell colSpan="3">
              <p>
                <answer>
                  <label>
                    <m>g(x)=</m>
                  </label>
                    3+6x^(1/2)
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>g'(x)=</m>
                  </label>
                    3x^(-1/2)
                </answer>
              </p>
            </cell>

            <cell colSpan="4">
              <answer><label><m>h'(x)=f'\big(g(x)\big)\cdot g'(x)</m></label>
                  2x^(-1/2)(3+6x^(1/2))^(-1/3)
                </answer>
            </cell>
          </row>


 <row>
    <cell colSpan="11"><p>5. <m>h(x)=\dfrac{4}{\left(2x^2-x-1\right)^3}</m></p></cell>
  </row> 
          <row>
            <cell colSpan="4">
              <p>
                <answer>
                  <label>
                    <m>f(x)=</m>
                  </label>
                    4/(x^3)
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>f'(x)=</m>
                  </label>
                    -12x^(-4)
                </answer>
              </p>
                <hr></hr>
            <p>
              <answer>
                <label>
                  <m>f'\big(g(x)\big)\cdot g'(x)=</m>
                </label>
                  -12/((2x^2-x-1)^4)
              </answer>
            </p>
            </cell>

            <cell colSpan="3">
              <p>
                <answer>
                  <label>
                    <m>g(x)=</m>
                  </label>
                    2x^2-x-1
                </answer>
              </p>
                 <hr></hr>
              <p>
                <answer>
                  <label>
                    <m>g'(x)=</m>
                  </label>
                    4x-1
                </answer>
              </p>
            </cell>

            <cell colSpan="4">
              <answer><label><m>h'(x)=f'\big(g(x)\big)\cdot g'(x)</m></label>
                  (-12(4x-1))/((2x^2-x-1)^4)
                </answer>
            </cell>
          </row>

          
        </tabular>
  
</cascade>type or paste code here

much nicer, thank you!