Keshav Mahavidyalaya
University of Delhi
Name: Vishnu Rajpoot
Course: [Link]. (Hons.) Computer Science
Roll no: 230457
Subject: LATEX TYPESETTING FOR BEGINNERS
Submitted To: Dr. Simran Thapar ma’am
Q1 Write the input code of following output?
Input code:
\documentclass[a4paper,12pt]{article}
\begin{document}
\title{My Document}
\author{Vishnu. Student}
\date{Nov 11,2025}
\maketitle
\begin{enumerate}
\item Let $\mathbf{x}=(x_1,\ldots,x_n$), where the $x_i$ are nonnegative real numbers.
Set\[ M_r(\mathbf{x})=\left(\frac{x_1^r+x_2^r+\cdots+x_n^r}{n}\right)^{1/r},\; \; r \in \mathbf{R} \
setminus \{0\},\]
and
\[M_0(\mathbf{x})=\left(x_1 x_2 \ldots x_n \right)^{1/n}.\]
We call $M_r(\mathbf{x})$ the \emph{$r$th power mean} of $\mathbf{x}$.
Claim:
\[ \lim_{r \rightarrow 0} M_r(\mathbf{x})=M_0(\mathbf{x})\]
\item Define
\[V_n=\left[\begin{array}{ccccc}
1 & 1 & 1 & \ldots & 1 \\
x_1 & x_2 & x_3 & \ldots & x_n \\
x_1^2 & x_2^2 & x_3^2 & \ldots & x_n^2 \\
\vdots & \vdots & \vdots & \ddots & \vdots\\
x_1^{n-1} & x_2^{n-1} & x_3^{n-1} & \ldots & x_n^{n-1}
\end{array}
\right].
\]
We call $V_n$ the \emph{Vandermonde matrix} of order $n$.
Claim:
\[
\det V_n =\prod_{1 \leq i<j \leq n}(x_j-x_i).
\]
\end{enumerate}
\end{document}
Q2 Write the input code of following output?
Input code:
\documentclass{article}
\begin{document}
\noindent\fbox{ \parbox{\textwidth}{ \[3^3 + 4^3 +5^3=6^3\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[\sqrt{100}=10\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[(a+b)^3 = a^3 +3a^2b+3ab^2+b^3\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[\sum_{i=1}^{10}k=\frac{n(n+1)}{2}\]}}
\bigskip
\fbox{\parbox{\textwidth}{\[\frac{\pi}{4}=\frac{1}{1}-\frac{1}{3}+\frac{1}{5}+\frac{1}{9}-\frac{1}{11}+\
ldots\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[\cos\theta = \sin(90^\circ -\theta)\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[e^{i\theta}= \cos\theta+ i\sin\theta\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[\cos\theta = \sin(90^\circ -\theta)\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[\lim_{\theta \rightarrow0}\frac{\sin\theta}{\theta}=1\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[\lim_{x \rightarrow \infty}\frac{\pi(x)}{x/log x}= 1\]}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{\[\int_{-\infty}^{\infty}e^-x^2\,dx=\sqrt{\pi}\]}}
\bigskip
\end{document}
Q3 Write the input code of following output?
\documentclass{article}
\begin{document}
\noindent\fbox{ \parbox{\textwidth}{
Positive numbers $a$, $b$, and $c$ are the side lengths of a triangle if and only if
$a + b > c$, $b + c > a$, and $c + a > b$.
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
The area of a triangle with side lengths $a$, $b$, $c$ is given by \emph{Heron’s formula:}
\[
A = \sqrt{s(s-a)(s-b)(s-c)},
\]
where $s$ is the semiperimeter $(a + b + c)/2$.
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
The volume of a regular tetrahedron of edge length 1 is $\sqrt{2}/12$.
}}
\bigskip
\noindent\fbox{
\parbox{\textwidth}{
The quadratic equation $ax^2 + bx + c = 0$ has roots
\[
r_1, r_2 = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.
\]
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
The \emph{derivative} of a function $f$, denoted $f'$, is defined by
\[
f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}.
\]
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
A real-valued function $f$ is \emph{convex} on an interval $I$ if
\[
f(\lambda x + (1 - \lambda) y) \le \lambda f(x) + (1 - \lambda) f(y),
\]
for all $x, y \in I$ and $0 \le \lambda \le 1$.
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
The general solution to the differential equation
\[
y'' - 3y' + 2y = 0
\]is
\[
y = C_1 e^x + C_2 e^{2x}.
\]
}}
\bigskip
\noindent\fbox{%
\parbox{\textwidth}{%
The \emph{Fermat number} $F_n$ is defined as
\[
F_n = 2^{2^n}, \quad n \ge 0.
\]
}}
\end{document}
Q4 Write the input code of following output?
\documentclass{article}
\begin{document}
\noindent\fbox{ \parbox{\textwidth}{
\[
\frac{d}{dx} \left( \frac{x}{x + 1} \right) = \frac{1}{(x + 1)^2}
\]
}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{
\[
\lim_{n \to \infty} \left( 1 + \frac{1}{n} \right)^n = e
\]
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
\[\left|
\begin{array}{cc}
a & b \\
c&d
\end{array}
\right| = ad - bc
\]
}}
\bigskip
\noindent\fbox{\parbox{\textwidth}{
\[ R_\theta =
\left[
\begin{array}{cc}
\cos\theta & -\sin\theta \\
\sin\theta & \cos\theta
\end{array}
\right]
\]
}}
\bigskip
\noindent\fbox{
\parbox{\textwidth}{
\[\left|
\begin{array}{ccc}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
a_1 & a_2 & a_3 \\
b_1 & b_2 & b_3
\end{array}
\right| =
\left| \begin{array}{cc}
a_2 & a_3 \\
b_2 & b_3
\end{array}\right|\mathbf{i}
- \left|\begin{array}{cc}
a_1 & a_3 \\
b_1 & b_3\end{array}\right|\mathbf{j}
+ \left|\begin{array}{cc}
a_1 & a_2 \\
b_1 & b_2
\end{array}\right|\mathbf{k}
\]
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
\[ \left[
\begin{array}{cc}
a_{11} & a_{12} \\
a_{21} & a_{22}
\end{array}
\right]
\left[
\begin{array}{cc}
b_{11} & b_{12} \\
b_{21} & b_{22}
\end{array}
\right] =
\left[
\begin{array}{cc}
a_{11}b_{11} + a_{12}b_{21} & a_{11}b_{12} + a_{12}b_{22} \\
a_{21}b_{11} + a_{22}b_{21} & a_{21}b_{12} + a_{22}b_{22}
\end{array}
\right]
\]
}}
\bigskip
\noindent\fbox{ \parbox{\textwidth}{
\[
f(x)=\left\{ \begin{array}{ll}
-x^{2}, & x<0,\\
x^{2}, & 0 \le x \le 2,\\
4, & x>2.
\end{array} \right.
\]
}}
\end{document}
Q5 Write the input code of following output?
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{lmodern}
\usepackage{framed}
\begin{document}
\begin{framed}
\[\begin{array}{c}
1+2 \;=\; 3 \\[6pt]
4+5+6 \;=\; 7+8 \\[6pt]
9+10+11+12 \;=\; 13+14+15 \\[6pt]
16+17+18+19+20 \;=\; 21+22+23+24 \\[6pt]
25+26+27+28+29+30 \;=\; 31+32+33+34+35
\end{array}
\]
\end{framed}
\begin{framed}
\[\begin{aligned}
(a+b)^2 &= (a+b)(a+b) \\
&= (a+b)a + (a+b)b \\
&= a(a+b) + b(a+b) \\
&= a^2 + ab + ba + b^2 \\
&= a^2 + ab + ab + b^2 \\
&= a^2 + 2ab + b^2
\end{aligned}
\]\end{framed}
\begin{framed}
\[\begin{aligned}
\tan(\alpha + \beta + \gamma)
&= \frac{\tan(\alpha + \beta) + \tan \gamma}{1 - \tan(\alpha + \beta)\tan \gamma} \\[8pt]
&= \frac{\frac{\tan \alpha + \tan \beta}{1 - \tan \alpha \tan \beta} + \tan \gamma}{
1 - \left( \frac{\tan \alpha + \tan \beta}{1 - \tan \alpha \tan \beta} \right)\tan \gamma} \\[10pt]
&= \frac{\tan \alpha + \tan \beta + (1 - \tan \alpha \tan \beta)\tan \gamma}{
1 - \tan \alpha \tan \beta - (\tan \alpha + \tan \beta)\tan \gamma} \\[10pt]
&= \frac{\tan \alpha + \tan \beta + \tan \gamma - \tan \alpha \tan \beta \tan \gamma}{
1 - \tan \alpha \tan \beta - \tan \alpha \tan \gamma - \tan \beta \tan \gamma}
\end{aligned}\]
\end{framed}
\begin{framed}
\[\begin{aligned}
\prod_p \left( 1 - \frac{1}{p^2} \right)
&= \prod_p \frac{1}{1 + \frac{1}{p^2} + \frac{1}{p^4} + \cdots} \\[6pt]
&= \left( \prod_p \left( 1 + \frac{1}{p^2} + \frac{1}{p^4} + \cdots \right) \right)^{-1} \\[8pt]
&= \left( 1 + \frac{1}{2^2} + \frac{1}{3^2} + \frac{1}{4^2} + \cdots \right)^{-1} \\[8pt]
&= \frac{6}{\pi^2}
\end{aligned}\]
\end{framed}
\end{document}