#Help with alignment

1 messages · Page 1 of 1 (latest)

open vector
#

Hello so I have the following code:

\underline{Example:} Use mathematical induction to prove that for every integer $n \ge 0$: [
P(n): \quad \sum_{j = 0}^n \parens{-\f12}^j = \f{2^{n+1} + (-1)^n}{3\cdot 2^n}]
\underline{Basis step:} We verify $\map P 0$ is true.
[ \map P 0: \quad 1 = \f{2^{0+1}+(-1)^0}{3\cdot 2^0} = \f{2+1}{3} = 1 \implies \map P 0 \textsx{is true}]
\underline{Inductive step:} We will assume:
\begin{align*}
\map P k: \sum_{j = 0}^k \parens{-\f12}^j &= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} \textsx{is true} \
\text{We want to show} \
\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j &= \f{2^{k+2} + (-1)^{k+1}}{3\cdot 2^{k+1}} \
\text{And by the inductive hypothesis}\
\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j &= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \parens{-\f12}^{k+1} = \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \f{(-1)^{k+1}}{2^{k+1}} \
&= \f{2^{k+2} +2(-1)^k + 3(-1)(-1)^k}{3\cdot 2^{k+1}} = \f{2^{k+2} +(2-3)(-1)^k}{3\cdot 2^{k+1}} \
&= \f{2^{k+2}+(-1)(-1)^k}{3\cdot 2^{k+1}} = \f{2^{k+2}+(-1)^{k+1}}{3\cdot 2^{k+1}}
\end{align*}

whole islandBOT
#

@open vector has earned the Members role!

bright galeBOT
open vector
# bright gale

i more or less want all the text to be aligned like this while keeping the rest as is

#

is there a way

zealous cosmos
#

Please put your latex in a code block

open vector
#
\underline{Example:} Use mathematical induction to prove that for every integer $n \ge 0$: \[
P(n): \quad \sum_{j = 0}^n \parens{-\f12}^j = \f{2^{n+1} + (-1)^n}{3\cdot 2^n}\]
\underline{Basis step:} We verify $\map P 0$ is true.
\[ \map P 0: \quad 1 = \f{2^{0+1}+(-1)^0}{3\cdot 2^0} = \f{2+1}{3} = 1 \implies \map P 0 \textsx{is true}\]
\underline{Inductive step:} We will assume:
\begin{align*}
\map P k: \sum_{j = 0}^k \parens{-\f12}^j &= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} \textsx{is true} \\
\text{We want to show} \\
\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j &= \f{2^{k+2} + (-1)^{k+1}}{3\cdot 2^{k+1}} \\ 
\text{And by the inductive hypothesis}\\
\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j &= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \parens{-\f12}^{k+1} = \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \f{(-1)^{k+1}}{2^{k+1}} \\
&= \f{2^{k+2} +2(-1)^k + 3(-1)(-1)^k}{3\cdot 2^{k+1}} = \f{2^{k+2} +(2-3)(-1)^k}{3\cdot 2^{k+1}} \\
&= \f{2^{k+2}+(-1)(-1)^k}{3\cdot 2^{k+1}} = \f{2^{k+2}+(-1)^{k+1}}{3\cdot 2^{k+1}}
\end{align*}```
open vector
#

Okay here is a much cleaner code

#

Hello so I have the following code:

\underline{Example:} Use mathematical induction to prove that for every integer $n \ge 0$: \[
P(n): \quad \sum_{j = 0}^n \parens{-\f12}^j = \f{2^{n+1} + (-1)^n}{3\cdot 2^n}\]
\underline{Basis step:} We verify $\map P 0$ is true.
\[ \map P 0: \quad 1 = \f{2^{0+1}+(-1)^0}{3\cdot 2^0} = \f{2+1}{3} = 1 \implies \map P 0 \textsx{is true}\]
\underline{Inductive step:} We will assume:
\begin{align*}
\map P k: \sum_{j = 0}^k \parens{-\f12}^j &= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} \textsx{is true} \\
\text{We want to show} \\
\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j &= \f{2^{k+2} + (-1)^{k+1}}{3\cdot 2^{k+1}} \\ 
\text{And by the inductive hypothesis}\\
\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j &= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \parens{-\f12}^{k+1} \\
&= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \f{(-1)^{k+1}}{2^{k+1}} \\
&= \f{2^{k+2} +2(-1)^k + 3(-1)(-1)^k}{3\cdot 2^{k+1}}\\ 
&= \f{2^{k+2} +(2-3)(-1)^k}{3\cdot 2^{k+1}} \\
&= \f{2^{k+2}+(-1)(-1)^k}{3\cdot 2^{k+1}} \\
&= \f{2^{k+2}+(-1)^{k+1}}{3\cdot 2^{k+1}}
\end{align*}```
bright galeBOT
open vector
#

again, same request as above really haha, just trying to align all the text-lines to be on the same line while keeping the rest of the thing more or less the same

#

okay i guess i found a temporary solution

#

Hello so I have the following code:

\underline{Example:} Use mathematical induction to prove that for every integer $n \ge 0$: \[
P(n): \quad \sum_{j = 0}^n \parens{-\f12}^j = \f{2^{n+1} + (-1)^n}{3\cdot 2^n}\]
\underline{Basis step:} We verify $\map P 0$ is true.
\[ \map P 0: \quad 1 = \f{2^{0+1}+(-1)^0}{3\cdot 2^0} = \f{2+1}{3} = 1 \implies \map P 0 \textsx{is true}\]
\underline{Inductive step:} We will assume:
\[\map P k: \sum_{j = 0}^k \parens{-\f12}^j = \f{2^{k+1} + (-1)^k}{3\cdot 2^k} \textsx{is true} \]
\text{We want to show} 
\[\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j = \f{2^{k+2} + (-1)^{k+1}}{3\cdot 2^{k+1}} \]
\text{And by the inductive hypothesis}
\begin{align*}
\map P{k+1}: \sum_{j=0}^{k+1} \parens{-\f12}^j &= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \parens{-\f12}^{k+1} \\
&= \f{2^{k+1} + (-1)^k}{3\cdot 2^k} + \f{(-1)^{k+1}}{2^{k+1}} \\
&= \f{2^{k+2} +2(-1)^k + 3(-1)(-1)^k}{3\cdot 2^{k+1}}\\ 
&= \f{2^{k+2} +(2-3)(-1)^k}{3\cdot 2^{k+1}} \\
&= \f{2^{k+2}+(-1)(-1)^k}{3\cdot 2^{k+1}} \\
&= \f{2^{k+2}+(-1)^{k+1}}{3\cdot 2^{k+1}}
\end{align*}```
bright galeBOT
open vector
#

I will roll with this

#

thanks haha

pale sandal
#

don't use underlining

open vector
pale sandal
#

it's bad typography

#

you don't see underlining anywhere in professional publications

open vector
#

i see

#

well i am not really writing any...good documents either way haha

#

this is just for note-taking in my class

#

but will make note of that thank you!

pale sandal
#

as an alternative you can italicise or bold

open vector
#

oh thats a good idea

#

on another note

#

there is this small thing i am kinda confused by

#

why is the logical equivalence symbol so...faded?

#

even the equal sign

#

its weird

pale sandal
#

logical equivalence symbol?

#

,,, \iff ?

bright galeBOT
pale sandal
#

which one are you talking about

open vector
#

\equiv

#

$\equiv$

bright galeBOT
pale sandal
#

just zoom in

#

if you're worried about how it'll show up in print don't worry

open vector
#

mmm really?

#

thats good then haha

#

alright thank you!

#

is there a way to like

#

close this thing

pale sandal
#

probably not

open vector
#

fair enough

#

i will just let it