If you want to factor it rather than using the quadratic formula, this is how you would go about it.
You need 2 numbers that give you the product of positive 3. Well you obviously only have 2 choices: 1,3 - Also, if you have a positive constant/third-term, then you need either 2 positive numbers or 2 negative numbers.
Next, pay attention to the sign of your middle term: It is positive, so that means your 2 numbers must be positive.
Lastly, you need two numbers that give you the product of your first time: 1,2
Multiply diagonally and add the two numbers, check if it gives you 5. If not, reverse the number for only one of them and try again. Then multiply downwards to see if you get your first and second terms. From there, write it as a product.
Example: a^2+2ab+b^2
[tex]a \ \ \ b[/tex]
[tex]a \ \ \ b[/tex]
ab+ab=2ab - Middle term checks out!
[tex](a+b)(a+b)[/tex]
[tex]2 \ \ \ 1[/tex]
[tex]1 \ \ \ 3[/tex]