How to make a conditional statement that checks if the page is the child of a certain page?

global $post;
if($post->post_parent=='certain page'){
/// Her goes your code......
}

Remember ‘certain page’ is your parent page id.