Advanced Mathematical Formatting Test
Matrix Operations
Problem: Matrix Multiplication
If A = [ 1 − 1 1 3 2 1 ] A = \begin{bmatrix} 1 & -1 & 1 \\ 3 & 2 & 1 \end{bmatrix} A = [ 1 3 − 1 2 1 1 ] and B = [ 1 2 4 2 1 7 ] B = \begin{bmatrix} 1 & 2 \\ 4 & 2 \\ 1 & 7 \end{bmatrix} B = 1 4 1 2 2 7 then find AB & BA.
Solution for AB :
A B = [ 1 − 1 1 3 2 1 ] [ 1 2 4 2 1 7 ] AB = \begin{bmatrix} 1 & -1 & 1 \\ 3 & 2 & 1 \end{bmatrix} \begin{bmatrix} 1 & 2 \\ 4 & 2 \\ 1 & 7 \end{bmatrix} A B = [ 1 3 − 1 2 1 1 ] 1 4 1 2 2 7
Calculating each element:
( A B ) 11 = ( 1 ) ( 1 ) + ( − 1 ) ( 4 ) + ( 1 ) ( 1 ) = 1 − 4 + 1 = − 2 (AB)_{11} = (1)(1) + (-1)(4) + (1)(1) = 1 - 4 + 1 = -2 ( A B ) 11 = ( 1 ) ( 1 ) + ( − 1 ) ( 4 ) + ( 1 ) ( 1 ) = 1 − 4 + 1 = − 2
( A B ) 12 = ( 1 ) ( 2 ) + ( − 1 ) ( 2 ) + ( 1 ) ( 7 ) = 2 − 2 + 7 = 7 (AB)_{12} = (1)(2) + (-1)(2) + (1)(7) = 2 - 2 + 7 = 7 ( A B ) 12 = ( 1 ) ( 2 ) + ( − 1 ) ( 2 ) + ( 1 ) ( 7 ) = 2 − 2 + 7 = 7
( A B ) 21 = ( 3 ) ( 1 ) + ( 2 ) ( 4 ) + ( 1 ) ( 1 ) = 3 + 8 + 1 = 12 (AB)_{21} = (3)(1) + (2)(4) + (1)(1) = 3 + 8 + 1 = 12 ( A B ) 21 = ( 3 ) ( 1 ) + ( 2 ) ( 4 ) + ( 1 ) ( 1 ) = 3 + 8 + 1 = 12
( A B ) 22 = ( 3 ) ( 2 ) + ( 2 ) ( 2 ) + ( 1 ) ( 7 ) = 6 + 4 + 7 = 17 (AB)_{22} = (3)(2) + (2)(2) + (1)(7) = 6 + 4 + 7 = 17 ( A B ) 22 = ( 3 ) ( 2 ) + ( 2 ) ( 2 ) + ( 1 ) ( 7 ) = 6 + 4 + 7 = 17
Therefore: A B = [ − 2 7 12 17 ] AB = \begin{bmatrix} -2 & 7 \\ 12 & 17 \end{bmatrix} A B = [ − 2 12 7 17 ]
Solution for BA :
B A = [ 1 2 4 2 1 7 ] [ 1 − 1 1 3 2 1 ] BA = \begin{bmatrix} 1 & 2 \\ 4 & 2 \\ 1 & 7 \end{bmatrix} \begin{bmatrix} 1 & -1 & 1 \\ 3 & 2 & 1 \end{bmatrix} B A = 1 4 1 2 2 7 [ 1 3 − 1 2 1 1 ]
Calculating each element:
( B A ) 11 = ( 1 ) ( 1 ) + ( 2 ) ( 3 ) = 1 + 6 = 7 (BA)_{11} = (1)(1) + (2)(3) = 1 + 6 = 7 ( B A ) 11 = ( 1 ) ( 1 ) + ( 2 ) ( 3 ) = 1 + 6 = 7
( B A ) 12 = ( 1 ) ( − 1 ) + ( 2 ) ( 2 ) = − 1 + 4 = 3 (BA)_{12} = (1)(-1) + (2)(2) = -1 + 4 = 3 ( B A ) 12 = ( 1 ) ( − 1 ) + ( 2 ) ( 2 ) = − 1 + 4 = 3
( B A ) 13 = ( 1 ) ( 1 ) + ( 2 ) ( 1 ) = 1 + 2 = 3 (BA)_{13} = (1)(1) + (2)(1) = 1 + 2 = 3 ( B A ) 13 = ( 1 ) ( 1 ) + ( 2 ) ( 1 ) = 1 + 2 = 3
( B A ) 21 = ( 4 ) ( 1 ) + ( 2 ) ( 3 ) = 4 + 6 = 10 (BA)_{21} = (4)(1) + (2)(3) = 4 + 6 = 10 ( B A ) 21 = ( 4 ) ( 1 ) + ( 2 ) ( 3 ) = 4 + 6 = 10
( B A ) 22 = ( 4 ) ( − 1 ) + ( 2 ) ( 2 ) = − 4 + 4 = 0 (BA)_{22} = (4)(-1) + (2)(2) = -4 + 4 = 0 ( B A ) 22 = ( 4 ) ( − 1 ) + ( 2 ) ( 2 ) = − 4 + 4 = 0
( B A ) 23 = ( 4 ) ( 1 ) + ( 2 ) ( 1 ) = 4 + 2 = 6 (BA)_{23} = (4)(1) + (2)(1) = 4 + 2 = 6 ( B A ) 23 = ( 4 ) ( 1 ) + ( 2 ) ( 1 ) = 4 + 2 = 6
( B A ) 31 = ( 1 ) ( 1 ) + ( 7 ) ( 3 ) = 1 + 21 = 22 (BA)_{31} = (1)(1) + (7)(3) = 1 + 21 = 22 ( B A ) 31 = ( 1 ) ( 1 ) + ( 7 ) ( 3 ) = 1 + 21 = 22
( B A ) 32 = ( 1 ) ( − 1 ) + ( 7 ) ( 2 ) = − 1 + 14 = 13 (BA)_{32} = (1)(-1) + (7)(2) = -1 + 14 = 13 ( B A ) 32 = ( 1 ) ( − 1 ) + ( 7 ) ( 2 ) = − 1 + 14 = 13
( B A ) 33 = ( 1 ) ( 1 ) + ( 7 ) ( 1 ) = 1 + 7 = 8 (BA)_{33} = (1)(1) + (7)(1) = 1 + 7 = 8 ( B A ) 33 = ( 1 ) ( 1 ) + ( 7 ) ( 1 ) = 1 + 7 = 8
Therefore: B A = [ 7 3 3 10 0 6 22 13 8 ] BA = \begin{bmatrix} 7 & 3 & 3 \\ 10 & 0 & 6 \\ 22 & 13 & 8 \end{bmatrix} B A = 7 10 22 3 0 13 3 6 8
Calculus - Advanced Differentiation
Logarithmic Differentiation
If y = log ( cos x 1 + sin x ) y = \log\left(\frac{\cos x}{1+\sin x}\right) y = log ( 1 + s i n x c o s x ) then find d y d x \frac{dy}{dx} d x d y
Solution :
y = log ( cos x 1 + sin x ) y = \log\left(\frac{\cos x}{1+\sin x}\right) y = log ( 1 + s i n x c o s x )
Using logarithm properties:
y = log ( cos x ) − log ( 1 + sin x ) y = \log(\cos x) - \log(1+\sin x) y = log ( cos x ) − log ( 1 + sin x )
Differentiating both sides:
d y d x = d d x [ log ( cos x ) ] − d d x [ log ( 1 + sin x ) ] \frac{dy}{dx} = \frac{d}{dx}[\log(\cos x)] - \frac{d}{dx}[\log(1+\sin x)] d x d y = d x d [ log ( cos x )] − d x d [ log ( 1 + sin x )]
d y d x = 1 cos x ⋅ ( − sin x ) − 1 1 + sin x ⋅ cos x \frac{dy}{dx} = \frac{1}{\cos x} \cdot (-\sin x) - \frac{1}{1+\sin x} \cdot \cos x d x d y = c o s x 1 ⋅ ( − sin x ) − 1 + s i n x 1 ⋅ cos x
d y d x = − sin x cos x − cos x 1 + sin x \frac{dy}{dx} = -\frac{\sin x}{\cos x} - \frac{\cos x}{1+\sin x} d x d y = − c o s x s i n x − 1 + s i n x c o s x
d y d x = − tan x − cos x 1 + sin x \frac{dy}{dx} = -\tan x - \frac{\cos x}{1+\sin x} d x d y = − tan x − 1 + s i n x c o s x
Simplifying further :
d y d x = − sin x ( 1 + sin x ) + cos 2 x cos x ( 1 + sin x ) \frac{dy}{dx} = -\frac{\sin x(1+\sin x) + \cos^2 x}{\cos x(1+\sin x)} d x d y = − c o s x ( 1 + s i n x ) s i n x ( 1 + s i n x ) + c o s 2 x
= − sin x + sin 2 x + cos 2 x cos x ( 1 + sin x ) = -\frac{\sin x + \sin^2 x + \cos^2 x}{\cos x(1+\sin x)} = − c o s x ( 1 + s i n x ) s i n x + s i n 2 x + c o s 2 x
Since sin 2 x + cos 2 x = 1 \sin^2 x + \cos^2 x = 1 sin 2 x + cos 2 x = 1 :
d y d x = − sin x + 1 cos x ( 1 + sin x ) = − 1 cos x = − sec x \frac{dy}{dx} = -\frac{\sin x + 1}{\cos x(1+\sin x)} = -\frac{1}{\cos x} = -\sec x d x d y = − c o s x ( 1 + s i n x ) s i n x + 1 = − c o s x 1 = − sec x
Integration Techniques
Integration by Parts
Evaluate : ∫ x log x d x \int x \log x \, dx ∫ x log x d x
Solution :
Using integration by parts: ∫ u d v = u v − ∫ v d u \int u \, dv = uv - \int v \, du ∫ u d v = uv − ∫ v d u
Let:
u = log x ⇒ d u = 1 x d x u = \log x \Rightarrow du = \frac{1}{x} dx u = log x ⇒ d u = x 1 d x
d v = x d x ⇒ v = x 2 2 dv = x \, dx \Rightarrow v = \frac{x^2}{2} d v = x d x ⇒ v = 2 x 2
∫ x log x d x = log x ⋅ x 2 2 − ∫ x 2 2 ⋅ 1 x d x \int x \log x \, dx = \log x \cdot \frac{x^2}{2} - \int \frac{x^2}{2} \cdot \frac{1}{x} dx ∫ x log x d x = log x ⋅ 2 x 2 − ∫ 2 x 2 ⋅ x 1 d x
= x 2 log x 2 − ∫ x 2 d x = \frac{x^2 \log x}{2} - \int \frac{x}{2} dx = 2 x 2 l o g x − ∫ 2 x d x
= x 2 log x 2 − x 2 4 + C = \frac{x^2 \log x}{2} - \frac{x^2}{4} + C = 2 x 2 l o g x − 4 x 2 + C
= x 2 2 ( log x − 1 2 ) + C = \frac{x^2}{2}\left(\log x - \frac{1}{2}\right) + C = 2 x 2 ( log x − 2 1 ) + C
Complex Numbers - Polar Form
De Moivre's Theorem Application
Simplify : ( cos 2 θ + i sin 2 θ ) 3 ⋅ ( cos 3 θ − i sin 3 θ ) 2 ( cos 2 θ + i sin 2 θ ) 7 ⋅ ( cos 5 θ − i sin 5 θ ) 3 \frac{(\cos 2\theta + i\sin 2\theta)^3 \cdot (\cos 3\theta - i\sin 3\theta)^2}{(\cos 2\theta + i\sin 2\theta)^7 \cdot (\cos 5\theta - i\sin 5\theta)^3} ( c o s 2 θ + i s i n 2 θ ) 7 ⋅ ( c o s 5 θ − i s i n 5 θ ) 3 ( c o s 2 θ + i s i n 2 θ ) 3 ⋅ ( c o s 3 θ − i s i n 3 θ ) 2
Solution :
Using Euler's formula: cos θ + i sin θ = e i θ \cos\theta + i\sin\theta = e^{i\theta} cos θ + i sin θ = e i θ and cos θ − i sin θ = e − i θ \cos\theta - i\sin\theta = e^{-i\theta} cos θ − i sin θ = e − i θ
Numerator:
( cos 2 θ + i sin 2 θ ) 3 ⋅ ( cos 3 θ − i sin 3 θ ) 2 = ( e i 2 θ ) 3 ⋅ ( e − i 3 θ ) 2 (\cos 2\theta + i\sin 2\theta)^3 \cdot (\cos 3\theta - i\sin 3\theta)^2 = (e^{i2\theta})^3 \cdot (e^{-i3\theta})^2 ( cos 2 θ + i sin 2 θ ) 3 ⋅ ( cos 3 θ − i sin 3 θ ) 2 = ( e i 2 θ ) 3 ⋅ ( e − i 3 θ ) 2
= e i 6 θ ⋅ e − i 6 θ = e i ( 6 θ − 6 θ ) = e i 0 = 1 = e^{i6\theta} \cdot e^{-i6\theta} = e^{i(6\theta-6\theta)} = e^{i0} = 1 = e i 6 θ ⋅ e − i 6 θ = e i ( 6 θ − 6 θ ) = e i 0 = 1
Denominator:
( cos 2 θ + i sin 2 θ ) 7 ⋅ ( cos 5 θ − i sin 5 θ ) 3 = ( e i 2 θ ) 7 ⋅ ( e − i 5 θ ) 3 (\cos 2\theta + i\sin 2\theta)^7 \cdot (\cos 5\theta - i\sin 5\theta)^3 = (e^{i2\theta})^7 \cdot (e^{-i5\theta})^3 ( cos 2 θ + i sin 2 θ ) 7 ⋅ ( cos 5 θ − i sin 5 θ ) 3 = ( e i 2 θ ) 7 ⋅ ( e − i 5 θ ) 3
= e i 14 θ ⋅ e − i 15 θ = e i ( 14 θ − 15 θ ) = e − i θ = e^{i14\theta} \cdot e^{-i15\theta} = e^{i(14\theta-15\theta)} = e^{-i\theta} = e i 14 θ ⋅ e − i 15 θ = e i ( 14 θ − 15 θ ) = e − i θ
Therefore:
1 e − i θ = e i θ = cos θ + i sin θ \frac{1}{e^{-i\theta}} = e^{i\theta} = \cos\theta + i\sin\theta e − i θ 1 = e i θ = cos θ + i sin θ
Differential Equations
First Order Linear ODE
Solve : d y d x + y x = e x \frac{dy}{dx} + \frac{y}{x} = e^x d x d y + x y = e x , y ( 0 ) = 2 y(0) = 2 y ( 0 ) = 2
Solution :
This is a first-order linear ODE of the form d y d x + P ( x ) y = Q ( x ) \frac{dy}{dx} + P(x)y = Q(x) d x d y + P ( x ) y = Q ( x )
Where P ( x ) = 1 x P(x) = \frac{1}{x} P ( x ) = x 1 and Q ( x ) = e x Q(x) = e^x Q ( x ) = e x
Finding Integrating Factor :
μ ( x ) = e ∫ P ( x ) d x = e ∫ 1 x d x = e ln ∣ x ∣ = ∣ x ∣ = x (for x > 0 ) \mu(x) = e^{\int P(x) dx} = e^{\int \frac{1}{x} dx} = e^{\ln|x|} = |x| = x \text{ (for } x > 0\text{)} μ ( x ) = e ∫ P ( x ) d x = e ∫ x 1 d x = e l n ∣ x ∣ = ∣ x ∣ = x (for x > 0 )
Multiplying the equation by μ ( x ) = x \mu(x) = x μ ( x ) = x :
x d y d x + y = x e x x\frac{dy}{dx} + y = xe^x x d x d y + y = x e x
The left side is the derivative of x y xy x y :
d d x ( x y ) = x e x \frac{d}{dx}(xy) = xe^x d x d ( x y ) = x e x
Integrating both sides :
x y = ∫ x e x d x xy = \int xe^x dx x y = ∫ x e x d x
Using integration by parts with u = x u = x u = x , d v = e x d x dv = e^x dx d v = e x d x :
∫ x e x d x = x e x − ∫ e x d x = x e x − e x + C = e x ( x − 1 ) + C \int xe^x dx = xe^x - \int e^x dx = xe^x - e^x + C = e^x(x-1) + C ∫ x e x d x = x e x − ∫ e x d x = x e x − e x + C = e x ( x − 1 ) + C
Therefore:
x y = e x ( x − 1 ) + C xy = e^x(x-1) + C x y = e x ( x − 1 ) + C
y = e x ( x − 1 ) + C x y = \frac{e^x(x-1) + C}{x} y = x e x ( x − 1 ) + C
Applying initial condition y ( 0 ) = 2 y(0) = 2 y ( 0 ) = 2 :
This creates an issue since we have x x x in the denominator. Let's reconsider the problem setup or assume y y y approaches a limit as x → 0 + x \to 0^+ x → 0 + .
For a proper solution, we typically need x ≠ 0 x \neq 0 x = 0 in the domain.
Formulas Reference
Trigonometric Identities
sin 2 θ + cos 2 θ = 1 \sin^2\theta + \cos^2\theta = 1 sin 2 θ + cos 2 θ = 1
tan 2 θ + 1 = sec 2 θ \tan^2\theta + 1 = \sec^2\theta tan 2 θ + 1 = sec 2 θ
1 + cot 2 θ = csc 2 θ 1 + \cot^2\theta = \csc^2\theta 1 + cot 2 θ = csc 2 θ
sin ( A ± B ) = sin A cos B ± cos A sin B \sin(A \pm B) = \sin A \cos B \pm \cos A \sin B sin ( A ± B ) = sin A cos B ± cos A sin B
cos ( A ± B ) = cos A cos B ∓ sin A sin B \cos(A \pm B) = \cos A \cos B \mp \sin A \sin B cos ( A ± B ) = cos A cos B ∓ sin A sin B
Derivatives
d d x ( x n ) = n x n − 1 \frac{d}{dx}(x^n) = nx^{n-1} d x d ( x n ) = n x n − 1
d d x ( sin x ) = cos x \frac{d}{dx}(\sin x) = \cos x d x d ( sin x ) = cos x
d d x ( cos x ) = − sin x \frac{d}{dx}(\cos x) = -\sin x d x d ( cos x ) = − sin x
d d x ( tan x ) = sec 2 x \frac{d}{dx}(\tan x) = \sec^2 x d x d ( tan x ) = sec 2 x
d d x ( log x ) = 1 x \frac{d}{dx}(\log x) = \frac{1}{x} d x d ( log x ) = x 1
d d x ( e x ) = e x \frac{d}{dx}(e^x) = e^x d x d ( e x ) = e x
Integrals
∫ x n d x = x n + 1 n + 1 + C \int x^n dx = \frac{x^{n+1}}{n+1} + C ∫ x n d x = n + 1 x n + 1 + C (where n ≠ − 1 n \neq -1 n = − 1 )
∫ 1 x d x = log ∣ x ∣ + C \int \frac{1}{x} dx = \log|x| + C ∫ x 1 d x = log ∣ x ∣ + C
∫ e x d x = e x + C \int e^x dx = e^x + C ∫ e x d x = e x + C
∫ sin x d x = − cos x + C \int \sin x dx = -\cos x + C ∫ sin x d x = − cos x + C
∫ cos x d x = sin x + C \int \cos x dx = \sin x + C ∫ cos x d x = sin x + C