Math Test Solutions
Question 1: Calculus
Evaluate the integral:
[
\int_0^1 (x^2 \sin(x) + x \cos(x)) , dx
]
Solution:
To evaluate the integral, we can split it into two separate integrals:
[
\int_0^1 x^2 \sin(x) , dx + \int_0^1 x \cos(x) , dx
]
Let's evaluate each integral individually.
First Integral: (\int x^2 \sin(x) , dx)
We'll use integration by parts, which is based on the formula:
[
\int u , dv = uv - \int v , du
]
Let’s choose:
- ( u = x^2 ) ⇒ ( du = 2x , dx )
- ( dv = \sin(x) , dx ) ⇒ ( v = -\cos(x) )
Applying integration by parts:
[
\int x^2 \sin(x) , dx = -x^2 \cos(x) + \int 2x \cos(x) , dx
]
Now, evaluate ( \int 2x \cos(x) , dx ) using integration by parts again.
Choose:
- ( u = 2x ) ⇒ ( du = 2 , dx )
- ( dv = \cos(x) , dx ) ⇒ ( v = \sin(x) )
Applying integration by parts:
[
\int 2x \cos(x) , dx = 2x \sin(x) - \int 2 \sin(x) , dx = 2x \sin(x) + 2 \cos(x) + C
]
Substituting back:
[
\int x^2 \sin(x) , dx = -x^2 \cos(x) + 2x \sin(x) + 2 \cos(x) + C
]
Second Integral: (\int x \cos(x) , dx)
Again, use integration by parts.
Choose:
- ( u = x ) ⇒ ( du = dx )
- ( dv = \cos(x) , dx ) ⇒ ( v = \sin(x) )
Applying integration by parts:
[
\int x \cos(x) , dx = x \sin(x) - \int \sin(x) , dx = x \sin(x) + \cos(x) + C
]
Combining Both Integrals:
Now, evaluate both definite integrals from 0 to 1.
-
First Integral:
[
\int_0^1 x^2 \sin(x) , dx = \left[ -x^2 \cos(x) + 2x \sin(x) + 2 \cos(x) \right]_0^1
]
[
= \left[ -1^2 \cos(1) + 2 \times 1 \sin(1) + 2 \cos(1) \right] - \left[ -0^2 \cos(0) + 2 \times 0 \sin(0) + 2 \cos(0) \right]
]
[
= (-\cos(1) + 2 \sin(1) + 2 \cos(1)) - (0 + 0 + 2)
]
[
= \cos(1) + 2 \sin(1) - 2
]
-
Second Integral:
[
\int_0^1 x \cos(x) , dx = \left[ x \sin(x) + \cos(x) \right]_0^1
]
[
= \left[ 1 \cdot \sin(1) + \cos(1) \right] - \left[ 0 \cdot \sin(0) + \cos(0) \right]
]
[
= \sin(1) + \cos(1) - 1
]
Total Integral:
[
\int_0^1 (x^2 \sin(x) + x \cos(x)) , dx = (\cos(1) + 2 \sin(1) - 2) + (\sin(1) + \cos(1) - 1)
]
[
= 2\cos(1) + 3 \sin(1) - 3
]
Numerical Approximation:
Using ( \cos(1) \approx 0.5403 ) and ( \sin(1) \approx 0.8415 ),
[
2 \times 0.5403 + 3 \times 0.8415 - 3 \approx 1.0806 + 2.5245 - 3 = 0.6051
]
Final Answer:
[
\int_0^1 (x^2 \sin(x) + x \cos(x)) , dx = 2\cos(1) + 3 \sin(1) - 3 \approx 0.605
]
Question 2: Linear Algebra
Let ( A ) be the matrix:
[
A = \begin{pmatrix}
2 & 1 \
1 & 3
\end{pmatrix}
]
Find the eigenvalues and corresponding eigenvectors of the matrix ( A ).
Solution:
Step 1: Find the Eigenvalues
Eigenvalues ( \lambda ) satisfy the characteristic equation:
[
\det(A - \lambda I) = 0
]
Compute ( A - \lambda I ):
[
A - \lambda I = \begin{pmatrix}
2 - \lambda & 1 \
1 & 3 - \lambda
\end{pmatrix}
]
Calculate the determinant:
[
\det(A - \lambda I) = (2 - \lambda)(3 - \lambda) - (1)(1) = \lambda^2 -5\lambda +5
]
Set the determinant to zero:
[
\lambda^2 -5\lambda +5 = 0
]
Solve for ( \lambda ) using the quadratic formula:
[
\lambda = \frac{5 \pm \sqrt{25 - 20}}{2} = \frac{5 \pm \sqrt{5}}{2}
]
Eigenvalues:
[
\lambda_1 = \frac{5 + \sqrt{5}}{2}, \quad \lambda_2 = \frac{5 - \sqrt{5}}{2}
]
Step 2: Find the Corresponding Eigenvectors
For each eigenvalue ( \lambda ), solve ( (A - \lambda I)v = 0 ) for the eigenvector ( v ).
Eigenvector for ( \lambda_1 = \frac{5 + \sqrt{5}}{2} ):
Set up the equation:
[
(A - \lambda_1 I)v = 0 \Rightarrow \begin{pmatrix}
2 - \lambda_1 & 1 \
1 & 3 - \lambda_1
\end{pmatrix} \begin{pmatrix}
v_1 \
v_2
\end{pmatrix} = \begin{pmatrix}
0 \
0
\end{pmatrix}
]
Substitute ( \lambda_1 ):
[
2 - \lambda_1 = 2 - \frac{5 + \sqrt{5}}{2} = \frac{-1 - \sqrt{5}}{2}
]
[
3 - \lambda_1 = 3 - \frac{5 + \sqrt{5}}{2} = \frac{1 - \sqrt{5}}{2}
]
The system becomes:
[
\frac{-1 - \sqrt{5}}{2} v_1 + v_2 = 0 \quad \Rightarrow \quad v_2 = \frac{1 + \sqrt{5}}{2} v_1
]
Choosing ( v_1 = 1 ) for simplicity:
[
v_2 = \frac{1 + \sqrt{5}}{2}
]
Eigenvector ( v^{(1)} ):
[
v^{(1)} = \begin{pmatrix}
1 \
\frac{1 + \sqrt{5}}{2}
\end{pmatrix}
]
Eigenvector for ( \lambda_2 = \frac{5 - \sqrt{5}}{2} ):
Set up the equation:
[
(A - \lambda_2 I)v = 0 \Rightarrow \begin{pmatrix}
2 - \lambda_2 & 1 \
1 & 3 - \lambda_2
\end{pmatrix} \begin{pmatrix}
v_1 \
v_2
\end{pmatrix} = \begin{pmatrix}
0 \
0
\end{pmatrix}
]
Substitute ( \lambda_2 ):
[
2 - \lambda_2 = 2 - \frac{5 - \sqrt{5}}{2} = \frac{-1 + \sqrt{5}}{2}
]
[
3 - \lambda_2 = 3 - \frac{5 - \sqrt{5}}{2} = \frac{1 + \sqrt{5}}{2}
]
The system becomes:
[
\frac{-1 + \sqrt{5}}{2} v_1 + v_2 = 0 \quad \Rightarrow \quad v_2 = \frac{1 - \sqrt{5}}{2} v_1
]
Choosing ( v_1 = 1 ) for simplicity:
[
v_2 = \frac{1 - \sqrt{5}}{2}
]
Eigenvector ( v^{(2)} ):
[
v^{(2)} = \begin{pmatrix}
1 \
\frac{1 - \sqrt{5}}{2}
\end{pmatrix}
]
Summary:
-
Eigenvalues:
[
\lambda_1 = \frac{5 + \sqrt{5}}{2}, \quad \lambda_2 = \frac{5 - \sqrt{5}}{2}
]
-
Corresponding Eigenvectors:
[
v^{(1)} = \begin{pmatrix}
1 \
\frac{1 + \sqrt{5}}{2}
\end{pmatrix}, \quad
v^{(2)} = \begin{pmatrix}
1 \
\frac{1 - \sqrt{5}}{2}
\end{pmatrix}
]
Note: Eigenvectors can be scaled by any non-zero scalar. The above vectors are chosen for simplicity.
Question 3: Number Theory
Prove that there are infinitely many prime numbers of the form ( 6k \pm 1 ) where ( k ) is a non-negative integer.
Solution:
Understanding the Form ( 6k \pm 1 ):
Any integer can be expressed in one of the following forms:
[
6k, \quad 6k \pm 1, \quad 6k \pm 2, \quad 6k + 3
]
where ( k ) is an integer.
- ( 6k ) is divisible by 6.
- ( 6k \pm 2 = 2(3k \pm 1) ) is divisible by 2.
- ( 6k + 3 = 3(2k + 1) ) is divisible by 3.
Thus, any prime number greater than 3 cannot be of the form ( 6k, 6k \pm 2, ) or ( 6k + 3 ) since it would be divisible by 2 or 3. Therefore, all primes greater than 3 must be of the form ( 6k \pm 1 ).
Proof of Infinitely Many Primes of the Form ( 6k \pm 1 ):
To prove there are infinitely many primes of the form ( 6k \pm 1 ), we'll use a proof by contradiction similar to Euclid's classic proof for the infinitude of primes.
Assumption:
Suppose there are only finitely many primes of the form ( 6k \pm 1 ). Let these primes be:
[
p_1, p_2, p_3, \ldots, p_n
]
Constructing a New Number:
Consider the number:
[
N = 6(p_1 p_2 p_3 \ldots p_n) \pm 1
]
(Note: The ( \pm ) ensures that ( N ) is either ( 6k +1 ) or ( 6k -1 ).)
Properties of ( N ):
- ( N ) is of the form ( 6k \pm 1 ), so if it's prime, it should be one of the ( p_i )'s.
- If ( N ) is not prime, then its prime factors must also be of the form ( 6k \pm 1 ) (since all primes >3 are of this form).
Analysis:
-
If ( N ) is prime:
- Then ( N ) is a prime not in our original list ( p_1, p_2, \ldots, p_n ), contradicting the assumption that we listed all such primes.
-
If ( N ) is composite:
- All prime factors of ( N ) must be of the form ( 6k \pm 1 ).
- However, none of the primes ( p_1, p_2, \ldots, p_n ) divide ( N ) because:
[
N = 6(p_1 p_2 \ldots p_n) \pm 1 \equiv \pm1 \mod p_i
]
Thus, none of the ( p_i )'s divide ( N ).
- Therefore, ( N ) must have a prime factor not in our original list, again contradicting our assumption.
Conclusion:
The assumption that there are only finitely many primes of the form ( 6k \pm 1 ) leads to a contradiction. Hence, there must be infinitely many primes of the form ( 6k \pm 1 ).
Alternative Perspective:
Since all primes greater than 3 must be of the form ( 6k \pm 1 ), and it's a well-established fact that there are infinitely many primes, it directly follows that there are infinitely many primes of the form ( 6k \pm 1 ).
Final Conclusion:
All three problems have been addressed with detailed solutions:
- Calculus: Evaluated the integral and provided both symbolic and numerical answers.
- Linear Algebra: Determined the eigenvalues and corresponding eigenvectors of the given matrix.
- Number Theory: Proved that there are infinitely many primes of the form ( 6k \pm 1 ).