# Draw a graph

#### Petrus

##### Well-known member
Hello MHB,
I am working with an old exam that we got full soloution I got problem with their characters schedule ( hope you understand what I mean cause I could not find any translate) I got the same roots as the soloution but in the characters schedule why do they got $$\displaystyle x-3$$ and $$\displaystyle (x+1)^2$$ should it not be $$\displaystyle x+3$$ and $$\displaystyle (x-1)^2$$ or I am missing something, that's what I get when I solve it.
edit: the function maybe was not clearly to see in the picture but here it is $$\displaystyle f(x)=e^x(x^3-2x^2-x+4)-5$$
Regards,
$$\displaystyle |\pi\rangle$$

#### Ackbach

##### Indicium Physicus
Staff member
I get $f'(x)=(x-1)^{2}(x+3)e^{x}$.

#### MarkFL

Staff member
...I got the same roots as the soloution but in the characters schedule why do they got $$\displaystyle x-3$$ and $$\displaystyle (x+1)^2$$ should it not be $$\displaystyle x+3$$ and $$\displaystyle (x-1)^2$$ or I am missing something, that's what I get when I solve it...
Post your working and we can get to the bottom of where you went wrong. #### Petrus

##### Well-known member
Post your working and we can get to the bottom of where you went wrong. Hello Mark,
I get correct answer and graph but my characters schedule looks diffrent from their, I don't know how I can make one and when I make one in paint it does not look nice so I will describe with words. At left side of the characters schedule I got $$\displaystyle (x+3)$$ insted of $$\displaystyle (x-3)$$ and $$\displaystyle (x-1)^2$$ insted of $$\displaystyle (x+1)^2$$ and rest is exactly the same, so my guess is they made some sign typo? Just wanna be sure so I don't make the characters schedule wrong. As Ackbach said I got the roots $$\displaystyle x=1$$ (<- double root) and $$\displaystyle x=-3$$.

Regards,
$$\displaystyle |\pi\rangle$$

#### Ackbach

##### Indicium Physicus
Staff member

1. You can make tables in $\LaTeX$ as follows:

Code:
\begin{array}{c|c|c}
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & f(x) & \sin(x) \\
\end{array}
produces

\begin{array}{c|c|c}
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & f(x) & \sin(x) \\
\end{array}

2. Books can be wrong. Math books, especially calculus books, might have a lower error rate than some other types of books, but they definitely have incorrect things in them from time to time. In this case, there is no doubt that they computed the derivative incorrectly. In my opinion, in this day and age of CAS's, there's no excuse for not checking their work with a computer. CAS's can't replace a person, but people should use them to check their work!