This repository was archived by the owner on Aug 29, 2024. It is now read-only.
This repository was archived by the owner on Aug 29, 2024. It is now read-only.
Better sum-product factoring steps #163
Closed
Description
The function factorSumProductRule
currently returns one step with no substeps, but it should have substeps. The substeps are outlined in the code, but just need to be formalized, given a change type etc.
// 1. Break apart the middle term into two terms using our factor pair (p and q):
// e.g. ax^2 + bx + c -> ax^2 + px + qx + c
// 2. Consider the first two terms together and the second two terms
// together (this doesn't require any actual change to the expression, so doesn't need a substep)
// e.g. first group: [ax^2 + px] and second group: [qx + c]
// 3. Factor both groups separately (can be two substeps)
// e.g first group: [ux(rx + s)] and second group [v(rx + s)]
// 4. Finish factoring by combining the factored terms through grouping:
// e.g. (ux + v)(rx + s)
This should make it easier to understand for students to understand the process for what can be a complicated set of steps.