Baccalauréat 2024 — Mathematics specialty, Centres étrangers (Europe) 5 juin 2024 (sujet 1) — exercise 2 : Exponential function, sequence and algorithm (official exam paper)
Statement
Consider the function $f$ defined on the interval [0 ; 1] by
\[f(x) = 2x\mathrm{e}^{-x}.\]
It is assumed that the function $f$ is differentiable on the interval [0 ; 1].
1.
a. Solve on the interval [0 ; 1] the equation $f(x) = x$.
b. Prove that, for every $x$ belonging to the interval [0 ; 1],
\[f'(x) = 2(1 - x)\mathrm{e}^{-x}.\]
c. Give the variation table of the function $f$ on the interval [0 ; 1].
Consider the sequence $(u_n)$ defined by $u_0 = 0.1$ and, for every natural integer $n$,
\[u_{n+1} = f\left(u_n\right).\]
2.
a. Prove by induction that, for every natural integer $n$,
\[0 \leqslant u_n < u_{n+1} \leqslant 1.\]
b. Deduce that the sequence $(u_n)$ is convergent.
3. Prove that the limit of the sequence $(u_n)$ is $\ln(2)$.
4.
a. Justify that for every natural integer $n$, $\ln(2) - u_n$ is positive.
b. We want to write a Python script that returns an approximate value of $\ln(2)$ by default to within $10^{-4}$, as well as the number of steps needed to obtain it.
Copy and complete the script below so that it solves the problem.
```python
def seuil() :
n = 0
u = 0.1
while ln(2) - u ... 0.0001 :
n = n + 1
u = ...
return (u, n)
```
c. Give the value of the variable $n$ returned by the function seuil().
⏳ Solution not generated yet
Open this statement in Expert Maths AI: the step-by-step solution is computed on demand, checked by a second resolution, then published here for everyone.
📝 See the solutionHave a similar exercise? Get it solved step by step, for free.
🧮 Solve my exercise