Академический Документы
Профессиональный Документы
Культура Документы
Slader LLC
I For the most part, you can just type your text normally.
Example code:
Use single dollar signs for in line display of
$f(x)=x^2\cdot \sin x$.
LaTeX output:
f (x) = x 2 · sin x
f (x) = x 2
Function Usage
cos x $ \cos x $
sin x $ \sin x $
ln x $ \ln x $
det (A) $ \det (A) $
arctan x $ \arctan x $
Slader site has its own built in LaTeX editor which means that you
can write the code directly on site.
So, when you want to write a solution using LaTeX, you can avoid
writing standard stuff like \begin{document} → you simply write
the content of the solution itself.
How to write LateX using Slader editor
Once you found the exercise in the desired book, click on the
Upload your solution button to open the editor.
When you click on the button, editor opens up where you write
your LateX.
By default, there are two rows and two columns of boxes where
you can write the code. Also, there is a final answer box.
If you want to add more rows or columns you can simply click on
”add row” or ”add column” button.
Clicking on the box
When you click on the box, editor opens up where you write the
actual code. You can keep writing the code as you like, but you
have to click outside the box to compile the code and see the
output.
Check out all the buttons that are already built in when writing
your code.
Boxes containing only text
If you have boxes that contain only text (no dollar signs or other
LaTeX commands) then you can add \\ to the end. This way,
output will be in standard LaTex font instead of the default one.
In first box, we used code This is some text. and in second box
we used This is some text.\\ .
As you can see output fonts are different and we want the second
one.
Writing final answer
After you have worked out the solution, it is time to write final
answer into the final answer box.
Code Output
\begin{center}
\begin{tabular}{|c||c|||}
\hline
cell1 & cell2 \\ cell1 cell2
\hline\hline cell3 cell4
cell3 & cell4 \\ [1ex]
cell 5 cell 6
\hline
cell 5 & cell 6
\end{tabular}
\end{center}
Additional parameters
Before you start constructing a table, you can also set different
parameters:
I \setlength{\arrayrulewidth}{1mm}
It sets the thichkness of the borders of the table
I \setlength{\tabcolsep}{15pt}
It sets the space between the text and the borders (left and
right) of its containing cell
I \renewcommand{\arraystretch}{1.5}
It sets the height of each row relative to its default height. If
we use 1.5, then the row has height 1.5 × ( default height)
Example
Below is the example code that uses additional parameters.
\setlength{\arrayrulewidth}{1mm}
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{ |p{2cm}|p{2cm}|p{2cm}| }
\hline
\multicolumn{3}{|c|}{Students List} \\
\hline
Student & Subject & Grade \\
\hline
Ana & Calculus &B+ \\
Steve & Biology & A\\
Lily & Physics & A+ \\
\hline
\end{tabular}
Example - continued
LaTeX output:
Students List
Ana Calculus B+
Steve Biology A
Lily Physics A+
LaTeX output:
Z Z Z
(sin x + x 2 )dx = sin xdx + x 2 dx (1)
x3
= − cos x + +C (2)
3
Code:
\setcounter{equation}{0}
\begin{align}
f(x)&=x^2+e^x\sin x\\ \nonumber\\
f’(x)&=(x^2+e^x\sin x)’\nonumber\\
&=(x^2)’+(e^x\sin x)’\nonumber\\
&=2x+(e^x)’\cdot \sin x
+e^x\cdot (\sin x)’\nonumber\\
&=2x+e^x\sin x+e^x\cos x\nonumber\\
&=\boxed{2x+e^x(\sin x+\cos x)}
\end{align}
Align environment - Examples
LaTeX output:
LaTeX output:
1 Chain rule
(log(x 2 sin x))0 = · (x 2 sin x)0
x 2 sin x
Product Rule
1
= 2 · ((x 2 )0 · sin x + x 2 · (sin x)0 )
x sin x
Example #2 - Command \overset
It can also be used to add detailed explanations later.
Code:
\begin{align*}
\dfrac{1}{\csc^2x}+\cos^2x&\overset{(1)}{=}
\sin^2x+\cos^2x\\
&\overset{(2)}{=}\color{red}{1}
\end{align*}
Explanations:
(1)\hspace{0.2cm}By definition,
$\dfrac{1}{\csc^2 x}
=\dfrac{1}{\frac{1}{\sin^2x}}=\sin^2x$
(2)\hspace{0.2cm}Pytagorean rule:$\sin^2x+\cos^2x=1$
Example #2 - Continued
LaTeX output:
1 (1)
2
+ cos2 x = sin2 x + cos2 x
csc x
(2)
=1
Explanations:
1 1
(1) By definition, 2
= 1 = sin2 x
csc x
sin2 x
(2) Pytagorean rule: sin2 x + cos2 x = 1
Integration by parts
u=x 2 du=2x
dv =e x v =e x
z
Z }| { Z
2 x
x e dx = x 2e x − 2xe x dx
Z
= x 2e x − 2 xe x dx +C
| {z }
Integration by parts
u=x du=1
dv =e x v =e x
Z
2 x x
= x e − 2(xe − 1 · e x dx) + C
Z
2 x x
= x e − 2(xe − e x dx) + C
= e x (x 2 − 2x − 2) + C
Example #3 - Further explanations
Example Code:
\begin{gather*}
3x+4y=17\\
4y=17-3x\\
y=\frac{17-3x}{4}
\end{gather*}
Example #4 - Continued
LaTeX output:
3x + 4y = 17
4y = 17 − 3x
17 − 3x
y=
4
As you can see, all rows written inside gather environment are
pushed towards the middle.
Example # 5 - Matrices
Below are examples of different types of matrices.
\begin {*matrix}
cell 1 & cell 2 & cell 3 \\
cell 4 & cell 5 & cell 6
\end {*matrix}