Решим уравнение графически: $$\sqrt{x}=x-6$$.
Построим графики функций $$y=\sqrt{x}$$ и $$y=x-6$$.
<canvas id="myChart" width="400" height="400"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const ctx = document.getElementById('myChart').getContext('2d');
const myChart = new Chart(ctx, {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
datasets: [{
label: 'y = √x',
data: [0, 1, 1.41, 1.73, 2, 2.24, 2.45, 2.65, 2.83, 3, 3.16, 3.32, 3.46, 3.61, 3.74, 3.87, 4],
borderColor: 'rgb(75, 192, 192)',
tension: 0.1
},
{
label: 'y = x - 6',
data: [-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
borderColor: 'rgb(255, 99, 132)',
tension: 0.1
}]
},
options: {
scales: {
x: {
min: 0,
max: 16
},
y: {
min: -6,
max: 10
}
}
}
});
</script>
Графики пересекаются в точке x = 9.
Ответ: 9