Step 1 :The perfect square trinomial formula is \(a^2 + 2ab + b^2\). In the given expression, we have \(a = x\) and \(2ab = 6x\).
Step 2 :Solving \(2ab = 6x\) for \(b\), we get \(b = 3\).
Step 3 :Substituting \(a = x\) and \(b = 3\) into the perfect square trinomial formula, we get \(x^2 + 2*3*x + 3^2\).