\documentclass{article}
\usepackage[a4paper, portrait, margin=0.5in]{geometry}
\usepackage[table]{xcolor}
\usepackage[most]{tcolorbox}
\usepackage{amsmath}
\usepackage{multirow}
\begin{document}
\large
\renewcommand{\arraystretch}{1.5}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\raggedright\arraybackslash}m{#1}}
\begin{center}
\begin{tabular}{ | M{1.5cm} | M{9.5cm} | M{1cm} | M{4.5cm} |}
\hline
\centering \multirow{6}{*}{1} &
$f(3) = 100$
\par \medskip
$a=\dfrac{50}{21}-\dfrac{13}{42}b$ & \hfill \textbf{A} & B
\tabularnewline
\cline{2-4}
& $3x^2-x-4=(3x-4)(x+1)$ & \hfill \textbf{C} & D
\tabularnewline
\cline{2-4}
& \vspace{0.15cm} $f(-1) = 0$ or $f(\dfrac{4}{3}) = 0$
\par \medskip
$b=-\dfrac{2}{3}a$ & \hfill \textbf{E} & F
\tabularnewline
\cline{2-4}
& $a=3, \; b=-2$ & \hfill \textbf{G} & H
\tabularnewline
\hline
\end{tabular}
\end{center}
\end{document}
This code gives the following output:
The bottom \dfrac at rows AB and EF are getting cut off by the \cline. Is there a way to create additional space for the fractions while maintaining vertical centering of the other cells in the row? (The cells with the \dfrac should also be vertically centered)
The vertical centering of the multirow column (labelled "1") is passable but I am a perfectionist. Can anyone also help to ensure vertical centering of the multirow column?
Thanks in advance!
tabularray
package orellspace
for additional vertical spaces.