Evaluate
p^{2}+2p-21
Expand
p^{2}+2p-21
Share
Copied to clipboard
p^{2}-4p+4-\left(p-3\right)^{2}+\left(p-4\right)\left(p+4\right)
Use binomial theorem \left(a-b\right)^{2}=a^{2}-2ab+b^{2} to expand \left(p-2\right)^{2}.
p^{2}-4p+4-\left(p^{2}-6p+9\right)+\left(p-4\right)\left(p+4\right)
Use binomial theorem \left(a-b\right)^{2}=a^{2}-2ab+b^{2} to expand \left(p-3\right)^{2}.
p^{2}-4p+4-p^{2}+6p-9+\left(p-4\right)\left(p+4\right)
To find the opposite of p^{2}-6p+9, find the opposite of each term.
-4p+4+6p-9+\left(p-4\right)\left(p+4\right)
Combine p^{2} and -p^{2} to get 0.
2p+4-9+\left(p-4\right)\left(p+4\right)
Combine -4p and 6p to get 2p.
2p-5+\left(p-4\right)\left(p+4\right)
Subtract 9 from 4 to get -5.
2p-5+p^{2}-16
Consider \left(p-4\right)\left(p+4\right). Multiplication can be transformed into difference of squares using the rule: \left(a-b\right)\left(a+b\right)=a^{2}-b^{2}. Square 4.
2p-21+p^{2}
Subtract 16 from -5 to get -21.
p^{2}-4p+4-\left(p-3\right)^{2}+\left(p-4\right)\left(p+4\right)
Use binomial theorem \left(a-b\right)^{2}=a^{2}-2ab+b^{2} to expand \left(p-2\right)^{2}.
p^{2}-4p+4-\left(p^{2}-6p+9\right)+\left(p-4\right)\left(p+4\right)
Use binomial theorem \left(a-b\right)^{2}=a^{2}-2ab+b^{2} to expand \left(p-3\right)^{2}.
p^{2}-4p+4-p^{2}+6p-9+\left(p-4\right)\left(p+4\right)
To find the opposite of p^{2}-6p+9, find the opposite of each term.
-4p+4+6p-9+\left(p-4\right)\left(p+4\right)
Combine p^{2} and -p^{2} to get 0.
2p+4-9+\left(p-4\right)\left(p+4\right)
Combine -4p and 6p to get 2p.
2p-5+\left(p-4\right)\left(p+4\right)
Subtract 9 from 4 to get -5.
2p-5+p^{2}-16
Consider \left(p-4\right)\left(p+4\right). Multiplication can be transformed into difference of squares using the rule: \left(a-b\right)\left(a+b\right)=a^{2}-b^{2}. Square 4.
2p-21+p^{2}
Subtract 16 from -5 to get -21.
Examples
Quadratic equation
{ x } ^ { 2 } - 4 x - 5 = 0
Trigonometry
4 \sin \theta \cos \theta = 2 \sin \theta
Linear equation
y = 3x + 4
Arithmetic
699 * 533
Matrix
\left[ \begin{array} { l l } { 2 } & { 3 } \\ { 5 } & { 4 } \end{array} \right] \left[ \begin{array} { l l l } { 2 } & { 0 } & { 3 } \\ { -1 } & { 1 } & { 5 } \end{array} \right]
Simultaneous equation
\left. \begin{cases} { 8x+2y = 46 } \\ { 7x+3y = 47 } \end{cases} \right.
Differentiation
\frac { d } { d x } \frac { ( 3 x ^ { 2 } - 2 ) } { ( x - 5 ) }
Integration
\int _ { 0 } ^ { 1 } x e ^ { - x ^ { 2 } } d x
Limits
\lim _{x \rightarrow-3} \frac{x^{2}-9}{x^{2}+2 x-3}