a,
TXĐ: $D=\mathbb{R}$
$y=f(x)=x^2\sin3x$
Xét $f(-x)=(-x)^2.\sin(-3x)=x^2.(-\sin3x)=-x^2\sin3x=-f(x)$
$\to y$ là hàm số lẻ
b,
TXĐ: $D=\mathbb{R}$
$y=f(x)=\cos x+\sin^2x$
Xét $f(-x)=\cos(-x)+\sin^2(-x)=\cos x+(-\sin x)^2=\cos x+\sin^2x=f(x)$
$\to y$ là hàm số chẵn