Math & ScienceSize of Integrals in Matrices

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Naw_La
Posts: 5
Joined: Sun Dec 30, 2012 3:03 pm

Size of Integrals in Matrices

Post by Naw_La »

Dear all,

I have an integral sign within a matrix expression. It appears too small. I tried the \DeclareMathSizes command with the appropriated package, as I found it in the forum, it did not change the size. I attached a copy of the formula that I am using:

Code: Select all

\begin{subequations}
  \begin{equation}
    \bf X_{0}=\left[
    \begin{array}{cc}
      \mu \int_{0}^{2b} A_{,y}^{T} A_{,y} dy & 0 \\
      0 & 2\mu \int_{0}^{2b} A_{,y}^{T} B_{,y} dy \\
    \end{array}
    \right].
  \end{equation}
\\
%
\\
  \begin{equation}
    \bf Y_{1}=\left[
    \begin{array}{cc}
      0 & \lambda \int_{0}^{2b} A^{T} N_{,y} dy -\mu \int_{0}^{2b} B_{,y}^{T} N dy\\
      -\lambda \int_{0}^{2b} C_{,y}^{T} D dy +\mu \int_{0}^{2b} C^{T} B_{,y} dy & 0 \\
    \end{array}
    \right].
  \end{equation}
\\
%
\end{subequations}
Your time and help are appreciated. I am looking forward to your suggestions and help.

Kind regards
Nawras
Last edited by Stefan Kottwitz on Sun May 26, 2013 10:42 am, edited 1 time in total.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Size of Integrals in Matrices

Post by localghost »

Please always provide a self-contained and minimal example to make a problem comprehensible instantly for all others. Otherwise it can happen that you get no answer because nobody knows your document setup. Furthermore people are rarely motivated to build a complete example just to test possible solutions for you.

The cell content in the {array} environment is typeset in text style. Therefore such operators like integrals appear too small in arrays (or matrices). You have to switch to display style by \displaystyle to get the desired size. This can be simplified by new column types defined with commands by the array package.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{mathtools}  % loads »amsmath«
\usepackage{array}      % Enhancements for {array} and {tabular}

\newcolumntype{C}{>{\displaystyle}c}

\begin{document}
  \begin{subequations}
    \renewcommand*{\arraystretch}{1.2}
    \begin{align}
      \textbf{X}_0 &=
      \left[
      \begin{array}{CC}
        \mu \int_{0}^{2b} A_{,y}^{T} A_{,y} dy & 0 \\[5\jot]
        0 & 2\mu \int_{0}^{2b} A_{,y}^{T} B_{,y} dy
      \end{array}
      \right]\\[2\jot]
      \textbf{Y}_1 &=
      \left[
      \begin{array}{CC}
        0 & \lambda \int_{0}^{2b} A^{T} N_{,y} dy -\mu \int_{0}^{2b} B_{,y}^{T} N dy\\[5\jot]
        -\lambda \int_{0}^{2b} C_{,y}^{T} D dy +\mu \int_{0}^{2b} C^{T} B_{,y} dy & 0
      \end{array}
      \right]
    \end{align}
  \end{subequations}
\end{document}
For details referto the manuals of the involved packages.


Remarks:
  • The font switch \bf is obsolete LaTeX2.09 syntax. The correct LaTeX2ε syntax would be \bfseries. Here it is better to use \textbf.
  • It seems preferable to use the align environment from amsmath in order to get those equations aligned properly here.
  • Never use \\ to introduce a new line or paragraph in justified text. New paragraphs are introduced either by a blank line or by \par.

Thorsten
Naw_La
Posts: 5
Joined: Sun Dec 30, 2012 3:03 pm

Re: Size of Integrals in Matrices

Post by Naw_La »

Hi,

Thanks very much for your reply. I agree with you, I rushed and copied the formula without putting the document set-up.

Thanks for your effort.


Regards

Nawras
Post Reply