#How to make these lines align? (tabular environment)

1 messages · Page 1 of 1 (latest)

gilded fjord
#

The highlighted lines aren't aligned despite the setting being the same? really triggering me lol

#

using overleaf, new to LaTeX,

#

here is my preamble

#

any help would be appreciated

honest apex
#

please, no pictures of code

gilded fjord
#

oh right ofcourse

#

I'll send it mb

#
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsthm,amsfonts}
\usepackage{tikz}
\usepackage{tcolorbox}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage[Bjarne]{fncychap}
\usepackage{fancyhdr}
\usepackage{array}

\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arcsinh}{sinh^{-1}}
\DeclareMathOperator{\arccosh}{cosh^{-1}}
\DeclareMathOperator{\arcsech}{sech^{-1}}
\DeclareMathOperator{\arctanh}{tanh^{-1}}
\DeclareMathOperator{\arccoth}{coth^{-1}}
\DeclareMathOperator{\arccsch}{csch^{-1}}
\DeclareMathOperator{\arccsc}{csc^{-1}}
\DeclareMathOperator{\arcsec}{sec^{-1}}
\DeclareMathOperator{\arccot}{cot^{-1}}

\title{Calculus Highlights}
\author{luvy }
\date{December 2022}

\pagestyle{fancy}

\newcommand{\fakesection}[1]{%
  \par\refstepcounter{section}% Increase section counter
  \sectionmark{#1}% Add section mark (header)
  \addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}% Add section to ToC
  % Add more content here, if needed.
}

\begin{document}```
#

preamble (mb if unimportant)

#
   \begin{center}
   \begin{tabular}{ r | l }

$\frac{d}{dx} \cos{x} = -\sin{x}$ & $\frac{d}{dx} \sin{x} = \cos{x}$ \\[6pt]
$\frac{d}{dx} \tan{x} = \sec^2{x}$ & $\frac{d}{dx} \cot{x} = -\csc^2{x}$ \\[6pt]
$\frac{d}{dx} \sec{x} = \tan{x}\sec{x}$ & $\frac{d}{dx} \csc{x} = -\csc{x}\cot{x}$

   \end{tabular}
   \end{center}

\end{tcolorbox}

\begin{tcolorbox}[colback=blue!5!white,colframe=blue!50!black,title=Inverse Trigonometric Differentiation Formulas] 
   \begin{center}
   \begin{tabular}{ r | l }

$\frac{d}{dx} \arcsin{x} = \frac{1}{\sqrt{1-x^2}}$ & $\frac{d}{dx} \arccos{x} = -\frac{1}{\sqrt{1-x^2}}$ \\[6pt]
$\frac{d}{dx} \arctan{x} = \frac{1}{1+x^2}$ & $\frac{d}{dx} \arccot{x} = -\frac{1}{1+x^2}$ \\[6pt]
$\frac{d}{dx} \arcsec{x} = \frac{1}{|x|\sqrt{x^2-1}}$ & $\frac{d}{dx} \arccsc{x} = -\frac{1}{|x|\sqrt{x^2-1}}$


   \end{tabular}
   \end{center}

\end{tcolorbox}```
#

the example I gave

subtle geyser