Beginner LaTeX Guide

LaTeX{\LaTeX} is an extremely useful typesetting language to learn, especially in a math environment like this. However, the quick instructions Brilliant.org gives just aren't good enough to use for most situations.

This is why I've decided to create a beginner's LaTeX{\LaTeX} guide. There is a table of contents for easy symbol or format finding. I hope you can refer to this guide later, when writing solutions, problems, or notes.

Note: You can also view Latex codes by hovering over the equation. Read Seeing actual LaTeX\LaTeX for more details!

To quickly navigate to the part you want via the Table of Contents, press CTRL+F, and type in the section you want (including the tilde's ~ before and after the section).


Table of Contents

~Using LaTeX~

~Text~

~Basic Operations~

~Fractions~

~Sums, Products, Limits, and Integrals~

~Modular Arithmetic~

~Trigonometry~

~Combinatorics~

~Geometry~

~Calculus~

~Parentheses~

~Fitting Parentheses~

~Tables and Arrays~

~Other~


~Using LaTeX~

To use LaTeX, put a backslash and a left parenthesis before the math you want to LaTeXify, and put a backslash and a right parenthesis after the math you want to LaTeXify. For example:

Imgur Imgur

Shows up as 1+2+3=61+2+3=6

However, if you want your math to be more conspicuous and centered, you can use a backslash then a left bracket, then your math, then a backslash then a right bracket. For example:

Imgur Imgur

Shows up as

1+2+3=61+2+3=6

This second option is the display text. A lot of other math operations will look better in this text. To force the first option to also use display text, you can add a \displaystyle at the beginning.


~Text~

To write text in LaTeX use \text{your text here}. This gives your text here\text{your text here}

To use bolded text, use \textbf{your text here}. This gives your text here\textbf{your text here}

Italicized text is similar: \textit{your text here}. This gives your text here\textit{your text here}


~Basic Operations~

"x+y" gives x+yx+y

"x-y" gives xyx-y

"x=y" gives x=yx=y

"x\times y" gives x×yx\times y

"x\cdot y" gives xyx\cdot y

"x\div y" gives x÷yx\div y

"x\pm y" gives x±yx\pm y

"x\mp y" gives xyx\mp y

x^{y} gives xyx^{y}

x_{y} gives xyx_{y}

\sqrt{x} gives x\sqrt{x}

\sqrt[y]{x} gives xy\sqrt[y]{x}

\log_{a}b gives logab\log_{a}b

\ln a gives lna\ln a (that's a lowercase "l" in the beginning, not an uppercase "i")

Note that many of you use "*" or "." for multiplying. This shows up as * and .. which don't look good. Use ×\times or \cdot instead.

Also, the brackets in x^{y} or x_{y} may be omitted if the index is a single character. However, if it is more than one character like x10x^{10}, then brackets are needed or else it will show up as x10x^10.


~Fractions~

Many people simply put a slash between the numerator and denominator to represent a fraction: x/yx/y. However, there are neater ways in LaTeX.

\frac{x}{y} is the standard way to write fractions: xy\frac{x}{y}

\dfrac{x}{y} gives a bigger clearer version. However, this takes up more vertical space: xy\dfrac{x}{y} the "d" stands for "display text".

EXTRA

\cfrac{x}{y} is a special type of fraction formatting. This is for continued fractions, hence the "c". typing \cfrac{x}{x+\cfrac{y}{y+\cfrac{z}{2}}} gives xx+yy+z2 \cfrac{x}{x+\cfrac{y}{y+\cfrac{z}{2}}}


~Sums, Products, Limits, and Integrals~

These four are in the same group because they format differently than other symbols.

"\sum" gives \sum

"\prod" gives \prod

"\lim" gives lim\lim

"\int" gives \int

We can add the other elements of each thing by using _ and ^:

\sum_{i=0}^n gives i=0n\sum_{i=0}^n

\prod_{i=0}^n gives i=0n\prod_{i=0}^n

\lim_{x\rightarrow n} gives limxn\lim_{x\rightarrow n}

\int_{a}^{b} gives ab\int_a^b

However, these don't look very good. However, once putting it on display text, either using the brackets or using \displaystyle as said in the beginning of the guide, we can make them look normal.

\displaystyle\sum_{i=0}^n gives i=0n\displaystyle\sum_{i=0}^n

\displaystyle\prod_{i=0}^n gives i=0n\displaystyle\prod_{i=0}^n

\displaystyle\lim_{x\rightarrow n} gives limxn\displaystyle\lim_{x\rightarrow n}

\displaystyle\int_{a}^{b} gives ab\displaystyle\int_{a}^{b}


~Modular Arithmetic~

"\equiv" gives \equiv

\mod{a} gives moda\mod{a}

\pmod{a} gives (moda)\pmod{a}

\bmod{a} is \mod{a} without the space before it: amodba\bmod{b} versus amodba\mod{b}

"a\mid b" creates aba\mid b, which states that bb is divisible by aa.


~Trigonometry~

Many of you simply put "sin" and "cos" and be done with it; however, adding a backslash before those two make it look much better.

\sin gives sin\sin (as opposed to sinsin)

\cos gives cos\cos (as opposed to coscos)

\tan gives tan\tan

\sec gives sec\sec

\csc gives csc\csc

\cot gives cot\cot

\arcsin gives arcsin\arcsin

\arccos gives arccos\arccos

\arctan gives arctan\arctan

Putting a ^{-1} after the trigonometric function designates it as the inverse. For example, \sin^{-1} gives sin1\sin^{-1}.

\sinh gives sinh\sinh

\cosh gives cosh\cosh

\tanh gives tanh\tanh


~Combinatorics~

\binom{x}{y} gives (xy)\binom{x}{y}

\dbinom{x}{y} gives (xy)\dbinom{x}{y}


~Geometry~

x^{\circ} gives xx^{\circ} the degree symbol

\angle gives \angle

\Delta gives Δ\Delta, for example ΔABC\Delta ABC

\triangle also does the job: ABC\triangle ABC

\odot gives \odot, for example O\odot O

AB\parallel CD gives ABCDAB\parallel CD

AB\perp CD gives ABCDAB\perp CD

A\cong B gives ABA\cong B

A\sim B gives ABA\sim B


~Calculus~

We've already learned to use \int. However, there is much more to calculus than integrals!

There is no command for the total derivative, so you have to use \text{d} to get around it.

For example, \dfrac{\text{d}}{\text{d}x} gives ddx\dfrac{\text{d}}{\text{d}x}

Fortunately, there is a symbol for partial derivatives: \partial gives \partial.

So, \dfrac{\partial}{\partial x} gives x\dfrac{\partial}{\partial x}

Double or even triple integrals can be condensed into \iint and \iiint, respectively. This gives \displaystyle\iint and \displaystyle\iiint (I am using display text).

EXTRA

Line integrals can be written as \oint: \displaystyle \oint.


~Parentheses~

( and ) are standard for parentheses: (a+b)(a+b)

[ and ] are used for brackets: [a+b][a+b]

{ and } are used for curly brackets: {a+b}\{a+b\}

\lfloor and \rfloor are used for the floor function: a+b\lfloor a+b\rfloor

\lceil and \rceil are used for the ceiling function: a+b\lceil a+b\rceil

\langle and \rangle are used for vectors: a,b\langle a,b\rangle

The vertical line symbol | (not a capital "i" or a lowercase "l"!) is used for absolute value: a+b|a+b|


~Fitting Parentheses~

Suppose you want to write (ab)c\left(\dfrac{a}{b}\right)^c. When you try, it gives (ab)c(\dfrac{a}{b})^c. How did I stretch the parentheses to fit?

To stretch the parentheses, use \left before the left parenthesis and \right before the right one, like this: \left( and \right). When put back into the expression, this yields (ab)c\left(\dfrac{a}{b}\right)^c as desired.

This isn't just for parentheses; you can use them on brackets: {ab}\{\dfrac{a}{b}\} changes into {ab}\left\{\dfrac{a}{b}\right\}

You can also use this technique on things that use only one parenthesis/bracket/etc. However, just putting \left or \right will yield an error. This is because \left and \right come in pairs. In orer to sidestep this, you can put a period after the one that you do not need (i.e \left. or \right.). This way it will not produce an error, and it will stretch the parenthesis to size. For example, this: \left. \dfrac{x^3+2x}{3x^2}\right|_0^3 gives this: x3+2x3x2ab\left. \dfrac{x^3+2x}{3x^2}\right|_a^b


~Tables and Arrays~~

To make tables and arrays, use \ begin{array}{[modifiers]} ... \ end{array}. (A space is put before "begin" and before "end" to prevent the LaTeX from prematurely rendering. Even though there are no brackets around to make it render, it does so anyways, I don't know why.)

In the modifiers section, you put either l for left, c for center, or r for right, per column. For example, to make an array with 3 columns, all formatted to align along the right edge, you put "rrr" inside the modifier. It would look like this: \ begin{array}{rrr} ... \ end{array}.

To add a vertical line between two columns, put the vertical line symbol | between two modifiers: for example, if you wanted a horizontal line between the first two columns in the previous example, then you would put \ begin{array}{r|rr} ... \ end{array}.

For actual inputting in the array, there are two rules: put a "&" sign to notify to switch to the next column, and put a "\ \" divider (again a space is added in between to prevent it from rendering) to notify to switch to the next row. When building the table, always fill in row by row: in the first row, fill in all the corresponding columns, and then switch to the next row; then continue in this manner. For example, if I wanted to make a 3×33\times 3 square with the numbers 191\rightarrow 9, I would put: \ begin{array}{lcr}1 & 2 & 3 \ \ 4 & 5 & 6 \ \ 7& 8 & 9 \ end{array}. This produces: 123456789 \begin{array}{lcr}1 & 2 & 3 \\ 4 & 5 & 6 \\ 7& 8 & 9 \end{array}.

To insert horizontal lines between any two rows, put \hline after the divider that separates the two rows. For example, if I wanted to add horizontal lines and vertical lines in the previous example to look like a tic tac toe board, this would be my code: \ begin{array}{l|c|r}1 & 2 & 3 \ \ \hline 4 & 5 & 6 \ \ \hline 7& 8 & 9 \ end{array} and it will produce: 123456789\begin{array}{l|c|r}1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ \hline 7& 8 & 9 \end{array}


~Other~

To negate any symbol, put \not before the symbol. For example, "\not =" gives \not =

Look here for a big list of symbols.


If you don't know how to do something or see something missing in this guide, please do comment below so I can add it! Together, we can make a great LaTeX guide!

Note by Daniel Liu
7 years, 4 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Sort by:

Top Newest

E.dA=qϵ0\oint E.dA = \frac{q}{\epsilon_0}

Payas Khurana - 5 days, 8 hours ago

Log in to reply

$\oint$

Payas Khurana - 5 days, 8 hours ago

Log in to reply

@Daniel Liu - I'm inspired by your guide, so I'm making my own, hope you don't mind :)

Percy Jackson - 9 months, 3 weeks ago

Log in to reply

I'm inspired by your guide, so I'm making my own, hope you don't mind :) LOL

A Former Brilliant Member - 9 months, 2 weeks ago

Log in to reply

facepalm

LOL

Percy Jackson - 9 months, 2 weeks ago

Log in to reply

How can I use packages such as dsfont for writing \mathds{R}?

Pepper Mint - 1 year, 1 month ago

Log in to reply

Hi! How will I align series of equivalent equations by their equal signs? Thank you.

John Rey Jimenez - 1 year, 2 months ago

Log in to reply

Hey Daniel, it is a great guide but I was curious to know how do you put a line over a number abcd to show that a, b, c and d are digits.

Thanks

Vedant Saini - 2 years, 2 months ago

Log in to reply

Using two vertical lines (\parallel) is also common for concatenation: aba\parallel b

Blan Morrison - 2 years, 2 months ago

Log in to reply

\overline{abcd} shows abcd\overline{abcd}

X X - 2 years, 2 months ago

Log in to reply

Thanks a lot 😀👍

Vedant Saini - 2 years, 1 month ago

Log in to reply

I forgot how to align brackets. Can someone help me?

Mohammad Farhat - 2 years, 3 months ago

Log in to reply

What exactly do you mean? Like piecewise functions?

Blan Morrison - 2 years, 3 months ago

Log in to reply

Wow LaTeX is so hard... "x+y=5" that is the only thing I can remember..

Charn Son - 2 years, 4 months ago

Log in to reply

ppqqpqp \Rightarrow q
111
101
010
001
Is there a way to put lines between the columns?

Johanan Paul - 2 years, 6 months ago

Log in to reply

I feel that this list needs a logic category; for instance, things like and, or, & not.

Blan Morrison - 2 years, 6 months ago

Log in to reply

Like  and \in \ and \ \ni?

Lâm Lê - 6 months, 3 weeks ago

Log in to reply

Help:

\begin{aligned} \pi & = \sum_{k=0}^\infty \frac{1}{16^k} \left[\frac{4}{8k+1} - \frac{2}{8k+4} - \frac{1}{8k+5} - \frac{1}{8k+6}\right] \\ &= \frac{1}{2} \sum_{k=0}^\infty \frac{1}{16^k} \left[\frac{8}{8k+2} + \frac{4}{8k+3} + \frac{4}{8k+4} - \frac{1}{8k+7} \right] \\ &= \frac{1}{16} \sum_{k=0}^\infty \frac{1}{256^k} \left[\frac{64}{16k+1} - \frac{32}{16k+4} - \frac{16}{16k+5} - \frac{16}{16k+6} + \frac{4}{16k+9} - \frac{2}{16k+12} - \frac{1}{16k+13} - \frac{1}{16k+14} \right] \\ &= \frac{1}{32} \sum_{k=0}^\infty \frac{1}{256^k} \left[\frac{128}{1k+2} + \frac{64}{16k+3}+\frac{64}{16k+4}-\frac{16}{16k+7} + \frac{8}{16k+10}+\frac{4}{16k+11}+\frac{4}{16k+12}-\frac{1}{16k+15}\right] \\ &= \frac{1}{32} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{256}{24k+2}+\frac{192}{24k+3}-\frac{256}{24k+4}-\frac{96}{24k+6}-\frac{96}{24k+8}+\frac{16}{24k+10}-\frac{4}{24k+12}-\frac{3}{24k+15}-\frac{6}{24k+16}-\frac{2}{24k+18}-\frac{1}{24k+20}\right] \\ &= \frac{1}{64} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{256}{24k+1}+\frac{256}{24k+2}-\frac{384}{24k+3}-\frac{256}{24k+4}-\frac{64}{24k+5}+\frac{96}{24k+8}+\frac{64}{24k+9}+\frac{16}{24k+10}+\frac{8}{24k+12}-\frac{4}{24k+13}+\frac{6}{24k+15}+\frac{6}{24k+16}+\frac{1}{24k+17}+\frac{1}{24k+18}-\frac{1}{24k+20}-\frac{1}{24k+20}\right] \\ &= \frac{1}{96} \sum_{k=0}^\infty \frac{1}{4096^k}\left[\frac{256}{24k+2}+\frac{64}{24k+3}+\frac{128}{24k+5}+\frac{352}{24k+6}+\frac{64}{24k+7}+\frac{288}{24k+8}+\frac{128}{24k+9}+\frac{80}{24k+10}+\frac{20}{24k+12}-\frac{16}{24k+14}-\frac{1}{24k+15}+\frac{6}{24k+16}-\frac{2}{23k+17}-\frac{1}{24k+19}+\frac{1}{24k+20}-\frac{2}{24k+21}\right] \\ &= \frac{1}{96} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{256}{24k+1} + \frac{320}{24k+3} + \frac{256}{24k+4} - \frac{192}{24k+5}-\frac{224}{24k+6}-\frac{64}{24k+7}-\frac{192}{24k+8}-\frac{64}{24k+9}-\frac{64}{24k+10}-\frac{28}{24k+12}-\frac{4}{24k+13}-\frac{5}{24k+15}+\frac{3}{24k+17}+\frac{1}{24k+18}+\frac{1}{24k+19}+\frac{1}{24k+21}-\frac{1}{24k+22}\right] \\ & = \frac{1}{96} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{512}{24k+1}-\frac{256}{24k+2}+\frac{64}{24k+3}-\frac{512}{24k+4}-\frac{32}{24k+6}+\frac{64}{24k+7}+\frac{96}{24k+8}+\frac{64}{24k+9}+\frac{48}{24k+10}-\frac{12}{24k+12}-\frac{8}{24k+13}-\frac{16}{24k+14}-\frac{1}{24k+15}-\frac{6}{24k+16}-\frac{2}{24k+18}-\frac{1}{24k+19}-\frac{1}{24k+20}-\frac{1}{24k+21}\right] \\ &=\frac{1}{4096} \sum_{k=0}^\infty \frac{1}{65536^k} \left[\frac{16384}{32k+1}-\frac{8192}{32k+4}-\frac{4096}{32k+5}-\frac{4096}{32k+6}+\frac{1024}{32k+9}-\frac{512}{32k+12}-\frac{256}{32k+13}-\frac{256}{32k+14}+\frac{64}{32k+17}-\frac{32}{32k+20}-\frac{16}{32k+21}-\frac{16}{32k+22}+\frac{4}{32k+25}-\frac{2}{32k+28}-\frac{1}{32k+29}-\frac{32k+30}\right] \end{aligned}


Error is in the last characters but I could not find it

Mohammad Farhat - 2 years, 6 months ago

Log in to reply

\(\begin{array}{ll} \pi &= \sum_{k=0}^\infty \frac{1}{16^k} \left[\frac{4}{8k+1} - \frac{2}{8k+4} - \frac{1}{8k+5} - \frac{1}{8k+6}\right] \\

&= \frac{1}{2} \sum_{k=0}^\infty \frac{1}{16^k} \left[\frac{8}{8k+2} + \frac{4}{8k+3} + \frac{4}{8k+4} - \frac{1}{8k+7} \right] \\

&= \frac{1}{16} \sum_{k=0}^\infty \frac{1}{256^k} \left[\frac{64}{16k+1} - \frac{32}{16k+4} - \frac{16}{16k+5} - \frac{16}{16k+6} + \frac{4}{16k+9} - \frac{2}{16k+12} - \frac{1}{16k+13} - \frac{1}{16k+14} \right] \\

&= \frac{1}{32} \sum_{k=0}^\infty \frac{1}{256^k} \left[\frac{128}{1k+2} + \frac{64}{16k+3}+\frac{64}{16k+4}-\frac{16}{16k+7} + \frac{8}{16k+10}+\frac{4}{16k+11}+\frac{4}{16k+12}-\frac{1}{16k+15}\right] \\

&= \frac{1}{32} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{256}{24k+2}+\frac{192}{24k+3}-\frac{256}{24k+4}-\frac{96}{24k+6}-\frac{96}{24k+8}+\frac{16}{24k+10}-\frac{4}{24k+12}-\frac{3}{24k+15}-\frac{6}{24k+16}-\frac{2}{24k+18}-\frac{1}{24k+20}\right] \\

&= \frac{1}{64} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{256}{24k+1}+\frac{256}{24k+2}-\frac{384}{24k+3}-\frac{256}{24k+4}-\frac{64}{24k+5}+\frac{96}{24k+8}+\frac{64}{24k+9}+\frac{16}{24k+10}+\frac{8}{24k+12}-\frac{4}{24k+13}+\frac{6}{24k+15}+\frac{6}{24k+16}+\frac{1}{24k+17}+\frac{1}{24k+18}-\frac{1}{24k+20}-\frac{1}{24k+20}\right] \\

&= \frac{1}{96} \sum_{k=0}^\infty \frac{1}{4096^k}\left[\frac{256}{24k+2}+\frac{64}{24k+3}+\frac{128}{24k+5}+\frac{352}{24k+6}+\frac{64}{24k+7}+\frac{288}{24k+8}+\frac{128}{24k+9}+\frac{80}{24k+10}+\frac{20}{24k+12}-\frac{16}{24k+14}-\frac{1}{24k+15}+\frac{6}{24k+16}-\frac{2}{23k+17}-\frac{1}{24k+19}+\frac{1}{24k+20}-\frac{2}{24k+21}\right] \\

&= \frac{1}{96} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{256}{24k+1} + \frac{320}{24k+3} + \frac{256}{24k+4} - \frac{192}{24k+5}-\frac{224}{24k+6}-\frac{64}{24k+7}-\frac{192}{24k+8}-\frac{64}{24k+9}-\frac{64}{24k+10}-\frac{28}{24k+12}-\frac{4}{24k+13}-\frac{5}{24k+15}+\frac{3}{24k+17}+\frac{1}{24k+18}+\frac{1}{24k+19}+\frac{1}{24k+21}-\frac{1}{24k+22}\right] \\

&=\frac{1}{96} \sum_{k=0}^\infty \frac{1}{4096^k} \left[\frac{512}{24k+1}-\frac{256}{24k+2}+\frac{64}{24k+3}-\frac{512}{24k+4}-\frac{32}{24k+6}+\frac{64}{24k+7}+\frac{96}{24k+8}+\frac{64}{24k+9}+\frac{48}{24k+10}-\frac{12}{24k+12}-\frac{8}{24k+13}-\frac{16}{24k+14}-\frac{1}{24k+15}-\frac{6}{24k+16}-\frac{2}{24k+18}-\frac{1}{24k+19}-\frac{1}{24k+20}-\frac{1}{24k+21}\right] \\

&=\frac{1}{4096} \sum_{k=0}^\infty \frac{1}{65536^k} \left[\frac{16384}{32k+1}-\frac{8192}{32k+4}-\frac{4096}{32k+5}-\frac{4096}{32k+6}+\frac{1024}{32k+9}-\frac{512}{32k+12}-\frac{256}{32k+13}-\frac{256}{32k+14}+\frac{64}{32k+17}-\frac{32}{32k+20}-\frac{16}{32k+21}-\frac{16}{32k+22}+\frac{4}{32k+25}-\frac{2}{32k+28}-\frac{1}{32k+29}-\frac{1}{32k+30}\right] \end{array}\)

A Former Brilliant Member - 9 months, 3 weeks ago

Log in to reply

So the problem was that your last contains a fraction without numerator. The second thing is that your code is too long, so I used a left aligned array. And the fractions are too small, so I will make a better one :)

A Former Brilliant Member - 9 months, 3 weeks ago

Log in to reply

@A Former Brilliant Member \(\begin{array}{ll} \pi &= \sum_{k=0}^\infty \cfrac{1}{16^k} \left[\cfrac{4}{8k+1} - \cfrac{2}{8k+4} - \cfrac{1}{8k+5} - \cfrac{1}{8k+6}\right] \\

&= \cfrac{1}{2} \sum_{k=0}^\infty \cfrac{1}{16^k} \left[\cfrac{8}{8k+2} + \cfrac{4}{8k+3} + \cfrac{4}{8k+4} - \cfrac{1}{8k+7} \right] \\

&= \cfrac{1}{16} \sum_{k=0}^\infty \cfrac{1}{256^k} \left[\cfrac{64}{16k+1} - \cfrac{32}{16k+4} - \cfrac{16}{16k+5} - \cfrac{16}{16k+6} + \cfrac{4}{16k+9} - \cfrac{2}{16k+12} - \cfrac{1}{16k+13} - \cfrac{1}{16k+14} \right] \\

&= \cfrac{1}{32} \sum_{k=0}^\infty \cfrac{1}{256^k} \left[\cfrac{128}{1k+2} + \cfrac{64}{16k+3}+\cfrac{64}{16k+4}-\cfrac{16}{16k+7} + \cfrac{8}{16k+10}+\cfrac{4}{16k+11}+\cfrac{4}{16k+12}-\cfrac{1}{16k+15}\right] \\

&= \cfrac{1}{32} \sum_{k=0}^\infty \cfrac{1}{4096^k} \left[\cfrac{256}{24k+2}+\cfrac{192}{24k+3}-\cfrac{256}{24k+4}-\cfrac{96}{24k+6}-\cfrac{96}{24k+8}+\cfrac{16}{24k+10}-\cfrac{4}{24k+12}-\cfrac{3}{24k+15}-\cfrac{6}{24k+16}-\cfrac{2}{24k+18}-\cfrac{1}{24k+20}\right] \\

&= \cfrac{1}{64} \sum_{k=0}^\infty \cfrac{1}{4096^k} \left[\cfrac{256}{24k+1}+\cfrac{256}{24k+2}-\cfrac{384}{24k+3}-\cfrac{256}{24k+4}-\cfrac{64}{24k+5}+\cfrac{96}{24k+8}+\cfrac{64}{24k+9}+\cfrac{16}{24k+10}+\cfrac{8}{24k+12}-\cfrac{4}{24k+13}+\cfrac{6}{24k+15}+\cfrac{6}{24k+16}+\cfrac{1}{24k+17}+\cfrac{1}{24k+18}-\cfrac{1}{24k+20}-\cfrac{1}{24k+20}\right] \\

&= \cfrac{1}{96} \sum_{k=0}^\infty \cfrac{1}{4096^k}\left[\cfrac{256}{24k+2}+\cfrac{64}{24k+3}+\cfrac{128}{24k+5}+\cfrac{352}{24k+6}+\cfrac{64}{24k+7}+\cfrac{288}{24k+8}+\cfrac{128}{24k+9}+\cfrac{80}{24k+10}+\cfrac{20}{24k+12}-\cfrac{16}{24k+14}-\cfrac{1}{24k+15}+\cfrac{6}{24k+16}-\cfrac{2}{23k+17}-\cfrac{1}{24k+19}+\cfrac{1}{24k+20}-\cfrac{2}{24k+21}\right] \\

&= \cfrac{1}{96} \sum_{k=0}^\infty \cfrac{1}{4096^k} \left[\cfrac{256}{24k+1} + \cfrac{320}{24k+3} + \cfrac{256}{24k+4} - \cfrac{192}{24k+5}-\cfrac{224}{24k+6}-\cfrac{64}{24k+7}-\cfrac{192}{24k+8}-\cfrac{64}{24k+9}-\cfrac{64}{24k+10}-\cfrac{28}{24k+12}-\cfrac{4}{24k+13}-\cfrac{5}{24k+15}+\cfrac{3}{24k+17}+\cfrac{1}{24k+18}+\cfrac{1}{24k+19}+\cfrac{1}{24k+21}-\cfrac{1}{24k+22}\right] \\

&=\cfrac{1}{96} \sum_{k=0}^\infty \cfrac{1}{4096^k} \left[\cfrac{512}{24k+1}-\cfrac{256}{24k+2}+\cfrac{64}{24k+3}-\cfrac{512}{24k+4}-\cfrac{32}{24k+6}+\cfrac{64}{24k+7}+\cfrac{96}{24k+8}+\cfrac{64}{24k+9}+\cfrac{48}{24k+10}-\cfrac{12}{24k+12}-\cfrac{8}{24k+13}-\cfrac{16}{24k+14}-\cfrac{1}{24k+15}-\cfrac{6}{24k+16}-\cfrac{2}{24k+18}-\cfrac{1}{24k+19}-\cfrac{1}{24k+20}-\cfrac{1}{24k+21}\right] \\

&=\cfrac{1}{4096} \sum_{k=0}^\infty \cfrac{1}{65536^k} \left[\cfrac{16384}{32k+1}-\cfrac{8192}{32k+4}-\cfrac{4096}{32k+5}-\cfrac{4096}{32k+6}+\cfrac{1024}{32k+9}-\cfrac{512}{32k+12}-\cfrac{256}{32k+13}-\cfrac{256}{32k+14}+\cfrac{64}{32k+17}-\cfrac{32}{32k+20}-\cfrac{16}{32k+21}-\cfrac{16}{32k+22}+\cfrac{4}{32k+25}-\cfrac{2}{32k+28}-\cfrac{1}{32k+29}-\cfrac{1}{32k+30}\right] \end{array}\)

A Former Brilliant Member - 9 months, 3 weeks ago

Log in to reply

Did you put LaTeX wrapping? @Mohammad Farhat

Yajat Shamji - 9 months, 3 weeks ago

Log in to reply

@Yajat Shamji - When is BRILLIAthon problem 1 coming?

Percy Jackson - 9 months, 3 weeks ago

Log in to reply

@Percy Jackson Give me time to roam around the Community like I do every morning then I'll post it.

Yajat Shamji - 9 months, 3 weeks ago

Log in to reply

@Yajat Shamji Oh, its morning for you......... Its early morning as in 3 am here.......LOL

Percy Jackson - 9 months, 3 weeks ago

Log in to reply

WTF is this!?!?!?! Finding an error in this will take aeons! @Mohammad Farhat

Percy Jackson - 9 months, 3 weeks ago

Log in to reply

\displaystyle \pi = 4 \sum{k=0}^\infty \frac{(-1)^k}{2k+1} = 3 \sum{k=0}^\infty (-1)^k \left[\frac{1}{6k+1} + \frac{1}{6k+5} \right] = 4 \sum{k=0}^\infty (-1)^k \left[\frac{1}{10k+1} - \frac{1}{10k+3} + \frac{1}{10k+5} - \frac{1}{10k+7} + \frac{1}{10k+9}\right] = \sum{k=0}^\infty (-1)^k \left[\frac{3}{14k+1} - \frac{3}{14k+3} + \frac{3}{14k+5} - \frac{3}{14k+7} + \frac{3}{14k+9} - \frac{3}{14k+11} + \frac{3}{14k+13}\right]

How do I make the equal signs aligned

Mohammad Farhat - 2 years, 6 months ago

Log in to reply

How do I fit the floor/ceiling function around fractions?

1000p\lfloor\frac{1000}{p}\rfloor

Blan Morrison - 2 years, 7 months ago

Log in to reply

\left\lfloor \frac {1000}p \right\rfloor1000p\left\lfloor \frac {1000}p \right\rfloor

X X - 2 years, 7 months ago

Log in to reply

You forgot to tell about matrices and piecewise functions, but still good job. SEds=Qenclosedϵ\displaystyle \oint _{S} \vec{E} \cdot d\vec{s} =\frac{Q_{enclosed}} {\epsilon _{\circ}}

Hjalmar Orellana Soto - 2 years, 7 months ago

Log in to reply

why is the continued fraction not working:

\pi=\cfrac{4}{1+\cfrac{1^2}{2+\cfrac{2+\cfrac{3^2}{2+\cfrac{5^2}{2+\ddots}}}}

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

\pi=\cfrac{4}{1+\cfrac{1^2}{2+\cfrac{3^2}{2+\cfrac{5^2}{2+\ddots}}}}

X X - 2 years, 8 months ago

Log in to reply

π=41+122+322+522+ \pi=\cfrac{4}{1+\cfrac{1^2}{2+\cfrac{3^2}{2+\cfrac{5^2}{2+\ddots}}}}

Niranjan Khanderia - 2 years, 6 months ago

Log in to reply

@Niranjan Khanderia Thank you but it is already in my note:π\pi, a beautiful number

Mohammad Farhat - 2 years, 6 months ago

Log in to reply

What's wrong in this:\displaystyle \frac{\pi}{2} = \frac{1]{2} \sum_{n=0}^\infty \frac{(n!)^2 2^{n+1}}{(2n+1)!} = \sum_{n=0}^\infty \frac{n!}{(2n=1)!! = 1 + \frac{1}{3} + \frac{1 \times 2}{3 \times 5} + \frac{1 \times 2 \times 3}{3 \times 5 \times 7} + \cdots = 1 + \frac{1}{3}(1 + \frac{2}{5}(1 + \frac{3}{7}(1 + \frac{4}{9}(1 + \cdots))))

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

displaystyle \frac{\pi}{2} = \frac{1}{2}..., change ] to }

X X - 2 years, 8 months ago

Log in to reply

π2=12n=0(n!)22n+1(2n+1)!=n=0n!(2n=1)!!=1+13+1×23×5+1×2×33×5×7+=1+13(1+25(1+37(1+49(1+))))\displaystyle \frac{\pi}{2} = \frac{1}{2} \sum_{n=0}^\infty \frac{(n!)^2 2^{n+1}}{(2n+1)!} = \sum_{n=0}^\infty \frac{n!}{(2n=1)!!} = 1 + \frac{1}{3} + \frac{1 \times 2}{3 \times 5} + \frac{1 \times 2 \times 3}{3 \times 5 \times 7} + \cdots = 1 + \frac{1}{3}(1 + \frac{2}{5}(1 + \frac{3}{7}(1 + \frac{4}{9}(1 + \cdots))))

X X - 2 years, 8 months ago

Log in to reply

@X X By the way n=0n!(2n1)!!=4+π2\large \displaystyle \sum_{n=0}^\infty \frac{n!}{(2n-1)}!! = \dfrac{4 + \pi}{2} and not π2\dfrac{\pi}{2}

James Bacon - 2 years, 7 months ago

Log in to reply

@James Bacon It is not - but +

Mohammad Farhat - 2 years, 7 months ago

Log in to reply

@X X I already know! Thank you for helping me even if I bothered you or wasted your time!

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

@Mohammad Farhat No, because there is one more mistake. What is (2n=1)!!

X X - 2 years, 8 months ago

Log in to reply

@X X I already edited it in the note

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

oh! Thank you!

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

Can someone help me with this : π=343+24014xx2dx=334+24(11215×25128×27172×29)\displaystyle \pi = \frac{3}{4} \sqrt{3} + 24 \int_{0}{\frac{1}{4}} \sqrt{x-x^2} \text{dx} = \frac{3 \sqrt{3}}{4} + 24 \left(\frac{1}{12} - \frac{1}{5 \times 2^5} - \frac{1}{28 \times 2^7} - \frac{1}{72 \times 2^9} \cdots \right) i do not understand why the 14\frac{1}{4} is down when it is supposed to be up in the integral

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

Here's freeware you can use to make your Latex life easier:

Daum Equation Editor

Michael Mendrin - 2 years, 8 months ago

Log in to reply

Thanks

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

\displaystyle \pi = \frac{3}{4} \sqrt{3} + 24 \int_{0}^{\frac{1}{4}} \sqrt{x-x^2} \text{dx} = \frac{3 \sqrt{3}}{4} + 24 \left(\frac{1}{12} - \frac{1}{5 \times 2^5} - \frac{1}{28 \times 2^7} - \frac{1}{72 \times 2^9} \cdots \right

Insert the ^

X X - 2 years, 8 months ago

Log in to reply

Did you see my note: π\pi is a beautiful number?

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

Oh! I missed ^ Thank you!

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

How do we input the Riemann Zeta function

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

ζ(x)\zeta(x) \zeta(x)

X X - 2 years, 8 months ago

Log in to reply

Oh! Thank you very much!

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

How do you write bold AND italicized text.

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

Do you mean this?

You can type it like text^{***}text^{***},but don't use LaTeX.

X X - 2 years, 8 months ago

Log in to reply

Please answer this

X X - 2 years, 10 months ago

Log in to reply

Is there a 'strikethrough' feature in LaTeX? I'm trying to show a a product of fractions with several factors in numerators and denominators cancelling each other out. So far all I've found is the \not feature, but this works very poorly; e.g. when I try \not{147}, I get 1̸47\not{147}, with only the 1 crossed out.

I would like to be able to cross out entire numbers; ideally, I'd also like to show either the strikethrough or the number (preferably not both) in a variety of colors.

Do you know whether this can be done? Thanks!

zico quintina - 2 years, 10 months ago

Log in to reply

Hey how to do this?

Like writing the catalyst of reaction above the arrowhead like in this https://www.google.co.in/search?q=wurtz+reaction&dcr=0&source=lnms&tbm=isch&sa=X&ved=0ahUKEwisMDt-evYAhVBQo8KHcgzAaoQAUICigB&biw=1366&bih=637#imgrc=F_pnGGhHIpA7NM:

Md Zuhair - 3 years, 3 months ago

Log in to reply

how do we type greater,lesser,greater or equal to and lesser or equal to symbol by LaTeX?

donglin loo - 3 years, 3 months ago

Log in to reply

\(\geq\): \geq

\(\leq\): \leq

\(\<\): <<

\(>\): >>

Lâm Lê - 6 months, 3 weeks ago

Log in to reply

  • \(>\)\backslash(>\backslash) appears as >>

  • \(<\)\backslash(<\backslash) appear as <<

  • \(\ge\)\backslash(\text{\ge}\backslash) appear as \ge

  • \(\le\)\backslash(\text{\le} \backslash) appear as \le

Munem Shahriar - 3 years, 3 months ago

Log in to reply

Thanks!

Donglin Loo - 3 years, 3 months ago

Log in to reply

One way of quickly figuring out what the code for a special character is, is this tool.

Stefan van der Waal - 3 years, 4 months ago

Log in to reply

Thank you for this guide; I'm just learning how to use LaTex and this is all extremely helpful.

One question: is there a way to push lines slightly to the right (like the Tab feature in word processors) without pushing them all the way to the middle? For example, in the lines

(p1)p1(modp2){(p-1)}^p \equiv -1 \pmod {p^2}

p21(modp2)\equiv {p^2-1} \pmod {p^2}

(p1)(p+1)(modp2)\equiv {(p-1)(p+1)} \pmod {p^2}

I would really like to have the equivalence symbol in the second and third lines line up with the one in the first line. Is there a way to do that?

zico quintina - 3 years, 5 months ago

Log in to reply

I just realized that your comment is Freaking 2 years and 7 months old\huge Freaking \ 2 \ years \ and \ 7 \ months \ old @zico quintina

Percy Jackson - 9 months, 3 weeks ago

Log in to reply

If you have other LaTeX\LaTeX{} doubts, ask the community by posting it on my LaTeX\LaTeX{} Discussion Note, which you will find in my feed(after looking around a little). I shall answer the doubt quickly, or ask few other BRILLIANT users that I know of to tell you the solution, and either way, your question will be answered quickly. @zico quintina

Percy Jackson - 9 months, 3 weeks ago

Log in to reply

@zico quintina - I know the perfect command that does wonders like this -

Centered and Aligned Equation\underline{Centered \ and \ Aligned \ Equation}

(p1)p1(modp)2p21(modp)2(p+1)(p1)(modp)2\begin{aligned} (p-1)^{p} & \equiv -1 \pmod p^{2} \\ &\equiv p^{2}-1 \pmod p^{2} \\ &\equiv (p+1)(p-1) \pmod p^{2}\end{aligned}

I used the LaTeX\LaTeX{} command that lets us create an equation array, and this helps us align the == or \equiv symbols. The picture below is the LaTeX\LaTeX{} command that I used.

The Latex for the equation that I wrote :) The Latex for the equation that I wrote :)

Whenever you want to break the line as in go to the next line, give \ and don't forget to add & behind the thing you want to align, as in the above code, I have typed & right behind all three \equiv as I wanted to align them. Hope you understood!

Percy Jackson - 9 months, 3 weeks ago

Log in to reply

With my mac \left, \right does not work. Big work as under.
big ( your text big ). Same for left and right.
Four sizes: big,....bigg,......Big,......Bigg.

Niranjan Khanderia - 3 years, 9 months ago

Log in to reply

We can also use \mathrm{d} for the total derivative command you are talking about.

Like ddx.ex=ex \dfrac{\mathrm{d}}{\mathrm{d}x}.e^{x}=e^x

:)

Swagat Panda - 3 years, 10 months ago

Log in to reply

How to write Right arrow symbol on LaTex?

Munem Shahriar - 3 years, 10 months ago

Log in to reply

  • Use \rightarrow for \rightarrow
  • Use \Rightarrow for \Rightarrow

Kishore S. Shenoy - 3 years, 10 months ago

Log in to reply

Thanks. I just want the second one \Rightarrow

Munem Shahriar - 3 years, 10 months ago

Log in to reply

@Munem Shahriar You may also want \implies :     \implies

Kishore S. Shenoy - 3 years, 10 months ago

Log in to reply

I think you should make a column for the arrows...

Aaryan Maheshwari - 3 years, 11 months ago

Log in to reply

Like when we conclude two things from a statement , we use \begin{cases} and \end{cases}.

What do we use when we conclude one thing from two things??Like the opposite kind of braces I want as in \begin{cases} ....

Ankit Kumar Jain - 4 years, 1 month ago

Log in to reply

What is the issue with this?

I wanted to color only 1022102^2 but this did not happen

1002+1012+1022++9982+9992+10002100^2 + 101^2 + \color{#3D99F6}{102^2} + \cdots + 998^2 + 999^2 + 1000^2

Ankit Kumar Jain - 4 years, 1 month ago

Log in to reply

1002+1012+1003+1042+....100^2+101^2+{ \color{#3D99F6}{100^3} }+104^2+....
code:....100^2+101^2+ { \color{blue}{100^3} } +104^2+....
100^2+101^2+{ \color{#D61F06} { \{} \color{blue}{100^3} }\color{#D61F06}{\}} +104^2+....
See the extra pair of { } around "" \color{blue}{100^3} "" which I have shown in red, but { } are in normal color( here, in black).

Niranjan Khanderia - 2 years, 8 months ago

Log in to reply

Use ...\color{blue} {102^2}\color{black}... to unflag it. I don't know the reason though...​ 1002+1012+1022++9982+9992+10002100^2 + 101^2 + \color{#3D99F6}{102^2} \color{#333333} + \cdots + 998^2 + 999^2 + 1000^2

Kishore S. Shenoy - 4 years, 1 month ago

Log in to reply

I got the error...See this

1002+1012+1022++9982+9992+10002100^2 + 101^2 + {\color{#3D99F6}{102^2}} + \cdots + 998^2 + 999^2 + 1000^2

Ankit Kumar Jain - 4 years, 1 month ago

Log in to reply

code for less than and greater than plzz

Nivedit Jain - 4 years, 1 month ago

Log in to reply

  • Use \le for \le
  • Use \ge for \ge

Kishore S. Shenoy - 4 years, 1 month ago

Log in to reply

i dont need quality

Nivedit Jain - 4 years, 1 month ago

Log in to reply

@Nivedit Jain OK. Use

  • < for <<
  • > for >>

Kishore S. Shenoy - 4 years, 1 month ago

Log in to reply

Whats wrong with this?

\color{#3D99F6}\text{S = x^2 - 8\lfloor x \rfloor + 10}

Ankit Kumar Jain - 4 years, 1 month ago

Log in to reply

Use \color{Blue} {S = x^2 - 8\lfloor x \rfloor + 10} to get S=x28x+10\color{#3D99F6} {S = x^2 - 8\lfloor x \rfloor + 10}

Kishore S. Shenoy - 4 years, 1 month ago

Log in to reply

Thanks!!

Ankit Kumar Jain - 4 years, 1 month ago

Log in to reply

S=x28x+10\color{#3D99F6}{S = x^2 - 8\lfloor x \rfloor + 10}

Ankit Kumar Jain - 4 years, 1 month ago

Log in to reply

Who to write infinity??

Nivedit Jain - 4 years, 1 month ago

Log in to reply

Who to write infinity??

Nivedit Jain - 4 years, 1 month ago

Log in to reply

\infty

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

\infty

James Bacon - 3 years, 5 months ago

Log in to reply

\infty will give you \infty, infinity symbol.

Kishore S. Shenoy - 4 years, 1 month ago

Log in to reply

thank you

Nivedit Jain - 4 years, 1 month ago

Log in to reply

If someone can help me out , please!!!

How can we add a picture and how can we link one page to another ??

Ankit Kumar Jain - 4 years, 2 months ago

Log in to reply

  • Use [text here](link) to add link.
  • Use ![caption](link) to add image. (You can as well ignore the caption, put it blank [])
For more help, visit this page.

Kishore S. Shenoy - 4 years, 2 months ago

Log in to reply

It got converted to a link here , but not where I intended to!!!!!

See the caption under the set name by clicking on the link below . It is not getting linked??/ Why?

My problems

Ankit Kumar Jain - 4 years, 2 months ago

Log in to reply

Like I was trying this

'THRILLER'

What is wrong?

Ankit Kumar Jain - 4 years, 2 months ago

Log in to reply

@Ankit Kumar Jain OK. It's because markdown is disabled over there. Use inside latex : \href{link}{\text{caption}}

Kishore S. Shenoy - 4 years, 2 months ago

Log in to reply

@Kishore S. Shenoy Thanks a lot.!

Ankit Kumar Jain - 4 years, 2 months ago

Log in to reply

Can you please mention 'belongs to' sign\symbol?

Sahil Silare - 4 years, 2 months ago

Log in to reply

This will help. Type \in to get \in.

Kishore S. Shenoy - 4 years, 2 months ago

Log in to reply

Thanks, it worked :)

Sahil Silare - 4 years, 2 months ago

Log in to reply

@Sahil Silare :-)

Kishore S. Shenoy - 4 years, 2 months ago

Log in to reply

What about lesser than equal to?

Md Zuhair - 4 years, 5 months ago

Log in to reply

\le will give you \le

Kishore S. Shenoy - 4 years, 5 months ago

Log in to reply

Thanks

Md Zuhair - 4 years, 5 months ago

Log in to reply

@Ali Hamaiz Here is the note I was talking to you about.

Abdur Rehman Zahid - 4 years, 12 months ago

Log in to reply

How about --->

Jun Arro Estrella - 5 years, 2 months ago

Log in to reply

\rightarrow gives \rightarrow.

If you want a longer one, affix "long". Thus, \longrightarrow gives \longrightarrow.

Jaydee Lucero - 5 years, 2 months ago

Log in to reply

Thank you kuya Jaydee :) See you in automathic

Jun Arro Estrella - 5 years, 2 months ago

Log in to reply

A note on integrals in LaTeX\LaTeX: [[ \mbox{\iiint} ]] gives \iiint It can also be written as [[\mbox{\int \! \! \! \! \int \! \! \! \! \int}]], giving  ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣\int \!\!\!\! \int \!\!\!\! \int While this is unncessary in Brilliant, it is used in actual LaTeX\LaTeX editors when the "esint" package (which contains \iiint) is not available.

Here, the symbol [[  ⁣\mbox{\!} ]] removes a certain space between two characters.

Jaydee Lucero - 5 years, 8 months ago

Log in to reply

There is a typo the line just above "Tables and Arrays". In Fitting Parentheses
display is an error. \left. \dfrac{x^3+2x}{3x^2}\right|_0^3 should give        03~~~~\color{#D61F06}{ \large \ \left. ~~\right |_0^3}

Niranjan Khanderia - 5 years, 10 months ago

Log in to reply

Can you please help me??? How to write infinity in latex form.PLEASE HELP ME

Ayush Sharma - 5 years, 10 months ago

Log in to reply

The LaTeX\LaTeX code for \infty is \infty.

Prasun Biswas - 5 years, 10 months ago

Log in to reply

Can you please tell me how to add hyperlink,
I am trying it from many days and still not able to do so.
Please help!!

Akhil Bansal - 5 years, 8 months ago

Log in to reply

@Akhil Bansal [Brilliant](http://www.brilliant.org) gives you Brilliant. Since this is a Markdown feature and not a LaTeX\LaTeX feature, don't enclose it in slash brackets as you do with math code.

Basically, the syntax is [hyperlink_text](url_to_page).

Here's a screenshot of output corresponding to Markdown code for ease of understanding:

Image Image       output   ~~~\large\overset{\textrm{output}}{\implies}~~~ Image Image

with the hyperlink directing you to the specified url.

Prasun Biswas - 5 years, 8 months ago

Log in to reply

@Prasun Biswas Please tell me how to add large brackets...?
For eg. (a+bc+de+f)\left(\large \cfrac{a+b}{c+\cfrac{d}{e+f}}\right)

Here,brackets are not able to cover up the whole expression..
Thanks,now it's working.

Akhil Bansal - 5 years, 8 months ago

Log in to reply

@Akhil Bansal Use \left before opening bracket and \right before closing bracket to make the brackets auto-resize themselves to cover up the entire expression.

The basic syntax for the type of brackets you need is \text{\left(}\cdots\text{\right)} as opposed to the normal bracketing ()\text{(}\ldots\text{)}.

Prasun Biswas - 5 years, 8 months ago

Log in to reply

@Prasun Biswas Thanks a lot....

Akhil Bansal - 5 years, 8 months ago

Log in to reply

Thank you for your help

Ayush Sharma - 5 years, 10 months ago

Log in to reply

What is wrong with this latex????

[3^{4n34n-3}]

Ashwin Padaki - 5 years, 11 months ago

Log in to reply

Enclose it in \[

Kishore S. Shenoy - 4 years, 2 months ago

Log in to reply

34n3 3^{4n-3} I think it is OK see my Latex code.

Niranjan Khanderia - 5 years, 11 months ago

Log in to reply

your text here\text{your text here}

Aditya Chauhan - 5 years, 12 months ago

Log in to reply

Aditya Chauhan your text here\text{your text here} You have to put the \(\) \backslash ( \backslash ) around the Latex

Abdur Rehman Zahid - 5 years, 8 months ago

Log in to reply

Thanks...

Nishu sharma - 6 years ago

Log in to reply

sec2θ+16sec2ϕ+49sec2δ+8secθsecϕ+56secϕsecδ+14secθsecδ {sec}^{2} \theta + 16{sec}^{2} \phi + 49{sec}^{2} \delta + 8\sec \theta \sec \phi + 56\sec \phi \sec \delta + 14\sec \theta \sec \delta

Mvs Saketh - 6 years, 2 months ago

Log in to reply

Use \sec^2 \delta for sec2δ\sec^2 \delta

Kishore S. Shenoy - 5 years, 8 months ago

Log in to reply

For i = 1 , 2 ,\cdots, n , let aia_{i} and bib_{i} be non-negative real numbers. Then (a1+a2++an)\left( a_{1} + a_{2}+\cdots + a_{n}\right) (b1+b2++bn)\left( b_{1}+ b_{2} +\cdots + b_{n}\right) \geq (a1b1+a2b2++anbn)2\left( \sqrt{a_{1}b_{1}} +\sqrt{a_{2}b_{2}} +\cdots +\sqrt{a_{n}b_{n}} \right) ^{2}

Alita Toh - 6 years, 4 months ago

Log in to reply

Brilliant  Is  So  Awesome  !!!\Huge{Brilliant\;Is\;So\;Awesome\;!!!}

Abdur Rehman Zahid - 6 years, 5 months ago

Log in to reply

1+2+3=61+2+3=6

Abdur Rehman Zahid - 6 years, 6 months ago

Log in to reply

your text here\text{your text here}

Adarsh Kumar - 6 years, 8 months ago

Log in to reply

awesome post\text{awesome post}

Adarsh Kumar - 6 years, 8 months ago

Log in to reply

[@Daniel Liu ], How do I denote vectors by latex?

Led Tasso - 6 years, 8 months ago

Log in to reply

Normal Vectors\begin{array}{l|c|r}\huge Normal~Vectors \\\hline\end{array}

Use \vec{v} for v\huge\displaystyle\vec{v}

Unit Vectors\begin{array}{l|c|r}\huge Unit~Vectors \\\hline\end{array}

Use \hat{\imath}\;\;\hat{\jmath}\;\;\hat{k} for ı^    ȷ^    k^\huge\hat{\imath}\;\;\hat{\jmath}\;\;\hat{k}

\imath' and\jmathgets rid of the the dot overiandj`.

Kishore S. Shenoy - 5 years, 8 months ago

Log in to reply

@Abhimanyu Swami Here's your query ...type this \stackrel{rightarrow} v and you get this

v\huge{ \stackrel{\rightarrow} v} and you might also want.. v\huge{\stackrel{\rightarrow}{|v|}}.

Arya Samanta - 6 years, 7 months ago

Log in to reply

v2 \stackrel {\rightarrow} { v^2} .......This is what I get with \stackrel {\rightarrow} { v^2}

Niranjan Khanderia - 6 years, 7 months ago

Log in to reply

@Niranjan Khanderia Srry put a slash before the rightarrow word I mean \stackrel{\rightarrow}{v} you'll get this time .

Arya

Arya Samanta - 6 years, 7 months ago

Log in to reply

@Arya Samanta Thanks. With the correction and adding {v^2} with in { } that is.....
\stackrel {\rightarrow} { v^2} ..gives :-               v2 ~~~~~~~~~~~~~~ \\ \stackrel {\rightarrow} { v^2}

Niranjan Khanderia - 6 years, 7 months ago

Log in to reply

Also, what's the latex for putting a black square around the answer when you're writing solutions.

Trevor Arashiro - 6 years, 9 months ago

Log in to reply

\boxed { }

@Daniel Liu There are lots of symbols on the AoPS page you linked to, but there is some LaTeX\LaTeX stuff you should definitely add, like systems of equations (we use \begin{cases} .. \\ ... \\ ..\end{cases} for this) and \boxed { }. These don't exist on the AoPS page.

I also like to use \stackrel { } to get some text shown above symbols.

E.g. \stackrel{\text{AM-GM}}\ge gives AMGM\stackrel{AM-GM}\ge. This is optional, though.

mathh mathh - 6 years, 9 months ago

Log in to reply

What's the code for =>, not \geq

Trevor Arashiro - 6 years, 9 months ago

Log in to reply

If you mean an arrow, there are quite a few codes for it: \implies or \Rightarrow or \rightarrow or \Longrightarrow or \to or \longrightarrow or \mapsto or \longmapsto.

mathh mathh - 6 years, 9 months ago

Log in to reply

thank you, the first one was the one I was looking for

Trevor Arashiro - 6 years, 9 months ago

Log in to reply

I find this note very, very nice! :D

I have a question: How should I write the definition of absolute value using LaTeX?

Jaydee Lucero - 6 years, 9 months ago

Log in to reply

The best is simply the symbol | on your keyboard. For division there's a better one, though - /mid.

mathh mathh - 6 years, 9 months ago

Log in to reply

But how about the brace { used for piecewise defined functions? The definition of absolute value uses that :)

Jaydee Lucero - 6 years, 9 months ago

Log in to reply

@Jaydee Lucero You'd use the same latex that you'd use for systems of equations.

f(x) = \begin{cases} 1 \\ 2 \end{cases} gives f(x)={12f(x) = \begin{cases} 1 \\ 2 \end{cases}

Put what you want between \begin{cases} and \end{cases} and separate new lines with \\.

mathh mathh - 6 years, 9 months ago

Log in to reply

@Mathh Mathh Oh, that's nice. :) Thanks. :)

Jaydee Lucero - 6 years, 9 months ago

Log in to reply

THIS IS AWESOME! HUHUHUHU

Astro Enthusiast - 6 years, 9 months ago

Log in to reply

Yeah. :D

Jaydee Lucero - 6 years, 9 months ago

Log in to reply

Hey, what course are you in? And we're batchmates, I reckon.

Astro Enthusiast - 6 years, 9 months ago

Log in to reply

@Astro Enthusiast Civil Engineering. :) And you're Journalism, right? :D

Sorry, I don't understand your use of the word "batchmates". XD

Jaydee Lucero - 6 years, 8 months ago

Log in to reply

@Jaydee Lucero 2012? :)

Astro Enthusiast - 6 years, 8 months ago

Log in to reply

@Astro Enthusiast Nope, 2013. :)

Jaydee Lucero - 6 years, 8 months ago

Log in to reply

@Jaydee Lucero Na-feel ko nga kasi 17 ka haha

Astro Enthusiast - 6 years, 8 months ago

Log in to reply

@Astro Enthusiast :)))

Take note lang ha, 'di tayo parehas ng high school. Wala lang sinabi ko lang haha XD

Jaydee Lucero - 6 years, 8 months ago

Log in to reply

@Jaydee Lucero Of course, I know. Kilala sana kita if oo. :)

Astro Enthusiast - 6 years, 8 months ago

Log in to reply

When NOT using "\text " while in Latex,
for " space " we can use "~".

Say:-In Latex.....>\ ( (I~am~~~coming~~~~) \ ) gives:-
(I#am###coming####)...... "#" stands for space here.

Niranjan Khanderia - 6 years, 9 months ago

Log in to reply

One more thing, for summation and production, it's required to put curly brackets { } between nn if you have more than 1 characters on nn. Otherwise it'll show as i=02014i\displaystyle\sum_{i=0}^2014 i instead of i=02014i\displaystyle\sum_{i=0}^{2014} i. (Note that other brackets don't work.)

Samuraiwarm Tsunayoshi - 6 years, 10 months ago

Log in to reply

Awesome note for all learners ! LaTeX\LaTeX is truly useful and the following wikipedia page is also helpful for this purpose.

What I want to add in this note is the LaTeX\LaTeX colors , I try to use them in problems\color{#D61F06}{problems} and Solutions\color{#20A900}{Solutions}

For that , you have to type

\color{code of the color}{your text}

For example, " \color{Green}{Maths} " will appear as Maths\color{#20A900}{Maths}

" \color{Blue}{Maths} " will appear as Maths \color{#3D99F6}{Maths}...

Codes of the colors you can find on the wikipedia page.

Also the use of " \Huge" , it is used for getting big fonts, like

" \Huge{Maths}" will appear as Maths\Huge{Maths}

@Daniel Liu , try getting this in the note too .....

Aditya Raut - 6 years, 10 months ago

Log in to reply

AdityaRaut\Huge{\text{Aditya}}{\text{Raut}} Wow! This is cool!!@Aditya Raut

Anuj Shikarkhane - 6 years, 6 months ago

Log in to reply

ZUHAIR\huge{\color{#D61F06}{Z} \color{#20A900}{U} \color{#3D99F6}{H} \color{midnightblue}{A} \color{lightpink}I \color{#EC7300}{R}}

Md Zuhair - 4 years, 1 month ago

Log in to reply

How To Swear In Mathematics,1\mathbb{\Huge{\color{midnightblue}{How \text{ }To \text{ } Swear\text{ } In\text{ } Mathematics, \sqrt{-1}}}}

Wow really cool! :)

Happy Melodies - 6 years, 9 months ago

Log in to reply

Wait how did you do the CASTELLAR font? Code?

Nikolas Кraj - 5 months, 2 weeks ago

Log in to reply

@Nikolas Кraj HOW TO SWEAR IN MATHEMATICS,1\mathbb{\color{midnightblue}{HOW \text{ }TO \text{ } SWEAR\text{ } IN\text{ } MATHEMATICS, \sqrt{-1}}}

Thanks!

Nikolas Кraj - 5 months, 2 weeks ago

Log in to reply

@Nikolas Кraj No prob :)

Percy Jackson - 5 months, 2 weeks ago

Log in to reply

@Nikolas Кraj No, he/she used MathBB. This is the Latex if you want -

\(\mathbb{\Huge{\color{midnightblue}{How \text{ }To \text{ } Swear\text{ } In\text{ } Mathematics, \sqrt{-1}}}}\)

Copy paste the complete line above. You will get this -

How To Swear In Mathematics,1\mathbb{\Huge{\color{midnightblue}{How \text{ }To \text{ } Swear\text{ } In\text{ } Mathematics, \sqrt{-1}}}}

Percy Jackson - 5 months, 2 weeks ago

Log in to reply

NICE\Huge\color{#20A900}{NICE}
How did you changed the font??

Akhil Bansal - 5 years, 9 months ago

Log in to reply

One question how did you make "LATEX" look like that .

Abhishek Singh - 6 years, 10 months ago