a) B xác định
\(\Leftrightarrow\begin{cases}2a^2+6a\ne0\\a^2-9\ne0\end{cases}\Leftrightarrow\begin{cases}2a\left(a+3\right)\ne0\\\left(a+3\right)\left(a-3\right)\ne0\end{cases}\Leftrightarrow\begin{cases}a\ne0\\a\ne-3\\a\ne3\end{cases}\)
Vậy để B xác định thì \(a\ne0\) và \(a\ne\pm3\)
b) \(B=\frac{\left(a+3\right)^2}{2a^2+6a}\cdot\left(1-\frac{6a-18}{a^2-9}\right)\)
\(=\frac{\left(a+3\right)^2}{2a\left(a+3\right)}\cdot\frac{\left(a+3\right)\left(a-9\right)}{\left(a+3\right)\left(a-3\right)}\)
\(=\frac{a+3}{2a}\cdot\frac{a-9}{a+3}\)
\(=\frac{a-9}{2a}\)
a) ĐKXĐ: \(\left\{{}\begin{matrix}2a^2+6a\ne0\\a^2-9\ne0\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}2a\left(a+3\right)\ne0\\\left(a-3\right)\left(a+3\right)\ne0\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}2a\ne0\\a-3\ne0\\a+3\ne0\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}a\ne0\\a\ne3\\a\ne-3\end{matrix}\right.\)
b) \(B=\dfrac{\left(a+3\right)^2}{2a^2+6a}.\left(1-\dfrac{6a-18}{a^2-9}\right)\)
\(\Leftrightarrow B=\dfrac{\left(a+3\right)^2}{2a^2+6a}.\left(\dfrac{a^2-9}{a^2-9}-\dfrac{6a-18}{a^2-9}\right)\)
\(\Leftrightarrow B=\dfrac{\left(a+3\right)^2}{2a^2+6a}.\dfrac{\left(a^2-9\right)-\left(6a-18\right)}{a^2-9}\)
\(\Leftrightarrow B=\dfrac{\left(a+3\right)^2}{2a^2+6a}.\dfrac{a^2-9-6a+18}{a^2-9}\)
\(\Leftrightarrow B=\dfrac{\left(a+3\right)^2}{2a^2+6a}.\dfrac{a^2-6a+9}{a^2-9}\)
\(\Leftrightarrow B=\dfrac{\left(a+3\right)^2}{2a^2+6a}.\dfrac{\left(a-3\right)^2}{a^2-9}\)
\(\Leftrightarrow B=\dfrac{\left(a+3\right)^2}{2a\left(a+3\right)}.\dfrac{\left(a-3\right)^2}{\left(a-3\right)\left(a+3\right)}\)
\(\Leftrightarrow B=\dfrac{a+3}{2a}.\dfrac{a-3}{a+3}\)
\(\Leftrightarrow B=\dfrac{\left(a+3\right)\left(a-3\right)}{2a\left(a+3\right)}\)
\(\Leftrightarrow B=\dfrac{a-3}{2a}\)