document.write( "Question 1022005: Determine an expression for f(x) in which f(x) is cubic, f(x)≥ 0 when x ≤ 2, f(x) < 0 when x > 2, and f(0) = 4. \n" ); document.write( "
Algebra.Com's Answer #637807 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "In order for it to be positive before and negative after \"x=2\", then it must look like this,
\n" ); document.write( "\"f%28x%29=a%28x-2%29%5E3\"
\n" ); document.write( "or else you will have an additional set of directional changes.
\n" ); document.write( "So now solve for the constant.
\n" ); document.write( "After x=2 the cubic will be positive so the constant needs to be negative.
\n" ); document.write( "So,
\n" ); document.write( "\"f%28x%29=-a%28x-2%29%5E3\"
\n" ); document.write( "\"f%280%29=-a%280-2%29%5E3=4\"
\n" ); document.write( "\"a=4%2F8\"
\n" ); document.write( "\"a=1%2F2\"
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( "\"f%28x%29=-%28x-2%29%5E3%2F2\"
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( "
\n" );