\documentclass[11pt]{article}

 \usepackage{ifthen}

  \usepackage[utf8]{inputenc}
 % \usepackage{fourier}

  \usepackage[svgnames]{xcolor}

  \usepackage{geometry}
  \geometry{a4paper,hmargin=2cm,vmargin=1cm}

  \setlength{\parindent}{0pt}

  \usepackage{graphicx}
  \usepackage{ifpdf}
   \ifpdf
     \DeclareGraphicsRule{*}{mps}{*}{}
   \fi

  \usepackage{multicol}
  \setlength{\multicolsep}{12pt}
  \setlength{\columnsep}{40pt}
  \setlength{\columnseprule}{0.5pt}

  \usepackage{enumitem}
 % \setenumerate{align=left,leftmargin=*,noitemsep}
\setenumerate{align=left,leftmargin=*}
  \setenumerate[2]{label=\alph*),widest=a,ref=\theenumi.\alph*}
  \setitemize{nolistsep}

  \usepackage{amsmath,mathrsfs}
  \usepackage[np]{numprint}

  \usepackage[official,right]{eurosym}
  \usepackage[frenchb]{babel}
  \frenchbsetup{CompactItemize=false}
  \DecimalMathComma

\newcounter{exercice}
\newcounter{refex}
\renewcommand{\therefex}{\arabic{exercice}}
\newcounter{partie}[exercice]
\newcounter{refpart}
\renewcommand{\thepartie}{\Alph{partie}}
\renewcommand{\therefpart}{\Alph{partie}}

\makeatletter
\newenvironment{exercice}[1][]{%
		     \stepcounter{exercice}
		     \refstepcounter{refex}
		     \vspace{0.5em}
		     \par
                     \def\@svsechd{\large \color{white} \colorbox{purple}{\bfseries\arabic{exercice}}}%
                     \@xsect{-1em}%
                     \ifthenelse{\equal{#1}{}}{}{\textbf{#1}\par}%
                     }{\par\vspace{1.5em}}
\makeatother

\newenvironment{partie}[1][]{%
                     \stepcounter{partie}
                     \refstepcounter{refpart}
		      \par \vspace{0.5ex}\noindent
		     \textbf{Partie \thepartie \ifthenelse{\equal{#1}{}}{}{\quad -\quad#1}%
		     }\nopagebreak\par%
                     }{\par\vspace{1em}}



%%%%%%%%%%% Ensembles %%%%%%%%%%%%
\newcommand{\D}{\mathbb{D}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}

%%%%%%%%%%% Intervalles %%%%%%%%%%%%
\newcommand{\intervalleOO}[2]{\left]{#1}\,{;}\,{#2}\right[}
\newcommand{\intervalleOF}[2]{\left]{#1}\,{;}\,{#2}\right]}
\newcommand{\intervalleFO}[2]{\left[{#1}\,{;}\,{#2}\right[}
\newcommand{\intervalleFF}[2]{\left[{#1}\,{;}\,{#2}\right]}

\newcommand{\couple}[2]{\left(#1\,{;}\,{#2}\right)}


\newcommand{\calc}{\mathscr{C}}
\newcommand{\cald}{\mathscr{D}}

%%%%%%%%%%%% Vecteurs %%%%%%%%%%%%%%%
\usepackage[e]{esvect}
\newcommand{\vect}[1]{\vv{#1}}
\newcommand{\repere}[3]{\left(#1\,{;}\,\vect{#2}{,}\,\vect{#3} \right)}
\newcommand{\oij}{\repere{O}{\imath}{\jmath}}
\newcommand{\barre}[1]{\overline{#1\rule{0.1em}{0ex}}}

% %%%%%%%%%%%% Coordonnées %%%%%%%%%%%%%%% Ca ne marche pas avec tablor à cause d'un conflit de nom
% \newcommand{\cp}[2]{%
%         \begin{pmatrix}
%         #1\\
%         #2
%         \end{pmatrix}%
%         }

%%%%%%%%%%%% Systèmes %%%%%%%%%%%%%%%
\newcommand{\sysd}[2]{%
       \left\{
       \begin{aligned}
          #1\\
          #2\\
       \end{aligned}
       \right.%
       }

\newcommand{\syst}[3]{%
       \left\{
       \begin{aligned}
          #1\\
          #2\\
	  #3
       \end{aligned}
       \right.%
       }

\newcommand{\sysq}[4]{%
       \left\{
       \begin{aligned}
          #1\\
          #2\\
	  #3
       \end{aligned}
       \right.%
       }




%%%%%%%%%%%% Divers %%%%%%%%%%%%%%%
\DeclareMathOperator{\card}{Card}


% perso nico

\newcommand{\orth}{\bot} % Pour faire le symbole perpendiculaire
\newcommand{\cm}{\,\mathrm{cm}} 
\newcommand{\pI}{{\ensuremath{+\infty}}} 
\newcommand{\mI}{{\ensuremath{-\infty}}} 

\newcommand{\cala}{\mathscr{A}}
\newcommand{\calb}{\mathscr{B}}
\newcommand{\calp}{\mathscr{P}}
\newcommand{\cale}{\mathscr{E}}
\newcommand{\calf}{\mathscr{F}}
\newcommand{\cals}{\mathscr{S}}
\newcommand{\calh}{\mathscr{H}}

% pour écrire des limites
\newcommand{\limite}[2]{\displaystyle\lim_{#1\rightarrow #2}}

\newcommand{\ssi}{\Longleftrightarrow} % Pour faire le symbole equivalent
\newcommand{\implique}{\Longrightarrow} % Pour faire le symbole implique

\usepackage{enumitem}
\usepackage{xypic}

  \usepackage{amsmath}
  \usepackage{amssymb}
  \usepackage{amsfonts}
  \usepackage{mathrsfs}
%  \usepackage{shortlst}


\usepackage{pstricks,pst-plot,pst-text,pst-tree,pst-eps,pst-fill,pst-node,pst-math}

\newtheorem{remarque}{Remarque}
\newtheorem{remarque*}{Remarque}
\newtheorem{theorem*}{Théorème}
\newtheorem{definition*}{Définition}


% --------------------------------------------------------------------------------------------------

%devoir surveillé personalisé
% #1 titre principal, #2 titre milieu haut en petit, #3 titre haut
% gauche, #4 titre haut droit 
\newcommand{\devpers}[4]{
                         %\pagestyle{empty} 
                         \noindent 
                         \begin{minipage}[t]{\linewidth}
                         \textit{#3 } \hfill \textit{ #2} \hfill \textit{#4}
                         \end{minipage}
                         \begin{center}{{\Large\bf #1 }} \end{center} 
                         \vspace{-0.3cm}
                         \rule{\linewidth}{0.5mm} 
                         }




\newenvironment{exnormal}[1]{
                             \addtocounter{exercice}{1}
                             \vspace{1em} \par \noindent
                              {\bf Exercice \arabic{exercice}{\bf #1 } :}
                            }{\vspace{0.25em}}

\newcommand{\ds}{\displaystyle}
\usepackage{calc}

%-------------- extension professor desiree :
\usepackage[xcas]{pro-tablor}

\newcommand{\exo}[2]{\begin{exnormal}{~#2}}
\newcommand{\finexo}{\end{exnormal}}

%inserer une figure à droite du texte 
%\textfig{largeur en %}{echelle}figure}
\newsavebox{\maboite}
\newenvironment{textfig}[3]%
{\savebox{\maboite}{\begin{minipage}{\linewidth-#1\linewidth}
\begin{center}
\includegraphics[scale=#2]{#3}
\end{center}
\end{minipage}}
\begin{minipage}{#1\linewidth}}%
{\end{minipage} \usebox{\maboite}}


\pagestyle{empty} 
\begin{document}

\devpers{Devoir Mathématiques $N^o$ 4 (1 h)}{}{Classe de seconde 3}{4 novembre 2010}

\exo{Equations}{(similaire au 68 p 37)}\par
\begin{textfig}{0.6}{1}{Courbe-2010-ds04.1}
On considère la fonction définie sur $[-3;2]$ par :
\[
 f(x)=x^2+2x-3
\]
Le graphique ci-joint représente la courbe $\calc$ de la représentation graphique de $f$.


\begin{enumerate}
 \item A l'aide de cette courbe (et sans justifier) résoudre graphiquement :
\begin{enumerate}
 \item $f(x)=-3$
 \item $f(x)<0$
 \item  $f(x)=12$
 \item  $f(x)\geq 0$
\end{enumerate}
\item
\begin{enumerate}
 \item Tracer la droite $D$ d'équation $y=x-1$.
 \item Résoudre graphiquement l'équation $f(x)=x-1$
\end{enumerate}
\item Dans cette question,  on répondra systématiquement par un calcul.
\begin{enumerate}
 \item Démontrer que $f(x)=(x+3)(x-1)$ pour tout $x\in [-3;2]$.
 \item Résoudre $f(x)=0$
 \item Résoudre $f(x)=x-1$
\end{enumerate}
\item Discuter suivant les valeurs du $k$ (nombre réel) le nombre de solutions de l'équation $f(x)=k$.
 

\end{enumerate}
\end{textfig}

\finexo

\exo{Equations}{(ex10,11 feuille 1 et ex1 feuille 3)}
Résoudre les équations suivantes
\begin{enumerate}[labelindent=\parindent,%
                 leftmargin=*,%
                 label={$\protect (E_{\arabic*}) : \ $}]
\item $ \ds (4x^{2}+4x+1)-3(x+2)(2x+1)=0;$ 
\item $ \dfrac{9}{x-2}=x-2$
\item $  0x=5$
\end{enumerate}
\finexo

\exo{}{(ex 38 p31)}
 Soit $f$ la fonction définie sur $\R$ par $f(x)=x^2+5$. On appelle $C_f$ sa courbe représentative.

 Déterminer si les points suivants appartiennent ou non à $C_f$.
  \[A(-2;9) \qquad B(3;13) \qquad C(\sqrt{2};7)\]
\finexo

\exo{}{(ex25 p29)}
 Soit $C_f$ la courbe représentative d'une fonction $f$. Traduire chacune des informations données sur $f$ par une information sur $C_f$. 
 \begin{enumerate}
  \item $f(-1)=3$ ;
  \item L'image de $3$ par $f$ est $1$ ;
  \item $2$ est un antécédent de $-1$ par $f$ ;
  \item $5$ est une solution de l'équation $f(x)=6$ ;
  \item l'équation $f(x)=0$ admet exactement deux solutions.
 \end{enumerate}
 \finexo

\end{document}
