# 10. Fonctions affines

{% file src="/files/Zin5FOiZ8M1qmkjIMj5y" %}

## Définition

On appelle **fonction affine**, une fonction définie sur $$\mathbb{R}$$ par $$f(x)=ax+b$$ où $$a$$ et $$b$$ sont deux nombres réels.

**Exemples :**

...

**Important :**

* Si $$a=0$$, alors $$f(x)=b$$ est **une fonction constante**.
* Si $$b=0$$, alors $$f(x)=ax$$ est **une fonction linéaire**.

**Exercices :**

1. Déterminer l'expression de la fonction affine $$f$$ telle que $$f(1)=-1$$ et $$f(-2)=-7$$. Quelle est l'image de $$\dfrac{4}{5}$$ par $$f$$ ?
2. Déterminer l'expression de la fonction linéaire $$g$$ telle que $$g(3)=2$$.\
   Quelle est l'image de $$1$$ par $$g$$ ?

## **Représentation graphique**

La représentation graphique de la fonction affine $$f(x)=ax+b$$ est la droite d'équation $$y=ax+b$$

![](/files/-MTuVFD2QDH-fVTuFbVW)

[**Lien vers l'animation GeoGebra**](https://www.geogebra.org/graphing/ybupb8zv)

**Exercice :**

Représenter les fonctions affines suivantes ...

{% file src="/files/qzmbeHX4TsoOCThICFzk" %}

## Variation

**Proposition :**

Soit $$f(x)=ax+b$$ une fonction affine.

* Si $$a>0$$, alors $$f$$ est croissante
* Si $$a=0$$, alors $$f$$ est constante
* Si $$a<0$$, alors $$f$$ est décroissante

## Signe

**Proposition :**

Soit $$f(x)=ax+b$$ une fonction affine avec $$a\neq 0$$.

Si $$a>0$$, alors

|         x         | $$-\infty$$ |       | $$-\frac{b}{a}$$ |       | $$+\infty$$ |
| :---------------: | :---------: | :---: | :--------------: | :---: | :---------: |
| Signe de $$f(x)$$ |             | $$-$$ |       $$0$$      | $$+$$ |             |

Si $$a<0$$, alors

|         x         | $$-\infty$$ |       | $$-\frac{b}{a}$$ |       | $$+\infty$$ |
| :---------------: | :---------: | :---: | :--------------: | :---: | :---------: |
| Signe de $$f(x)$$ |             | $$+$$ |       $$0$$      | $$-$$ |             |

{% file src="/files/kuDBNCjwXtpsTHvD7ipl" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://arnaud-lierville.gitbook.io/seconde/cours/11.-fonctions-affines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
