Math & ScienceEquation system not working as I want to

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
MathiasHan
Posts: 3
Joined: Mon Oct 01, 2018 11:46 am

Equation system not working as I want to

Post by MathiasHan »

Hi folks,

I am kinda new to LaTeX and trying to build a presentation with some math.

I want to write these two equations, but not quite sure how to do it:

As for equation number (1) I am wondering on how I allign the equations meanwhile I just keep equation 1 and not equation 1 and 2 :)

My code is currently:

Code: Select all

\begin{eqnarray}
F_{t+1} &=& F_t+F_t*(R_{t+1}-1)(1-\tau_{PAL})+\theta Y_{t+1} \\
&=& \theta Y_{t+1}+F_t(\tau_{PAL}+R_{t+1}(1-\tau_{PAL})),
\end{eqnarray}
, but this results with equation 1 and 2 whereas it should only be 1.

For equation number 4 I am not sure which codes to use

Can anyone help me? :)

Best regards MathiasH
Attachments
Hjælp LaTeX.JPG
Hjælp LaTeX.JPG (18.98 KiB) Viewed 3946 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Equation system not working as I want to

Post by Stefan Kottwitz »

Hi Mathias,

welcome to the forum!

Here is a way:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
  \begin{split}
    F_{t+1} &= F_t+F_t*(R_{t+1}-1)(1-\tau_{PAL})+\theta Y_{t+1} \\
            &=  \theta Y_{t+1}+F_t(\tau_{PAL}+R_{t+1}(1-\tau_{PAL})),
  \end{split}
\end{equation} 
\end{document}
Never use eqnarray (any more), since that is not optimal. Better use align or any other environment of the amsmath package.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Equation system not working as I want to

Post by Johannes_B »

What is shown in the figure as equation four can be done using the cases environment of package amsmath.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
MathiasHan
Posts: 3
Joined: Mon Oct 01, 2018 11:46 am

Equation system not working as I want to

Post by MathiasHan »

Thank you!!!

However, now I am stuck on this line which is normal text. Anyone have any clue on how to write it?

"If we let $\mathbf{\mu}(t+1)$ be the vector of the expected returns in year t+1 and let $\sum_=$" clearly does not work.
Attachments
help latex 2.JPG
help latex 2.JPG (15.71 KiB) Viewed 3921 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Equation system not working as I want to

Post by Stefan Kottwitz »

Stuck with which detail? What does not work? Making bold? Then use \boldsymbol{\mu}.

Stefan
LaTeX.org admin
MathiasHan
Posts: 3
Joined: Mon Oct 01, 2018 11:46 am

Equation system not working as I want to

Post by MathiasHan »

Thanks! That one works perfectly now. Any idea of how I do the sigma with 2 lines under? :-)

Such a great help!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Equation system not working as I want to

Post by Stefan Kottwitz »

I guess that's the easiest straightforward way:

Code: Select all

\documentclass{article}
\begin{document}
$\underline{\underline{\sum}} x$
\end{document}
Strefan
LaTeX.org admin
Post Reply